Merged
refactor(codegen): Delete invoke param offset #4177
HujunAdd on Jun 22
refactor(codegen): Delete invoke param offset #4177
Merged
Merged fromcam_bxh/pypto_0311codegen/delete_locOffsetintocann/pyptomaster
Total: 53 files changed+942-1020
| @@ -18,12 +18,12 @@ | |||
| 18 | #include "tilefwk/error_code.h" | 18 | #include "tilefwk/error_code.h" |
| 19 | 19 | ||
| 20 | namespace npu::tile_fwk { | 20 | namespace npu::tile_fwk { |
| 21 | -void CodeGen::GenCode(Function& topFunc, const std::map<uint64_t, std::list<InvokeParaOffset>>& invokeParaOffset) | 21 | +void CodeGen::GenCode(Function& topFunc) |
| 22 | { | 22 | { |
| 23 | ASSERT(FwkErr::INVALID_FUNCTION, topFunc.rootFunc_ != nullptr) << "rootFunc can not be nullptr"; | 23 | ASSERT(FwkErr::INVALID_FUNCTION, topFunc.rootFunc_ != nullptr) << "rootFunc can not be nullptr"; |
| 24 | 24 | ||
| 25 | auto cg = CodeGenFactory::GetCodeGenCCE(ctx_); | 25 | auto cg = CodeGenFactory::GetCodeGenCCE(ctx_); |
| 26 | - cg->GenCode(topFunc, invokeParaOffset); | 26 | + cg->GenCode(topFunc); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | } // namespace npu::tile_fwk | 29 | } // namespace npu::tile_fwk |
| @@ -20,14 +20,13 @@ | |||
| 20 | #include <utility> | 20 | #include <utility> |
| 21 | 21 | ||
| 22 | #include "interface/operation/operation.h" | 22 | #include "interface/operation/operation.h" |
| 23 | -#include "interface/machine/host/machine_task.h" | ||
| 24 | #include "codegen_common.h" | 23 | #include "codegen_common.h" |
| 25 | namespace npu::tile_fwk { | 24 | namespace npu::tile_fwk { |
| 26 | class CodeGen { | 25 | class CodeGen { |
| 27 | public: | 26 | public: |
| 28 | explicit CodeGen(const CodeGenCtx& ctx) : ctx_(ctx.includePath, ctx.cceDir, ctx.isMainBlock){}; | 27 | explicit CodeGen(const CodeGenCtx& ctx) : ctx_(ctx.includePath, ctx.cceDir, ctx.isMainBlock){}; |
| 29 | 28 | ||
| 30 | - void GenCode(Function& topFunc, const std::map<uint64_t, std::list<InvokeParaOffset>>& invokeParaOffset); | 29 | + void GenCode(Function& topFunc); |
| 31 | 30 | ||
| 32 | private: | 31 | private: |
| 33 | CodeGenCtx ctx_; | 32 | CodeGenCtx ctx_; |
| @@ -35,32 +35,4 @@ void CodeGenCCE::PrepareDefaultOutputPath() | |||
| 35 | }; | 35 | }; |
| 36 | CreateDir(ctx.cceDir, true); | 36 | CreateDir(ctx.cceDir, true); |
| 37 | } | 37 | } |
| 38 | - | ||
| 39 | -std::map<int, int> GenRealizeIdMap(const SubfuncParam& subFuncParam) | ||
| 40 | -{ | ||
| 41 | - auto& tensorInvokeArgs = subFuncParam.tensorsArgs_; | ||
| 42 | - auto& incastInvokeArgs = subFuncParam.inCastArgs_; | ||
| 43 | - auto& outcastInvokeArgs = subFuncParam.outCastArgs_; | ||
| 44 | - | ||
| 45 | - std::map<int, int> idMap; | ||
| 46 | - auto f = [&idMap](size_t offset, auto& invokeArgs) { | ||
| 47 | - CODEGEN_LOGI("start offset is %zu, arg size is %zu", offset, invokeArgs.size()); | ||
| 48 | - for (size_t i = 0; i < invokeArgs.size(); i++) { | ||
| 49 | - size_t paramOff = (offset + i); | ||
| 50 | - uint32_t paramLoc = invokeArgs[i].paramLoc; | ||
| 51 | - CODEGEN_LOGI( | ||
| 52 | - " paramLoc is %u, paramOff is %zu, SymDDRId is %d, SymName is %s", paramLoc, paramOff, | ||
| 53 | - invokeArgs[i].symDDRId, invokeArgs[i].symName.c_str()); | ||
| 54 | - idMap.insert({paramLoc, paramOff}); | ||
| 55 | - } | ||
| 56 | - }; | ||
| 57 | - | ||
| 58 | - CODEGEN_LOGI("--- start tensorInvokeArgs paramLoc map ---- "); | ||
| 59 | - f(0, tensorInvokeArgs); | ||
| 60 | - CODEGEN_LOGI("--- start incastInvokeArgs paramLoc map ---- "); | ||
| 61 | - f(tensorInvokeArgs.size(), incastInvokeArgs); | ||
| 62 | - CODEGEN_LOGI("--- start outcastInvokeArgs paramLoc map ---- "); | ||
| 63 | - f(tensorInvokeArgs.size() + incastInvokeArgs.size(), outcastInvokeArgs); | ||
| 64 | - return idMap; | ||
| 65 | -} | ||
| 66 | } // namespace npu::tile_fwk | 38 | } // namespace npu::tile_fwk |
| @@ -20,7 +20,7 @@ | |||
| 20 | #include <utility> | 20 | #include <utility> |
| 21 | 21 | ||
| 22 | #include "interface/operation/operation.h" | 22 | #include "interface/operation/operation.h" |
| 23 | -#include "interface/machine/host/machine_task.h" | 23 | +#include "interface/function/function.h" |
| 24 | #include "codegen_common.h" | 24 | #include "codegen_common.h" |
| 25 | 25 | ||
| 26 | namespace npu::tile_fwk { | 26 | namespace npu::tile_fwk { |
| @@ -35,8 +35,7 @@ public: | |||
| 35 | } | 35 | } |
| 36 | virtual ~CodeGenCCE() = default; | 36 | virtual ~CodeGenCCE() = default; |
| 37 | 37 | ||
| 38 | - virtual void GenCode( | 38 | + virtual void GenCode(Function& topFunc) = 0; |
| 39 | - Function& topFunc, const std::map<uint64_t, std::list<InvokeParaOffset>>& invokeParaOffset) = 0; | ||
| 40 | 39 | ||
| 41 | protected: | 40 | protected: |
| 42 | CodeGenCtx ctx; | 41 | CodeGenCtx ctx; |
| @@ -46,8 +45,6 @@ private: | |||
| 46 | void PrepareDefaultOutputPath(); | 45 | void PrepareDefaultOutputPath(); |
| 47 | }; | 46 | }; |
| 48 | 47 | ||
| 49 | -std::map<int, int> GenRealizeIdMap(const SubfuncParam& subFuncParam); | ||
| 50 | - | ||
| 51 | } // namespace npu::tile_fwk | 48 | } // namespace npu::tile_fwk |
| 52 | 49 | ||
| 53 | #endif // CODEGEN_CCE_H | 50 | #endif // CODEGEN_CCE_H |
| @@ -41,18 +41,16 @@ struct CodeGenOpCtx { | |||
| 41 | Function& topFunc; | 41 | Function& topFunc; |
| 42 | Function& subFunc; | 42 | Function& subFunc; |
| 43 | const Operation& operation; | 43 | const Operation& operation; |
| 44 | - const std::map<int, int>& locToOffset = {}; | ||
| 45 | bool isMainBlock{false}; | 44 | bool isMainBlock{false}; |
| 46 | bool isDynamicAligned{false}; | 45 | bool isDynamicAligned{false}; |
| 47 | 46 | ||
| 48 | CodeGenOpCtx( | 47 | CodeGenOpCtx( |
| 49 | - std::shared_ptr<SymbolManager> sm, Function& tf, Function& sf, const Operation& op, | 48 | + std::shared_ptr<SymbolManager> sm, Function& tf, Function& sf, const Operation& op, bool isMainBlk = false, |
| 50 | - const std::map<int, int>& lto = {}, bool isMainBlk = false, bool isDynAligned = false) | 49 | + bool isDynAligned = false) |
| 51 | : symbolManager(std::move(sm)), | 50 | : symbolManager(std::move(sm)), |
| 52 | topFunc(tf), | 51 | topFunc(tf), |
| 53 | subFunc(sf), | 52 | subFunc(sf), |
| 54 | operation(op), | 53 | operation(op), |
| 55 | - locToOffset(lto), | ||
| 56 | isMainBlock(isMainBlk), | 54 | isMainBlock(isMainBlk), |
| 57 | isDynamicAligned(isDynAligned) | 55 | isDynamicAligned(isDynAligned) |
| 58 | {} | 56 | {} |
| @@ -63,7 +61,6 @@ public: | |||
| 63 | explicit CodeGenOp(const CodeGenOpCtx& ctx) | 61 | explicit CodeGenOp(const CodeGenOpCtx& ctx) |
| 64 | : originalOp(ctx.operation), | 62 | : originalOp(ctx.operation), |
| 65 | functionType(ctx.topFunc.GetFunctionType()), | 63 | functionType(ctx.topFunc.GetFunctionType()), |
| 66 | - paramLocToParamListOffset(ctx.locToOffset), | ||
| 67 | isMainBlock(ctx.isMainBlock), | 64 | isMainBlock(ctx.isMainBlock), |
| 68 | isDynamicAligned(ctx.isDynamicAligned) | 65 | isDynamicAligned(ctx.isDynamicAligned) |
| 69 | { | 66 | { |
| @@ -126,7 +123,6 @@ protected: | |||
| 126 | std::map<std::string, std::any> tensorAttrs[MAX_OPERANDS]; | 123 | std::map<std::string, std::any> tensorAttrs[MAX_OPERANDS]; |
| 127 | 124 | ||
| 128 | std::shared_ptr<SymbolManager> sm{nullptr}; | 125 | std::shared_ptr<SymbolManager> sm{nullptr}; |
| 129 | - const std::map<int, int>& paramLocToParamListOffset{}; | ||
| 130 | 126 | ||
| 131 | std::string tileOpName; | 127 | std::string tileOpName; |
| 132 | bool isInputForceCombineAxis{false}; | 128 | bool isInputForceCombineAxis{false}; |
| @@ -105,7 +105,6 @@ void CodeGenCloudNPU::GenFuncBody(Function& subFunc, Function& topFunc, std::ost | |||
| 105 | FloatSpecValMgr floatSpecValMgr; | 105 | FloatSpecValMgr floatSpecValMgr; |
| 106 | std::string tileOpSourceRegion; | 106 | std::string tileOpSourceRegion; |
| 107 | tileOpSourceRegion.reserve(CODE_RESERVED_SIZE); | 107 | tileOpSourceRegion.reserve(CODE_RESERVED_SIZE); |
| 108 | - auto locToOffsetMap = GenRealizeIdMap(subFunc.GetParameter()); | ||
| 109 | for (const auto& op : operationList) { | 108 | for (const auto& op : operationList) { |
| 110 | CODEGEN_LOGI( | 109 | CODEGEN_LOGI( |
| 111 | "======================== Op CodeGenNPU Start ========================\nGen OP IS: %s", op.Dump().c_str()); | 110 | "======================== Op CodeGenNPU Start ========================\nGen OP IS: %s", op.Dump().c_str()); |
| @@ -117,8 +116,7 @@ void CodeGenCloudNPU::GenFuncBody(Function& subFunc, Function& topFunc, std::ost | |||
| 117 | GenAllocForLocalBuffer(op, symbolMgr); | 116 | GenAllocForLocalBuffer(op, symbolMgr); |
| 118 | floatSpecValMgr.UpdateByOp(op); | 117 | floatSpecValMgr.UpdateByOp(op); |
| 119 | 118 | ||
| 120 | - CodeGenOpCloudNPU cop( | 119 | + CodeGenOpCloudNPU cop({symbolMgr, topFunc, subFunc, op, ctx.isMainBlock, ctx.isDynamicAligned, forBlkMgr}); |
| 121 | - {symbolMgr, topFunc, subFunc, op, locToOffsetMap, ctx.isMainBlock, ctx.isDynamicAligned, forBlkMgr}); | ||
| 122 | std::string tileOpSourceCode = cop.GenOpCode(); | 120 | std::string tileOpSourceCode = cop.GenOpCode(); |
| 123 | ASSERT(GenCodeErr::GEN_OP_CODE_FAILED, tileOpSourceCode.find(CG_ERROR) == tileOpSourceCode.npos) | 121 | ASSERT(GenCodeErr::GEN_OP_CODE_FAILED, tileOpSourceCode.find(CG_ERROR) == tileOpSourceCode.npos) |
| 124 | << "Generate code of op failed, op is " << op.Dump(); | 122 | << "Generate code of op failed, op is " << op.Dump(); |
| @@ -231,8 +231,7 @@ void CodeGenNPU::GenDynParamForExpr(std::ostringstream& oss, const Function& fun | |||
| 231 | } | 231 | } |
| 232 | } | 232 | } |
| 233 | 233 | ||
| 234 | -void CodeGenNPU::GenCode( | 234 | +void CodeGenNPU::GenCode(Function& topFunc) |
| 235 | - Function& topFunc, [[maybe_unused]] const std::map<uint64_t, std::list<InvokeParaOffset>>& invokeParaOffset) | ||
| 236 | { | 235 | { |
| 237 | COMPILER_LOGI( | 236 | COMPILER_LOGI( |
| 238 | "Start Generate AI_CORE code for topFunc: %s, hash: %s", topFunc.GetMagicName().c_str(), | 237 | "Start Generate AI_CORE code for topFunc: %s, hash: %s", topFunc.GetMagicName().c_str(), |
| @@ -125,7 +125,7 @@ public: | |||
| 125 | }; | 125 | }; |
| 126 | ~CodeGenNPU() override = default; | 126 | ~CodeGenNPU() override = default; |
| 127 | 127 | ||
| 128 | - void GenCode(Function& topFunc, const std::map<uint64_t, std::list<InvokeParaOffset>>& invokeParaOffset) override; | 128 | + void GenCode(Function& topFunc) override; |
| 129 | std::string PrepareCmd(const CompileInfo& compileInfo, const std::string& compileOptions) const; | 129 | std::string PrepareCmd(const CompileInfo& compileInfo, const std::string& compileOptions) const; |
| 130 | // only used to compile code directly when running under simulation mode. | 130 | // only used to compile code directly when running under simulation mode. |
| 131 | void CompileCode(const std::string& compileCmd) const; | 131 | void CompileCode(const std::string& compileCmd) const; |
| @@ -39,10 +39,9 @@ struct CodeGenOpNPUCtx : public CodeGenOpCtx { | |||
| 39 | std::shared_ptr<ForBlockManager> forBlockManager{nullptr}; | 39 | std::shared_ptr<ForBlockManager> forBlockManager{nullptr}; |
| 40 | 40 | ||
| 41 | CodeGenOpNPUCtx( | 41 | CodeGenOpNPUCtx( |
| 42 | - std::shared_ptr<SymbolManager> sm, Function& tf, Function& sf, const Operation& op, | 42 | + std::shared_ptr<SymbolManager> sm, Function& tf, Function& sf, const Operation& op, bool isMainBlk = false, |
| 43 | - const std::map<int, int>& lto = {}, bool isMainBlk = false, bool isDynAligned = false, | 43 | + bool isDynAligned = false, std::shared_ptr<ForBlockManager> fbm = nullptr) |
| 44 | - std::shared_ptr<ForBlockManager> fbm = nullptr) | 44 | + : CodeGenOpCtx(std::move(sm), tf, sf, op, isMainBlk, isDynAligned), forBlockManager(std::move(fbm)) |
| 45 | - : CodeGenOpCtx(std::move(sm), tf, sf, op, lto, isMainBlk, isDynAligned), forBlockManager(std::move(fbm)) | ||
| 46 | {} | 45 | {} |
| 47 | }; | 46 | }; |
| 48 | 47 | ||
| @@ -86,8 +86,7 @@ std::unordered_map<int, std::string> CodeGenLiteNPU::GenParamsSymbolMap( | |||
| 86 | return symbolMap; | 86 | return symbolMap; |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | -void CodeGenLiteNPU::GenCode( | 89 | +void CodeGenLiteNPU::GenCode(Function& topFunc) |
| 90 | - Function& topFunc, [[maybe_unused]] const std::map<uint64_t, std::list<InvokeParaOffset>>& invokeParaOffset) | ||
| 91 | { | 90 | { |
| 92 | COMPILER_LOGI( | 91 | COMPILER_LOGI( |
| 93 | "Start Generate AI_CORE code for topFunc: %s, hash: %s", topFunc.GetMagicName().c_str(), | 92 | "Start Generate AI_CORE code for topFunc: %s, hash: %s", topFunc.GetMagicName().c_str(), |
| @@ -157,7 +156,6 @@ void CodeGenLiteNPU::GenFuncBody(Function& subFunc, Function& topFunc, std::ostr | |||
| 157 | FloatSpecValMgr floatSpecValMgr; | 156 | FloatSpecValMgr floatSpecValMgr; |
| 158 | std::string tileOpSourceRegion; | 157 | std::string tileOpSourceRegion; |
| 159 | tileOpSourceRegion.reserve(CODE_RESERVED_SIZE); | 158 | tileOpSourceRegion.reserve(CODE_RESERVED_SIZE); |
| 160 | - auto locToOffsetMap = GenRealizeIdMap(subFunc.GetParameter()); | ||
| 161 | for (const auto& op : operationList) { | 159 | for (const auto& op : operationList) { |
| 162 | CODEGEN_LOGI( | 160 | CODEGEN_LOGI( |
| 163 | "======================== Op CodeGenNPU Start ========================\nGen OP IS: %s", op.Dump().c_str()); | 161 | "======================== Op CodeGenNPU Start ========================\nGen OP IS: %s", op.Dump().c_str()); |
| @@ -172,7 +170,7 @@ void CodeGenLiteNPU::GenFuncBody(Function& subFunc, Function& topFunc, std::ostr | |||
| 172 | // kirin only supports static function | 170 | // kirin only supports static function |
| 173 | topFunc.SetFunctionType(FunctionType::STATIC); | 171 | topFunc.SetFunctionType(FunctionType::STATIC); |
| 174 | topFunc.SetUnderDynamicFunction(false); | 172 | topFunc.SetUnderDynamicFunction(false); |
| 175 | - CodeGenOpLiteNPU cop({symbolMgr, topFunc, subFunc, op, locToOffsetMap, ctx.isMainBlock, false, forBlkMgr}); | 173 | + CodeGenOpLiteNPU cop({symbolMgr, topFunc, subFunc, op, ctx.isMainBlock, false, forBlkMgr}); |
| 176 | std::string tileOpSourceCode = cop.GenOpCode(); | 174 | std::string tileOpSourceCode = cop.GenOpCode(); |
| 177 | ASSERT(GenCodeErr::GEN_OP_CODE_FAILED, tileOpSourceCode.find(CG_ERROR) == tileOpSourceCode.npos) | 175 | ASSERT(GenCodeErr::GEN_OP_CODE_FAILED, tileOpSourceCode.find(CG_ERROR) == tileOpSourceCode.npos) |
| 178 | << "Generate code of op failed, op is " << op.Dump(); | 176 | << "Generate code of op failed, op is " << op.Dump(); |
| @@ -44,7 +44,7 @@ public: | |||
| 44 | explicit CodeGenLiteNPU(const CodeGenCtx& cgCtx) : CodeGenNPU(cgCtx){}; | 44 | explicit CodeGenLiteNPU(const CodeGenCtx& cgCtx) : CodeGenNPU(cgCtx){}; |
| 45 | ~CodeGenLiteNPU() override = default; | 45 | ~CodeGenLiteNPU() override = default; |
| 46 | 46 | ||
| 47 | - void GenCode(Function& topFunc, const std::map<uint64_t, std::list<InvokeParaOffset>>& invokeParaOffset) override; | 47 | + void GenCode(Function& topFunc) override; |
| 48 | 48 | ||
| 49 | private: | 49 | private: |
| 50 | void GenFuncBody(Function& subFunc, Function& topFunc, std::ostringstream& oss) override; | 50 | void GenFuncBody(Function& subFunc, Function& topFunc, std::ostringstream& oss) override; |
| @@ -36,32 +36,6 @@ inline int64_t CalcShapeSizeFunc(const std::vector<int64_t>& shape) | |||
| 36 | return size; | 36 | return size; |
| 37 | } | 37 | } |
| 38 | 38 | ||
| 39 | -struct InvokeParaOffset { | ||
| 40 | - uint8_t* rawTensorAddr{nullptr}; // 原始input output tensor基地址, 如果是子图间workspace incast outcast 则为null | ||
| 41 | - uint64_t offset{0}; | ||
| 42 | - uint64_t rawTensorOffset{0}; | ||
| 43 | - bool isTensorParam{false}; | ||
| 44 | - uint64_t rawShapeSize{0}; | ||
| 45 | - int rawMagic{0}; | ||
| 46 | - std::string rawSymbol{""}; | ||
| 47 | - int opOriginArgsSeq{INVALID_IN_OUT_INDEX}; // map origin args seq no | ||
| 48 | - int funcitonMagic{-1}; | ||
| 49 | - int8_t ioIndex{-1}; | ||
| 50 | - int8_t paramType{-1}; | ||
| 51 | - std::vector<int64_t> tensorShape; | ||
| 52 | - int opMagic{0}; | ||
| 53 | - DataType datatype{DataType::DT_INT32}; | ||
| 54 | - std::vector<int64_t> rawTensorShape; | ||
| 55 | - void LogRawTensorInfo(std::shared_ptr<RawTensor> rawTensor) | ||
| 56 | - { | ||
| 57 | - auto rawShape = rawTensor->GetRawShape(); | ||
| 58 | - rawShapeSize = CalcShapeSizeFunc(rawShape) * BytesOf(rawTensor->GetDataType()); | ||
| 59 | - rawMagic = rawTensor->GetRawMagic(); | ||
| 60 | - rawSymbol = rawTensor->GetSymbol(); | ||
| 61 | - datatype = rawTensor->GetDataType(); | ||
| 62 | - } | ||
| 63 | -}; | ||
| 64 | - | ||
| 65 | class MachineTask { | 39 | class MachineTask { |
| 66 | public: | 40 | public: |
| 67 | MachineTask(uint64_t taskId, Function* function) : taskId_(taskId), function_(function) {} | 41 | MachineTask(uint64_t taskId, Function* function) : taskId_(taskId), function_(function) {} |
| @@ -47,8 +47,7 @@ enum ParallelMode { | |||
| 47 | }; | 47 | }; |
| 48 | constexpr uint32_t STITCH_FUNCTION_MAX_SIZE = 65535; | 48 | constexpr uint32_t STITCH_FUNCTION_MAX_SIZE = 65535; |
| 49 | const std::set<FunctionType> DYNAMIC_FUNC_TYPE_SET = { | 49 | const std::set<FunctionType> DYNAMIC_FUNC_TYPE_SET = { |
| 50 | - FunctionType::DYNAMIC, FunctionType::DYNAMIC_LOOP, FunctionType::DYNAMIC_LOOP_PATH | 50 | + FunctionType::DYNAMIC, FunctionType::DYNAMIC_LOOP, FunctionType::DYNAMIC_LOOP_PATH}; |
| 51 | -}; | ||
| 52 | constexpr const char* STAGE_DYNDEV_BUILD_CONTROL_FLOW = "DynDev:BuildControlFlow"; | 51 | constexpr const char* STAGE_DYNDEV_BUILD_CONTROL_FLOW = "DynDev:BuildControlFlow"; |
| 53 | constexpr const char* STAGE_DYNDEV_CONTROL_FLOW_COMPILE = "DynDev:ControlFlowCompile"; | 52 | constexpr const char* STAGE_DYNDEV_CONTROL_FLOW_COMPILE = "DynDev:ControlFlowCompile"; |
| 54 | constexpr const char* STAGE_DYNDEV_AICORE_KERNEL_COMPILE = "DynDev:AICoreKernelCompile"; | 53 | constexpr const char* STAGE_DYNDEV_AICORE_KERNEL_COMPILE = "DynDev:AICoreKernelCompile"; |
| @@ -713,8 +712,8 @@ static void BuildControlFlow( | |||
| 713 | if (dynAttr->constructAssembleNeedAllocRuntimeSlots.count(runtimeSlot) == 0) { | 712 | if (dynAttr->constructAssembleNeedAllocRuntimeSlots.count(runtimeSlot) == 0) { |
| 714 | continue; | 713 | continue; |
| 715 | } | 714 | } |
| 716 | - controlFlowOss << std::setw(indent * TABSIZE) << ' ' << "RUNTIME_SlotMarkNeedAlloc(" | 715 | + controlFlowOss << std::setw(indent * TABSIZE) << ' ' << "RUNTIME_SlotMarkNeedAlloc(" << runtimeSlot |
| 717 | - << runtimeSlot << ");\n"; | 716 | + << ");\n"; |
| 718 | } | 717 | } |
| 719 | for (auto& callee : GetCalleeList(cache, func)) { | 718 | for (auto& callee : GetCalleeList(cache, func)) { |
| 720 | BuildControlFlow( | 719 | BuildControlFlow( |
| @@ -1058,9 +1057,8 @@ int GetRootFuncNum(std::shared_ptr<DyndevFunctionAttribute> attr) | |||
| 1058 | } | 1057 | } |
| 1059 | 1058 | ||
| 1060 | static void RunBuildControlFlowStage( | 1059 | static void RunBuildControlFlowStage( |
| 1061 | - FunctionCache& cache, Linker& linker, Function* function, | 1060 | + FunctionCache& cache, Linker& linker, Function* function, const std::shared_ptr<DyndevFunctionAttribute>& attr, |
| 1062 | - const std::shared_ptr<DyndevFunctionAttribute>& attr, const std::string& expName, | 1061 | + const std::string& expName, std::vector<std::string>& exprSrcFiles, ValDependTensorMeta& valDependTensorMeta, |
| 1063 | - std::vector<std::string>& exprSrcFiles, ValDependTensorMeta& valDependTensorMeta, | ||
| 1064 | std::string& controlFlowSource, std::string& expressionSource) | 1062 | std::string& controlFlowSource, std::string& expressionSource) |
| 1065 | { | 1063 | { |
| 1066 | const int hmStep = MonitorManager::Instance().AllocHostMachineStepIndex(); | 1064 | const int hmStep = MonitorManager::Instance().AllocHostMachineStepIndex(); |
| @@ -1116,9 +1114,8 @@ static void RunBuildControlFlowStage( | |||
| 1116 | } | 1114 | } |
| 1117 | 1115 | ||
| 1118 | static void RunCompileControlFlowStage( | 1116 | static void RunCompileControlFlowStage( |
| 1119 | - Function* function, const std::shared_ptr<DyndevFunctionAttribute>& attr, | 1117 | + Function* function, const std::shared_ptr<DyndevFunctionAttribute>& attr, const std::string& aicpuDirPath, |
| 1120 | - const std::string& aicpuDirPath, const std::string& controlFlowSource, | 1118 | + const std::string& controlFlowSource, const std::string& expressionSource, std::vector<std::string>& exprSrcFiles) |
| 1121 | - const std::string& expressionSource, std::vector<std::string>& exprSrcFiles) | ||
| 1122 | { | 1119 | { |
| 1123 | #ifdef __x86_64__ | 1120 | #ifdef __x86_64__ |
| 1124 | std::string cflags = "-mno-sse2 -mno-sse"; | 1121 | std::string cflags = "-mno-sse2 -mno-sse"; |
| @@ -1149,8 +1146,8 @@ static void RunCompileControlFlowStage( | |||
| 1149 | "Compile control flow src file[%s] with arm64 target tool[%s].", controlFlowDevFilePath.c_str(), | 1146 | "Compile control flow src file[%s] with arm64 target tool[%s].", controlFlowDevFilePath.c_str(), |
| 1150 | arm64TargetToolPath.c_str()); | 1147 | arm64TargetToolPath.c_str()); |
| 1151 | attr->devControlFlowBinary = CompileAndLoadSection( | 1148 | attr->devControlFlowBinary = CompileAndLoadSection( |
| 1152 | - controlFlowSource, controlFlowDevFilePath, aicpuDirPath, exprSrcFiles, arm64TargetToolPath, | 1149 | + controlFlowSource, controlFlowDevFilePath, aicpuDirPath, exprSrcFiles, arm64TargetToolPath, BISHENG_LD_CMD, |
| 1153 | - BISHENG_LD_CMD, Arm64TargetTool("objcopy"), ".pypto", IsNeedDumpAicpuKernel(controlFlowDevFilePath)); | 1150 | + Arm64TargetTool("objcopy"), ".pypto", IsNeedDumpAicpuKernel(controlFlowDevFilePath)); |
| 1154 | } else { | 1151 | } else { |
| 1155 | // brk #0 | 1152 | // brk #0 |
| 1156 | MACHINE_LOGW("Arm64 target tool is not found."); | 1153 | MACHINE_LOGW("Arm64 target tool is not found."); |
| @@ -1162,8 +1159,7 @@ static void RunCompileControlFlowStage( | |||
| 1162 | #ifdef BUILD_WITH_CANN | 1159 | #ifdef BUILD_WITH_CANN |
| 1163 | static bool RunCompileAicoreKernelStage( | 1160 | static bool RunCompileAicoreKernelStage( |
| 1164 | Function* function, std::map<uint64_t, Function*>& leafDict, | 1161 | Function* function, std::map<uint64_t, Function*>& leafDict, |
| 1165 | - EncodeDevAscendFunctionParam& encodeDevAscendFunctionParam, | 1162 | + EncodeDevAscendFunctionParam& encodeDevAscendFunctionParam, const std::string& ccePath, std::string& kernelPath) |
| 1166 | - const std::string& ccePath, std::string& kernelPath) | ||
| 1167 | { | 1163 | { |
| 1168 | const int hmStep = MonitorManager::Instance().AllocHostMachineStepIndex(); | 1164 | const int hmStep = MonitorManager::Instance().AllocHostMachineStepIndex(); |
| 1169 | MonitorStageScope aicoreKernelCompileScope( | 1165 | MonitorStageScope aicoreKernelCompileScope( |
| @@ -1248,7 +1244,7 @@ static void RunCodeGenStage( | |||
| 1248 | npu::tile_fwk::CodeGen codeGen(codeGenCtx); | 1244 | npu::tile_fwk::CodeGen codeGen(codeGenCtx); |
| 1249 | COMPILER_LOGI( | 1245 | COMPILER_LOGI( |
| 1250 | "Function :[%s] starts executing codegen and binary compilation", devTile->GetMagicName().c_str()); | 1246 | "Function :[%s] starts executing codegen and binary compilation", devTile->GetMagicName().c_str()); |
| 1251 | - codeGen.GenCode(*devTile, {}); | 1247 | + codeGen.GenCode(*devTile); |
| 1252 | MainBlockCondBulider::Gencode(devTile); | 1248 | MainBlockCondBulider::Gencode(devTile); |
| 1253 | 1249 | ||
| 1254 | std::lock_guard<std::mutex> lock(leafDictMutex); | 1250 | std::lock_guard<std::mutex> lock(leafDictMutex); |
| @@ -1292,13 +1288,13 @@ static void CompileDyndevFunction(Function* function, FunctionCache& cache, [[ma | |||
| 1292 | #endif | 1288 | #endif |
| 1293 | // Each *StepCount is the number of HostMachine sub-stages (always 1 here), not op/workload. | 1289 | // Each *StepCount is the number of HostMachine sub-stages (always 1 here), not op/workload. |
| 1294 | // Must match Run*Stage order and AllocHostMachineStepIndex() call count (3 without AICore link, 4 with). | 1290 | // Must match Run*Stage order and AllocHostMachineStepIndex() call count (3 without AICore link, 4 with). |
| 1295 | - constexpr int buildControlFlowStepCount = 1; // DynDev:BuildControlFlow | 1291 | + constexpr int buildControlFlowStepCount = 1; // DynDev:BuildControlFlow |
| 1296 | - constexpr int controlFlowCompileStepCount = 1; // DynDev:ControlFlowCompile | 1292 | + constexpr int controlFlowCompileStepCount = 1; // DynDev:ControlFlowCompile |
| 1297 | - constexpr int aicoreKernelStepCount = 1; // DynDev:AICoreKernelCompile (when hasAicoreKernelLink) | 1293 | + constexpr int aicoreKernelStepCount = 1; // DynDev:AICoreKernelCompile (when hasAicoreKernelLink) |
| 1298 | - constexpr int encodeStepCount = 1; // DynDev:Encode (MonitorStageScope opSize = devRoot count) | 1294 | + constexpr int encodeStepCount = 1; // DynDev:Encode (MonitorStageScope opSize = devRoot count) |
| 1299 | MonitorManager::Instance().BeginHostMachineCompileGroup( | 1295 | MonitorManager::Instance().BeginHostMachineCompileGroup( |
| 1300 | - buildControlFlowStepCount + controlFlowCompileStepCount + | 1296 | + buildControlFlowStepCount + controlFlowCompileStepCount + (hasAicoreKernelLink ? aicoreKernelStepCount : 0) + |
| 1301 | - (hasAicoreKernelLink ? aicoreKernelStepCount : 0) + encodeStepCount); | 1297 | + encodeStepCount); |
| 1302 | uint64_t tilingKey = OpInfoManager::GetInstance().GetOpTilingKey(); | 1298 | uint64_t tilingKey = OpInfoManager::GetInstance().GetOpTilingKey(); |
| 1303 | std::string aicpuDirPath = config::GetEmitPath("kernel_aicpu"); | 1299 | std::string aicpuDirPath = config::GetEmitPath("kernel_aicpu"); |
| 1304 | npu::tile_fwk::CreateDir(aicpuDirPath, true); | 1300 | npu::tile_fwk::CreateDir(aicpuDirPath, true); |
| @@ -1309,8 +1305,7 @@ static void CompileDyndevFunction(Function* function, FunctionCache& cache, [[ma | |||
| 1309 | std::string expressionSource; | 1305 | std::string expressionSource; |
| 1310 | 1306 | ||
| 1311 | RunBuildControlFlowStage( | 1307 | RunBuildControlFlowStage( |
| 1312 | - cache, linker, function, attr, expName, exprSrcFiles, valDependTensorMeta, | 1308 | + cache, linker, function, attr, expName, exprSrcFiles, valDependTensorMeta, controlFlowSource, expressionSource); |
| 1313 | - controlFlowSource, expressionSource); | ||
| 1314 | 1309 | ||
| 1315 | std::string expressionFilePath = aicpuDirPath + "/" + expName; | 1310 | std::string expressionFilePath = aicpuDirPath + "/" + expName; |
| 1316 | if (IsNeedDumpAicpuKernel(expressionFilePath)) { | 1311 | if (IsNeedDumpAicpuKernel(expressionFilePath)) { |
| @@ -1356,8 +1351,7 @@ MachineTask* GenCode(MachineTask* task, FunctionCache& cache) | |||
| 1356 | MonitorManager::Instance().SwitchStageReset(); | 1351 | MonitorManager::Instance().SwitchStageReset(); |
| 1357 | MonitorManager::Instance().PrintCurrentTotalElapsed("Stage CodeGen start for TILE_GRAPH"); | 1352 | MonitorManager::Instance().PrintCurrentTotalElapsed("Stage CodeGen start for TILE_GRAPH"); |
| 1358 | COMPILER_LOGI("Start (TILE_GRAPH) CodeGen stage..."); | 1353 | COMPILER_LOGI("Start (TILE_GRAPH) CodeGen stage..."); |
| 1359 | - std::map<uint64_t, std::list<InvokeParaOffset>> invokeParaOffset; | 1354 | + codeGen.GenCode(*function); |
| 1360 | - codeGen.GenCode(*function, {}); | ||
| 1361 | MainBlockCondBulider::Gencode(function); | 1355 | MainBlockCondBulider::Gencode(function); |
| 1362 | } else { | 1356 | } else { |
| 1363 | if (function->IsFunctionType(FunctionType::DYNAMIC)) { | 1357 | if (function->IsFunctionType(FunctionType::DYNAMIC)) { |
| @@ -126,7 +126,8 @@ bool MainBlockCondBulider::CheckReshapeCopy(Function* func) | |||
| 126 | return false; | 126 | return false; |
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | -void MainBlockCondBulider::CollectCoaMainBlockConds(const std::vector<std::vector<SymbolicScalar>>& argList, Function* func) | 129 | +void MainBlockCondBulider::CollectCoaMainBlockConds( |
| 130 | + const std::vector<std::vector<SymbolicScalar>>& argList, Function* func) | ||
| 130 | { | 131 | { |
| 131 | bool enableVF = Platform::Instance().GetSoc().GetNPUArch() == NPUArch::DAV_3510; | 132 | bool enableVF = Platform::Instance().GetSoc().GetNPUArch() == NPUArch::DAV_3510; |
| 132 | enableVF = enableVF && config::GetPassGlobalConfig(KEY_ENABLE_VF, false); | 133 | enableVF = enableVF && config::GetPassGlobalConfig(KEY_ENABLE_VF, false); |
| @@ -188,7 +189,7 @@ void MainBlockCondBulider::Gencode(Function* function) | |||
| 188 | bool isDynamicAligned = function->paramConfigs_.dynamicAlignedOps; | 189 | bool isDynamicAligned = function->paramConfigs_.dynamicAlignedOps; |
| 189 | npu::tile_fwk::CodeGenCtx codeGenCtxMainBlock("", config::GetEmitPath("kernel_aicore"), true, isDynamicAligned); | 190 | npu::tile_fwk::CodeGenCtx codeGenCtxMainBlock("", config::GetEmitPath("kernel_aicore"), true, isDynamicAligned); |
| 190 | npu::tile_fwk::CodeGen codeGenMainBlock(codeGenCtxMainBlock); | 191 | npu::tile_fwk::CodeGen codeGenMainBlock(codeGenCtxMainBlock); |
| 191 | - codeGenMainBlock.GenCode(*function, {}); | 192 | + codeGenMainBlock.GenCode(*function); |
| 192 | } | 193 | } |
| 193 | } | 194 | } |
| 194 | 195 | ||
| @@ -142,7 +142,6 @@ std::shared_ptr<LogicalTensor> CreateConvTensor( | |||
| 142 | const bool& isCopyIn = true); | 142 | const bool& isCopyIn = true); |
| 143 | 143 | ||
| 144 | struct GenOpCodeOptions { | 144 | struct GenOpCodeOptions { |
| 145 | - std::map<int, int> lto = {}; | ||
| 146 | bool isMainBlk = false; | 145 | bool isMainBlk = false; |
| 147 | }; | 146 | }; |
| 148 | 147 | ||
| @@ -70,7 +70,7 @@ void testPa(PaTileShapeConfig& tileConfig, int maxUnrollTimes = 1) | |||
| 70 | if (isRootExist) { | 70 | if (isRootExist) { |
| 71 | npu::tile_fwk::CodeGenCtx ctx; | 71 | npu::tile_fwk::CodeGenCtx ctx; |
| 72 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 72 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 73 | - codeGen.GenCode(*ele.second.get(), {}); | 73 | + codeGen.GenCode(*ele.second.get()); |
| 74 | } | 74 | } |
| 75 | } | 75 | } |
| 76 | } | 76 | } |
| @@ -64,7 +64,7 @@ TEST_F(TestCodegenStaticUnderDyn, TestStaticFuncUnderDyn) | |||
| 64 | if (isRootExist) { | 64 | if (isRootExist) { |
| 65 | npu::tile_fwk::CodeGenCtx ctx; | 65 | npu::tile_fwk::CodeGenCtx ctx; |
| 66 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 66 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 67 | - codeGen.GenCode(*ele.second.get(), {}); | 67 | + codeGen.GenCode(*ele.second.get()); |
| 68 | } | 68 | } |
| 69 | } | 69 | } |
| 70 | } | 70 | } |
| @@ -42,7 +42,7 @@ void TestCodeGenAbs::test_Abs_fp16_001() | |||
| 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_001"); | 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_001"); |
| 43 | npu::tile_fwk::CodeGenCtx ctx; | 43 | npu::tile_fwk::CodeGenCtx ctx; |
| 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 45 | - codeGen.GenCode(*function, {}); | 45 | + codeGen.GenCode(*function); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void TestCodeGenAbs::test_Abs_fp16_002() | 48 | void TestCodeGenAbs::test_Abs_fp16_002() |
| @@ -61,7 +61,7 @@ void TestCodeGenAbs::test_Abs_fp16_002() | |||
| 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_002"); | 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_002"); |
| 62 | npu::tile_fwk::CodeGenCtx ctx; | 62 | npu::tile_fwk::CodeGenCtx ctx; |
| 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 64 | - codeGen.GenCode(*function, {}); | 64 | + codeGen.GenCode(*function); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void TestCodeGenAbs::test_Abs_fp32_003() | 67 | void TestCodeGenAbs::test_Abs_fp32_003() |
| @@ -80,7 +80,7 @@ void TestCodeGenAbs::test_Abs_fp32_003() | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_003"); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_003"); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void TestCodeGenAbs::test_Abs_fp32_004() | 86 | void TestCodeGenAbs::test_Abs_fp32_004() |
| @@ -99,7 +99,7 @@ void TestCodeGenAbs::test_Abs_fp32_004() | |||
| 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_004"); | 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_004"); |
| 100 | npu::tile_fwk::CodeGenCtx ctx; | 100 | npu::tile_fwk::CodeGenCtx ctx; |
| 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 102 | - codeGen.GenCode(*function, {}); | 102 | + codeGen.GenCode(*function); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void TestCodeGenAbs::test_Abs_fp16_005() | 105 | void TestCodeGenAbs::test_Abs_fp16_005() |
| @@ -118,7 +118,7 @@ void TestCodeGenAbs::test_Abs_fp16_005() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_005"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_005"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenAbs::test_Abs_fp32_006() | 124 | void TestCodeGenAbs::test_Abs_fp32_006() |
| @@ -137,7 +137,7 @@ void TestCodeGenAbs::test_Abs_fp32_006() | |||
| 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_006"); | 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_006"); |
| 138 | npu::tile_fwk::CodeGenCtx ctx; | 138 | npu::tile_fwk::CodeGenCtx ctx; |
| 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 140 | - codeGen.GenCode(*function, {}); | 140 | + codeGen.GenCode(*function); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void TestCodeGenAbs::test_Abs_fp16_007() | 143 | void TestCodeGenAbs::test_Abs_fp16_007() |
| @@ -156,7 +156,7 @@ void TestCodeGenAbs::test_Abs_fp16_007() | |||
| 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_007"); | 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_007"); |
| 157 | npu::tile_fwk::CodeGenCtx ctx; | 157 | npu::tile_fwk::CodeGenCtx ctx; |
| 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 159 | - codeGen.GenCode(*function, {}); | 159 | + codeGen.GenCode(*function); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | void TestCodeGenAbs::test_Abs_fp32_008() | 162 | void TestCodeGenAbs::test_Abs_fp32_008() |
| @@ -175,7 +175,7 @@ void TestCodeGenAbs::test_Abs_fp32_008() | |||
| 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_008"); | 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_008"); |
| 176 | npu::tile_fwk::CodeGenCtx ctx; | 176 | npu::tile_fwk::CodeGenCtx ctx; |
| 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 178 | - codeGen.GenCode(*function, {}); | 178 | + codeGen.GenCode(*function); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void TestCodeGenAbs::test_Abs_fp16_009() | 181 | void TestCodeGenAbs::test_Abs_fp16_009() |
| @@ -194,7 +194,7 @@ void TestCodeGenAbs::test_Abs_fp16_009() | |||
| 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_009"); | 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_009"); |
| 195 | npu::tile_fwk::CodeGenCtx ctx; | 195 | npu::tile_fwk::CodeGenCtx ctx; |
| 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 197 | - codeGen.GenCode(*function, {}); | 197 | + codeGen.GenCode(*function); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void TestCodeGenAbs::test_Abs_fp32_010() | 200 | void TestCodeGenAbs::test_Abs_fp32_010() |
| @@ -213,7 +213,7 @@ void TestCodeGenAbs::test_Abs_fp32_010() | |||
| 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_010"); | 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_010"); |
| 214 | npu::tile_fwk::CodeGenCtx ctx; | 214 | npu::tile_fwk::CodeGenCtx ctx; |
| 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 216 | - codeGen.GenCode(*function, {}); | 216 | + codeGen.GenCode(*function); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void TestCodeGenAbs::test_Abs_fp16_011() | 219 | void TestCodeGenAbs::test_Abs_fp16_011() |
| @@ -232,7 +232,7 @@ void TestCodeGenAbs::test_Abs_fp16_011() | |||
| 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_011"); | 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_011"); |
| 233 | npu::tile_fwk::CodeGenCtx ctx; | 233 | npu::tile_fwk::CodeGenCtx ctx; |
| 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 235 | - codeGen.GenCode(*function, {}); | 235 | + codeGen.GenCode(*function); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void TestCodeGenAbs::test_Abs_fp32_012() | 238 | void TestCodeGenAbs::test_Abs_fp32_012() |
| @@ -251,7 +251,7 @@ void TestCodeGenAbs::test_Abs_fp32_012() | |||
| 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_012"); | 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_012"); |
| 252 | npu::tile_fwk::CodeGenCtx ctx; | 252 | npu::tile_fwk::CodeGenCtx ctx; |
| 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 254 | - codeGen.GenCode(*function, {}); | 254 | + codeGen.GenCode(*function); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void TestCodeGenAbs::test_Abs_fp16_013() | 257 | void TestCodeGenAbs::test_Abs_fp16_013() |
| @@ -270,7 +270,7 @@ void TestCodeGenAbs::test_Abs_fp16_013() | |||
| 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_013"); | 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_013"); |
| 271 | npu::tile_fwk::CodeGenCtx ctx; | 271 | npu::tile_fwk::CodeGenCtx ctx; |
| 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 273 | - codeGen.GenCode(*function, {}); | 273 | + codeGen.GenCode(*function); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void TestCodeGenAbs::test_Abs_fp32_014() | 276 | void TestCodeGenAbs::test_Abs_fp32_014() |
| @@ -289,7 +289,7 @@ void TestCodeGenAbs::test_Abs_fp32_014() | |||
| 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_014"); | 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp32_014"); |
| 290 | npu::tile_fwk::CodeGenCtx ctx; | 290 | npu::tile_fwk::CodeGenCtx ctx; |
| 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 292 | - codeGen.GenCode(*function, {}); | 292 | + codeGen.GenCode(*function); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void TestCodeGenAbs::test_Abs_fp16_015() | 295 | void TestCodeGenAbs::test_Abs_fp16_015() |
| @@ -308,5 +308,5 @@ void TestCodeGenAbs::test_Abs_fp16_015() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_015"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Abs_fp16_015"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| @@ -42,7 +42,7 @@ void TestCodeGenAdd::test_add_001() | |||
| 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_001"); | 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_001"); |
| 43 | npu::tile_fwk::CodeGenCtx ctx; | 43 | npu::tile_fwk::CodeGenCtx ctx; |
| 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 45 | - codeGen.GenCode(*function, {}); | 45 | + codeGen.GenCode(*function); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void TestCodeGenAdd::test_add_002() | 48 | void TestCodeGenAdd::test_add_002() |
| @@ -61,7 +61,7 @@ void TestCodeGenAdd::test_add_002() | |||
| 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_002"); | 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_002"); |
| 62 | npu::tile_fwk::CodeGenCtx ctx; | 62 | npu::tile_fwk::CodeGenCtx ctx; |
| 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 64 | - codeGen.GenCode(*function, {}); | 64 | + codeGen.GenCode(*function); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void TestCodeGenAdd::test_add_003() | 67 | void TestCodeGenAdd::test_add_003() |
| @@ -80,7 +80,7 @@ void TestCodeGenAdd::test_add_003() | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_003"); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_003"); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void TestCodeGenAdd::test_add_004() | 86 | void TestCodeGenAdd::test_add_004() |
| @@ -99,7 +99,7 @@ void TestCodeGenAdd::test_add_004() | |||
| 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_004"); | 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_004"); |
| 100 | npu::tile_fwk::CodeGenCtx ctx; | 100 | npu::tile_fwk::CodeGenCtx ctx; |
| 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 102 | - codeGen.GenCode(*function, {}); | 102 | + codeGen.GenCode(*function); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void TestCodeGenAdd::test_add_005() | 105 | void TestCodeGenAdd::test_add_005() |
| @@ -118,7 +118,7 @@ void TestCodeGenAdd::test_add_005() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_005"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_005"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenAdd::test_add_006() | 124 | void TestCodeGenAdd::test_add_006() |
| @@ -137,7 +137,7 @@ void TestCodeGenAdd::test_add_006() | |||
| 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_006"); | 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_006"); |
| 138 | npu::tile_fwk::CodeGenCtx ctx; | 138 | npu::tile_fwk::CodeGenCtx ctx; |
| 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 140 | - codeGen.GenCode(*function, {}); | 140 | + codeGen.GenCode(*function); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void TestCodeGenAdd::test_add_007() | 143 | void TestCodeGenAdd::test_add_007() |
| @@ -156,7 +156,7 @@ void TestCodeGenAdd::test_add_007() | |||
| 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_007"); | 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_007"); |
| 157 | npu::tile_fwk::CodeGenCtx ctx; | 157 | npu::tile_fwk::CodeGenCtx ctx; |
| 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 159 | - codeGen.GenCode(*function, {}); | 159 | + codeGen.GenCode(*function); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | void TestCodeGenAdd::test_add_008() | 162 | void TestCodeGenAdd::test_add_008() |
| @@ -175,7 +175,7 @@ void TestCodeGenAdd::test_add_008() | |||
| 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_008"); | 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_008"); |
| 176 | npu::tile_fwk::CodeGenCtx ctx; | 176 | npu::tile_fwk::CodeGenCtx ctx; |
| 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 178 | - codeGen.GenCode(*function, {}); | 178 | + codeGen.GenCode(*function); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void TestCodeGenAdd::test_add_009() | 181 | void TestCodeGenAdd::test_add_009() |
| @@ -194,7 +194,7 @@ void TestCodeGenAdd::test_add_009() | |||
| 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_009"); | 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_009"); |
| 195 | npu::tile_fwk::CodeGenCtx ctx; | 195 | npu::tile_fwk::CodeGenCtx ctx; |
| 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 197 | - codeGen.GenCode(*function, {}); | 197 | + codeGen.GenCode(*function); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void TestCodeGenAdd::test_add_010() | 200 | void TestCodeGenAdd::test_add_010() |
| @@ -213,7 +213,7 @@ void TestCodeGenAdd::test_add_010() | |||
| 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_010"); | 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_010"); |
| 214 | npu::tile_fwk::CodeGenCtx ctx; | 214 | npu::tile_fwk::CodeGenCtx ctx; |
| 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 216 | - codeGen.GenCode(*function, {}); | 216 | + codeGen.GenCode(*function); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void TestCodeGenAdd::test_add_011() | 219 | void TestCodeGenAdd::test_add_011() |
| @@ -232,7 +232,7 @@ void TestCodeGenAdd::test_add_011() | |||
| 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_011"); | 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_011"); |
| 233 | npu::tile_fwk::CodeGenCtx ctx; | 233 | npu::tile_fwk::CodeGenCtx ctx; |
| 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 235 | - codeGen.GenCode(*function, {}); | 235 | + codeGen.GenCode(*function); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void TestCodeGenAdd::test_add_012() | 238 | void TestCodeGenAdd::test_add_012() |
| @@ -251,7 +251,7 @@ void TestCodeGenAdd::test_add_012() | |||
| 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_012"); | 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_012"); |
| 252 | npu::tile_fwk::CodeGenCtx ctx; | 252 | npu::tile_fwk::CodeGenCtx ctx; |
| 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 254 | - codeGen.GenCode(*function, {}); | 254 | + codeGen.GenCode(*function); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void TestCodeGenAdd::test_add_013() | 257 | void TestCodeGenAdd::test_add_013() |
| @@ -270,7 +270,7 @@ void TestCodeGenAdd::test_add_013() | |||
| 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_013"); | 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_013"); |
| 271 | npu::tile_fwk::CodeGenCtx ctx; | 271 | npu::tile_fwk::CodeGenCtx ctx; |
| 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 273 | - codeGen.GenCode(*function, {}); | 273 | + codeGen.GenCode(*function); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void TestCodeGenAdd::test_add_014() | 276 | void TestCodeGenAdd::test_add_014() |
| @@ -289,7 +289,7 @@ void TestCodeGenAdd::test_add_014() | |||
| 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_014"); | 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_014"); |
| 290 | npu::tile_fwk::CodeGenCtx ctx; | 290 | npu::tile_fwk::CodeGenCtx ctx; |
| 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 292 | - codeGen.GenCode(*function, {}); | 292 | + codeGen.GenCode(*function); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void TestCodeGenAdd::test_add_015() | 295 | void TestCodeGenAdd::test_add_015() |
| @@ -308,7 +308,7 @@ void TestCodeGenAdd::test_add_015() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_015"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_015"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenAdd::test_add_016() | 314 | void TestCodeGenAdd::test_add_016() |
| @@ -327,7 +327,7 @@ void TestCodeGenAdd::test_add_016() | |||
| 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_016"); | 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_016"); |
| 328 | npu::tile_fwk::CodeGenCtx ctx; | 328 | npu::tile_fwk::CodeGenCtx ctx; |
| 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 330 | - codeGen.GenCode(*function, {}); | 330 | + codeGen.GenCode(*function); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | void TestCodeGenAdd::test_add_017() | 333 | void TestCodeGenAdd::test_add_017() |
| @@ -346,7 +346,7 @@ void TestCodeGenAdd::test_add_017() | |||
| 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_017"); | 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_017"); |
| 347 | npu::tile_fwk::CodeGenCtx ctx; | 347 | npu::tile_fwk::CodeGenCtx ctx; |
| 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 349 | - codeGen.GenCode(*function, {}); | 349 | + codeGen.GenCode(*function); |
| 350 | } | 350 | } |
| 351 | 351 | ||
| 352 | void TestCodeGenAdd::test_add_018() | 352 | void TestCodeGenAdd::test_add_018() |
| @@ -365,7 +365,7 @@ void TestCodeGenAdd::test_add_018() | |||
| 365 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_018"); | 365 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_018"); |
| 366 | npu::tile_fwk::CodeGenCtx ctx; | 366 | npu::tile_fwk::CodeGenCtx ctx; |
| 367 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 367 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 368 | - codeGen.GenCode(*function, {}); | 368 | + codeGen.GenCode(*function); |
| 369 | } | 369 | } |
| 370 | 370 | ||
| 371 | void TestCodeGenAdd::test_add_019() | 371 | void TestCodeGenAdd::test_add_019() |
| @@ -384,7 +384,7 @@ void TestCodeGenAdd::test_add_019() | |||
| 384 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_019"); | 384 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_019"); |
| 385 | npu::tile_fwk::CodeGenCtx ctx; | 385 | npu::tile_fwk::CodeGenCtx ctx; |
| 386 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 386 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 387 | - codeGen.GenCode(*function, {}); | 387 | + codeGen.GenCode(*function); |
| 388 | } | 388 | } |
| 389 | 389 | ||
| 390 | void TestCodeGenAdd::test_add_020() | 390 | void TestCodeGenAdd::test_add_020() |
| @@ -403,7 +403,7 @@ void TestCodeGenAdd::test_add_020() | |||
| 403 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_020"); | 403 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_020"); |
| 404 | npu::tile_fwk::CodeGenCtx ctx; | 404 | npu::tile_fwk::CodeGenCtx ctx; |
| 405 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 405 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 406 | - codeGen.GenCode(*function, {}); | 406 | + codeGen.GenCode(*function); |
| 407 | } | 407 | } |
| 408 | 408 | ||
| 409 | void TestCodeGenAdd::test_add_021() | 409 | void TestCodeGenAdd::test_add_021() |
| @@ -422,7 +422,7 @@ void TestCodeGenAdd::test_add_021() | |||
| 422 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_021"); | 422 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_021"); |
| 423 | npu::tile_fwk::CodeGenCtx ctx; | 423 | npu::tile_fwk::CodeGenCtx ctx; |
| 424 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 424 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 425 | - codeGen.GenCode(*function, {}); | 425 | + codeGen.GenCode(*function); |
| 426 | } | 426 | } |
| 427 | 427 | ||
| 428 | void TestCodeGenAdd::test_add_022() | 428 | void TestCodeGenAdd::test_add_022() |
| @@ -441,7 +441,7 @@ void TestCodeGenAdd::test_add_022() | |||
| 441 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_022"); | 441 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_022"); |
| 442 | npu::tile_fwk::CodeGenCtx ctx; | 442 | npu::tile_fwk::CodeGenCtx ctx; |
| 443 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 443 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 444 | - codeGen.GenCode(*function, {}); | 444 | + codeGen.GenCode(*function); |
| 445 | } | 445 | } |
| 446 | 446 | ||
| 447 | void TestCodeGenAdd::test_add_023() | 447 | void TestCodeGenAdd::test_add_023() |
| @@ -460,7 +460,7 @@ void TestCodeGenAdd::test_add_023() | |||
| 460 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_023"); | 460 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_023"); |
| 461 | npu::tile_fwk::CodeGenCtx ctx; | 461 | npu::tile_fwk::CodeGenCtx ctx; |
| 462 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 462 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 463 | - codeGen.GenCode(*function, {}); | 463 | + codeGen.GenCode(*function); |
| 464 | } | 464 | } |
| 465 | 465 | ||
| 466 | void TestCodeGenAdd::test_add_024() | 466 | void TestCodeGenAdd::test_add_024() |
| @@ -479,7 +479,7 @@ void TestCodeGenAdd::test_add_024() | |||
| 479 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_024"); | 479 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_024"); |
| 480 | npu::tile_fwk::CodeGenCtx ctx; | 480 | npu::tile_fwk::CodeGenCtx ctx; |
| 481 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 481 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 482 | - codeGen.GenCode(*function, {}); | 482 | + codeGen.GenCode(*function); |
| 483 | } | 483 | } |
| 484 | 484 | ||
| 485 | void TestCodeGenAdd::test_add_025() | 485 | void TestCodeGenAdd::test_add_025() |
| @@ -498,7 +498,7 @@ void TestCodeGenAdd::test_add_025() | |||
| 498 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_025"); | 498 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_025"); |
| 499 | npu::tile_fwk::CodeGenCtx ctx; | 499 | npu::tile_fwk::CodeGenCtx ctx; |
| 500 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 500 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 501 | - codeGen.GenCode(*function, {}); | 501 | + codeGen.GenCode(*function); |
| 502 | } | 502 | } |
| 503 | 503 | ||
| 504 | void TestCodeGenAdd::test_add_026() | 504 | void TestCodeGenAdd::test_add_026() |
| @@ -517,7 +517,7 @@ void TestCodeGenAdd::test_add_026() | |||
| 517 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_026"); | 517 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_026"); |
| 518 | npu::tile_fwk::CodeGenCtx ctx; | 518 | npu::tile_fwk::CodeGenCtx ctx; |
| 519 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 519 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 520 | - codeGen.GenCode(*function, {}); | 520 | + codeGen.GenCode(*function); |
| 521 | } | 521 | } |
| 522 | 522 | ||
| 523 | void TestCodeGenAdd::test_add_027() | 523 | void TestCodeGenAdd::test_add_027() |
| @@ -536,7 +536,7 @@ void TestCodeGenAdd::test_add_027() | |||
| 536 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_027"); | 536 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_027"); |
| 537 | npu::tile_fwk::CodeGenCtx ctx; | 537 | npu::tile_fwk::CodeGenCtx ctx; |
| 538 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 538 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 539 | - codeGen.GenCode(*function, {}); | 539 | + codeGen.GenCode(*function); |
| 540 | } | 540 | } |
| 541 | 541 | ||
| 542 | void TestCodeGenAdd::test_add_028() | 542 | void TestCodeGenAdd::test_add_028() |
| @@ -555,7 +555,7 @@ void TestCodeGenAdd::test_add_028() | |||
| 555 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_028"); | 555 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_028"); |
| 556 | npu::tile_fwk::CodeGenCtx ctx; | 556 | npu::tile_fwk::CodeGenCtx ctx; |
| 557 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 557 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 558 | - codeGen.GenCode(*function, {}); | 558 | + codeGen.GenCode(*function); |
| 559 | } | 559 | } |
| 560 | 560 | ||
| 561 | void TestCodeGenAdd::test_add_029() | 561 | void TestCodeGenAdd::test_add_029() |
| @@ -574,7 +574,7 @@ void TestCodeGenAdd::test_add_029() | |||
| 574 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_029"); | 574 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_029"); |
| 575 | npu::tile_fwk::CodeGenCtx ctx; | 575 | npu::tile_fwk::CodeGenCtx ctx; |
| 576 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 576 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 577 | - codeGen.GenCode(*function, {}); | 577 | + codeGen.GenCode(*function); |
| 578 | } | 578 | } |
| 579 | 579 | ||
| 580 | void TestCodeGenAdd::test_add_030() | 580 | void TestCodeGenAdd::test_add_030() |
| @@ -593,7 +593,7 @@ void TestCodeGenAdd::test_add_030() | |||
| 593 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_030"); | 593 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_030"); |
| 594 | npu::tile_fwk::CodeGenCtx ctx; | 594 | npu::tile_fwk::CodeGenCtx ctx; |
| 595 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 595 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 596 | - codeGen.GenCode(*function, {}); | 596 | + codeGen.GenCode(*function); |
| 597 | } | 597 | } |
| 598 | 598 | ||
| 599 | void TestCodeGenAdd::test_add_031() | 599 | void TestCodeGenAdd::test_add_031() |
| @@ -612,7 +612,7 @@ void TestCodeGenAdd::test_add_031() | |||
| 612 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_031"); | 612 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_031"); |
| 613 | npu::tile_fwk::CodeGenCtx ctx; | 613 | npu::tile_fwk::CodeGenCtx ctx; |
| 614 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 614 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 615 | - codeGen.GenCode(*function, {}); | 615 | + codeGen.GenCode(*function); |
| 616 | } | 616 | } |
| 617 | 617 | ||
| 618 | void TestCodeGenAdd::test_add_032() | 618 | void TestCodeGenAdd::test_add_032() |
| @@ -631,7 +631,7 @@ void TestCodeGenAdd::test_add_032() | |||
| 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_032"); | 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_032"); |
| 632 | npu::tile_fwk::CodeGenCtx ctx; | 632 | npu::tile_fwk::CodeGenCtx ctx; |
| 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 634 | - codeGen.GenCode(*function, {}); | 634 | + codeGen.GenCode(*function); |
| 635 | } | 635 | } |
| 636 | 636 | ||
| 637 | void TestCodeGenAdd::test_add_033() | 637 | void TestCodeGenAdd::test_add_033() |
| @@ -650,7 +650,7 @@ void TestCodeGenAdd::test_add_033() | |||
| 650 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_033"); | 650 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_033"); |
| 651 | npu::tile_fwk::CodeGenCtx ctx; | 651 | npu::tile_fwk::CodeGenCtx ctx; |
| 652 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 652 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 653 | - codeGen.GenCode(*function, {}); | 653 | + codeGen.GenCode(*function); |
| 654 | } | 654 | } |
| 655 | 655 | ||
| 656 | void TestCodeGenAdd::test_add_034() | 656 | void TestCodeGenAdd::test_add_034() |
| @@ -669,7 +669,7 @@ void TestCodeGenAdd::test_add_034() | |||
| 669 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_034"); | 669 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_034"); |
| 670 | npu::tile_fwk::CodeGenCtx ctx; | 670 | npu::tile_fwk::CodeGenCtx ctx; |
| 671 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 671 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 672 | - codeGen.GenCode(*function, {}); | 672 | + codeGen.GenCode(*function); |
| 673 | } | 673 | } |
| 674 | 674 | ||
| 675 | void TestCodeGenAdd::test_add_035() | 675 | void TestCodeGenAdd::test_add_035() |
| @@ -688,7 +688,7 @@ void TestCodeGenAdd::test_add_035() | |||
| 688 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_035"); | 688 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_035"); |
| 689 | npu::tile_fwk::CodeGenCtx ctx; | 689 | npu::tile_fwk::CodeGenCtx ctx; |
| 690 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 690 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 691 | - codeGen.GenCode(*function, {}); | 691 | + codeGen.GenCode(*function); |
| 692 | } | 692 | } |
| 693 | 693 | ||
| 694 | void TestCodeGenAdd::test_add_036() | 694 | void TestCodeGenAdd::test_add_036() |
| @@ -707,7 +707,7 @@ void TestCodeGenAdd::test_add_036() | |||
| 707 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_036"); | 707 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_036"); |
| 708 | npu::tile_fwk::CodeGenCtx ctx; | 708 | npu::tile_fwk::CodeGenCtx ctx; |
| 709 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 709 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 710 | - codeGen.GenCode(*function, {}); | 710 | + codeGen.GenCode(*function); |
| 711 | } | 711 | } |
| 712 | 712 | ||
| 713 | void TestCodeGenAdd::test_add_037() | 713 | void TestCodeGenAdd::test_add_037() |
| @@ -726,7 +726,7 @@ void TestCodeGenAdd::test_add_037() | |||
| 726 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_037"); | 726 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_037"); |
| 727 | npu::tile_fwk::CodeGenCtx ctx; | 727 | npu::tile_fwk::CodeGenCtx ctx; |
| 728 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 728 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 729 | - codeGen.GenCode(*function, {}); | 729 | + codeGen.GenCode(*function); |
| 730 | } | 730 | } |
| 731 | 731 | ||
| 732 | void TestCodeGenAdd::test_add_038() | 732 | void TestCodeGenAdd::test_add_038() |
| @@ -745,7 +745,7 @@ void TestCodeGenAdd::test_add_038() | |||
| 745 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_038"); | 745 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_038"); |
| 746 | npu::tile_fwk::CodeGenCtx ctx; | 746 | npu::tile_fwk::CodeGenCtx ctx; |
| 747 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 747 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 748 | - codeGen.GenCode(*function, {}); | 748 | + codeGen.GenCode(*function); |
| 749 | } | 749 | } |
| 750 | 750 | ||
| 751 | void TestCodeGenAdd::test_add_039() | 751 | void TestCodeGenAdd::test_add_039() |
| @@ -764,7 +764,7 @@ void TestCodeGenAdd::test_add_039() | |||
| 764 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_039"); | 764 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_039"); |
| 765 | npu::tile_fwk::CodeGenCtx ctx; | 765 | npu::tile_fwk::CodeGenCtx ctx; |
| 766 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 766 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 767 | - codeGen.GenCode(*function, {}); | 767 | + codeGen.GenCode(*function); |
| 768 | } | 768 | } |
| 769 | 769 | ||
| 770 | void TestCodeGenAdd::test_add_040() | 770 | void TestCodeGenAdd::test_add_040() |
| @@ -783,7 +783,7 @@ void TestCodeGenAdd::test_add_040() | |||
| 783 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_040"); | 783 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_040"); |
| 784 | npu::tile_fwk::CodeGenCtx ctx; | 784 | npu::tile_fwk::CodeGenCtx ctx; |
| 785 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 785 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 786 | - codeGen.GenCode(*function, {}); | 786 | + codeGen.GenCode(*function); |
| 787 | } | 787 | } |
| 788 | 788 | ||
| 789 | void TestCodeGenAdd::test_add_041() | 789 | void TestCodeGenAdd::test_add_041() |
| @@ -802,7 +802,7 @@ void TestCodeGenAdd::test_add_041() | |||
| 802 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_041"); | 802 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_041"); |
| 803 | npu::tile_fwk::CodeGenCtx ctx; | 803 | npu::tile_fwk::CodeGenCtx ctx; |
| 804 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 804 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 805 | - codeGen.GenCode(*function, {}); | 805 | + codeGen.GenCode(*function); |
| 806 | } | 806 | } |
| 807 | 807 | ||
| 808 | void TestCodeGenAdd::test_add_042() | 808 | void TestCodeGenAdd::test_add_042() |
| @@ -821,7 +821,7 @@ void TestCodeGenAdd::test_add_042() | |||
| 821 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_042"); | 821 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_042"); |
| 822 | npu::tile_fwk::CodeGenCtx ctx; | 822 | npu::tile_fwk::CodeGenCtx ctx; |
| 823 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 823 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 824 | - codeGen.GenCode(*function, {}); | 824 | + codeGen.GenCode(*function); |
| 825 | } | 825 | } |
| 826 | 826 | ||
| 827 | void TestCodeGenAdd::test_add_043() | 827 | void TestCodeGenAdd::test_add_043() |
| @@ -840,7 +840,7 @@ void TestCodeGenAdd::test_add_043() | |||
| 840 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_043"); | 840 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_043"); |
| 841 | npu::tile_fwk::CodeGenCtx ctx; | 841 | npu::tile_fwk::CodeGenCtx ctx; |
| 842 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 842 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 843 | - codeGen.GenCode(*function, {}); | 843 | + codeGen.GenCode(*function); |
| 844 | } | 844 | } |
| 845 | 845 | ||
| 846 | void TestCodeGenAdd::test_add_044() | 846 | void TestCodeGenAdd::test_add_044() |
| @@ -859,7 +859,7 @@ void TestCodeGenAdd::test_add_044() | |||
| 859 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_044"); | 859 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_044"); |
| 860 | npu::tile_fwk::CodeGenCtx ctx; | 860 | npu::tile_fwk::CodeGenCtx ctx; |
| 861 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 861 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 862 | - codeGen.GenCode(*function, {}); | 862 | + codeGen.GenCode(*function); |
| 863 | } | 863 | } |
| 864 | 864 | ||
| 865 | void TestCodeGenAdd::test_add_045() | 865 | void TestCodeGenAdd::test_add_045() |
| @@ -878,7 +878,7 @@ void TestCodeGenAdd::test_add_045() | |||
| 878 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_045"); | 878 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_045"); |
| 879 | npu::tile_fwk::CodeGenCtx ctx; | 879 | npu::tile_fwk::CodeGenCtx ctx; |
| 880 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 880 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 881 | - codeGen.GenCode(*function, {}); | 881 | + codeGen.GenCode(*function); |
| 882 | } | 882 | } |
| 883 | 883 | ||
| 884 | void TestCodeGenAdd::test_add_046() | 884 | void TestCodeGenAdd::test_add_046() |
| @@ -897,7 +897,7 @@ void TestCodeGenAdd::test_add_046() | |||
| 897 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_046"); | 897 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_046"); |
| 898 | npu::tile_fwk::CodeGenCtx ctx; | 898 | npu::tile_fwk::CodeGenCtx ctx; |
| 899 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 899 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 900 | - codeGen.GenCode(*function, {}); | 900 | + codeGen.GenCode(*function); |
| 901 | } | 901 | } |
| 902 | 902 | ||
| 903 | void TestCodeGenAdd::test_add_047() | 903 | void TestCodeGenAdd::test_add_047() |
| @@ -916,7 +916,7 @@ void TestCodeGenAdd::test_add_047() | |||
| 916 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_047"); | 916 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_047"); |
| 917 | npu::tile_fwk::CodeGenCtx ctx; | 917 | npu::tile_fwk::CodeGenCtx ctx; |
| 918 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 918 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 919 | - codeGen.GenCode(*function, {}); | 919 | + codeGen.GenCode(*function); |
| 920 | } | 920 | } |
| 921 | 921 | ||
| 922 | void TestCodeGenAdd::test_add_048() | 922 | void TestCodeGenAdd::test_add_048() |
| @@ -935,5 +935,5 @@ void TestCodeGenAdd::test_add_048() | |||
| 935 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_048"); | 935 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ADD_048"); |
| 936 | npu::tile_fwk::CodeGenCtx ctx; | 936 | npu::tile_fwk::CodeGenCtx ctx; |
| 937 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 937 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 938 | - codeGen.GenCode(*function, {}); | 938 | + codeGen.GenCode(*function); |
| 939 | } | 939 | } |
| @@ -38,7 +38,7 @@ void TestCodeGenAmax::test_amax_fp16_003() | |||
| 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_003"); | 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_003"); |
| 39 | npu::tile_fwk::CodeGenCtx ctx; | 39 | npu::tile_fwk::CodeGenCtx ctx; |
| 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 41 | - codeGen.GenCode(*function, {}); | 41 | + codeGen.GenCode(*function); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | void TestCodeGenAmax::test_amax_fp16_004() | 44 | void TestCodeGenAmax::test_amax_fp16_004() |
| @@ -53,7 +53,7 @@ void TestCodeGenAmax::test_amax_fp16_004() | |||
| 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_004"); | 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_004"); |
| 54 | npu::tile_fwk::CodeGenCtx ctx; | 54 | npu::tile_fwk::CodeGenCtx ctx; |
| 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 56 | - codeGen.GenCode(*function, {}); | 56 | + codeGen.GenCode(*function); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void TestCodeGenAmax::test_amax_fp16_005() | 59 | void TestCodeGenAmax::test_amax_fp16_005() |
| @@ -68,7 +68,7 @@ void TestCodeGenAmax::test_amax_fp16_005() | |||
| 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_005"); | 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_005"); |
| 69 | npu::tile_fwk::CodeGenCtx ctx; | 69 | npu::tile_fwk::CodeGenCtx ctx; |
| 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 71 | - codeGen.GenCode(*function, {}); | 71 | + codeGen.GenCode(*function); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void TestCodeGenAmax::test_amax_fp16_006() | 74 | void TestCodeGenAmax::test_amax_fp16_006() |
| @@ -83,7 +83,7 @@ void TestCodeGenAmax::test_amax_fp16_006() | |||
| 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_006"); | 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_006"); |
| 84 | npu::tile_fwk::CodeGenCtx ctx; | 84 | npu::tile_fwk::CodeGenCtx ctx; |
| 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 86 | - codeGen.GenCode(*function, {}); | 86 | + codeGen.GenCode(*function); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | void TestCodeGenAmax::test_amax_fp16_007() | 89 | void TestCodeGenAmax::test_amax_fp16_007() |
| @@ -98,7 +98,7 @@ void TestCodeGenAmax::test_amax_fp16_007() | |||
| 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_007"); | 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_007"); |
| 99 | npu::tile_fwk::CodeGenCtx ctx; | 99 | npu::tile_fwk::CodeGenCtx ctx; |
| 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 101 | - codeGen.GenCode(*function, {}); | 101 | + codeGen.GenCode(*function); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | void TestCodeGenAmax::test_amax_fp16_008() | 104 | void TestCodeGenAmax::test_amax_fp16_008() |
| @@ -113,7 +113,7 @@ void TestCodeGenAmax::test_amax_fp16_008() | |||
| 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_008"); | 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_008"); |
| 114 | npu::tile_fwk::CodeGenCtx ctx; | 114 | npu::tile_fwk::CodeGenCtx ctx; |
| 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 116 | - codeGen.GenCode(*function, {}); | 116 | + codeGen.GenCode(*function); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | void TestCodeGenAmax::test_amax_fp16_009() | 119 | void TestCodeGenAmax::test_amax_fp16_009() |
| @@ -128,7 +128,7 @@ void TestCodeGenAmax::test_amax_fp16_009() | |||
| 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_009"); | 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_009"); |
| 129 | npu::tile_fwk::CodeGenCtx ctx; | 129 | npu::tile_fwk::CodeGenCtx ctx; |
| 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 131 | - codeGen.GenCode(*function, {}); | 131 | + codeGen.GenCode(*function); |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | void TestCodeGenAmax::test_amax_fp16_010() | 134 | void TestCodeGenAmax::test_amax_fp16_010() |
| @@ -143,7 +143,7 @@ void TestCodeGenAmax::test_amax_fp16_010() | |||
| 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_010"); | 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_010"); |
| 144 | npu::tile_fwk::CodeGenCtx ctx; | 144 | npu::tile_fwk::CodeGenCtx ctx; |
| 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 146 | - codeGen.GenCode(*function, {}); | 146 | + codeGen.GenCode(*function); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | void TestCodeGenAmax::test_amax_fp16_011() | 149 | void TestCodeGenAmax::test_amax_fp16_011() |
| @@ -158,7 +158,7 @@ void TestCodeGenAmax::test_amax_fp16_011() | |||
| 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_011"); | 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_011"); |
| 159 | npu::tile_fwk::CodeGenCtx ctx; | 159 | npu::tile_fwk::CodeGenCtx ctx; |
| 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 161 | - codeGen.GenCode(*function, {}); | 161 | + codeGen.GenCode(*function); |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | void TestCodeGenAmax::test_amax_fp16_012() | 164 | void TestCodeGenAmax::test_amax_fp16_012() |
| @@ -173,7 +173,7 @@ void TestCodeGenAmax::test_amax_fp16_012() | |||
| 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_012"); | 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_012"); |
| 174 | npu::tile_fwk::CodeGenCtx ctx; | 174 | npu::tile_fwk::CodeGenCtx ctx; |
| 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 176 | - codeGen.GenCode(*function, {}); | 176 | + codeGen.GenCode(*function); |
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | void TestCodeGenAmax::test_amax_fp16_013() | 179 | void TestCodeGenAmax::test_amax_fp16_013() |
| @@ -188,7 +188,7 @@ void TestCodeGenAmax::test_amax_fp16_013() | |||
| 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_013"); | 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_013"); |
| 189 | npu::tile_fwk::CodeGenCtx ctx; | 189 | npu::tile_fwk::CodeGenCtx ctx; |
| 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 191 | - codeGen.GenCode(*function, {}); | 191 | + codeGen.GenCode(*function); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | void TestCodeGenAmax::test_amax_fp16_014() | 194 | void TestCodeGenAmax::test_amax_fp16_014() |
| @@ -203,7 +203,7 @@ void TestCodeGenAmax::test_amax_fp16_014() | |||
| 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_014"); | 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_014"); |
| 204 | npu::tile_fwk::CodeGenCtx ctx; | 204 | npu::tile_fwk::CodeGenCtx ctx; |
| 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 206 | - codeGen.GenCode(*function, {}); | 206 | + codeGen.GenCode(*function); |
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | void TestCodeGenAmax::test_amax_fp16_015() | 209 | void TestCodeGenAmax::test_amax_fp16_015() |
| @@ -218,7 +218,7 @@ void TestCodeGenAmax::test_amax_fp16_015() | |||
| 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_015"); | 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP16_015"); |
| 219 | npu::tile_fwk::CodeGenCtx ctx; | 219 | npu::tile_fwk::CodeGenCtx ctx; |
| 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 221 | - codeGen.GenCode(*function, {}); | 221 | + codeGen.GenCode(*function); |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | void TestCodeGenAmax::test_amax_fp32_003() | 224 | void TestCodeGenAmax::test_amax_fp32_003() |
| @@ -233,7 +233,7 @@ void TestCodeGenAmax::test_amax_fp32_003() | |||
| 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_003"); | 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_003"); |
| 234 | npu::tile_fwk::CodeGenCtx ctx; | 234 | npu::tile_fwk::CodeGenCtx ctx; |
| 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 236 | - codeGen.GenCode(*function, {}); | 236 | + codeGen.GenCode(*function); |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | void TestCodeGenAmax::test_amax_fp32_004() | 239 | void TestCodeGenAmax::test_amax_fp32_004() |
| @@ -248,7 +248,7 @@ void TestCodeGenAmax::test_amax_fp32_004() | |||
| 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_004"); | 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_004"); |
| 249 | npu::tile_fwk::CodeGenCtx ctx; | 249 | npu::tile_fwk::CodeGenCtx ctx; |
| 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 251 | - codeGen.GenCode(*function, {}); | 251 | + codeGen.GenCode(*function); |
| 252 | } | 252 | } |
| 253 | 253 | ||
| 254 | void TestCodeGenAmax::test_amax_fp32_005() | 254 | void TestCodeGenAmax::test_amax_fp32_005() |
| @@ -263,7 +263,7 @@ void TestCodeGenAmax::test_amax_fp32_005() | |||
| 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_005"); | 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_005"); |
| 264 | npu::tile_fwk::CodeGenCtx ctx; | 264 | npu::tile_fwk::CodeGenCtx ctx; |
| 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 266 | - codeGen.GenCode(*function, {}); | 266 | + codeGen.GenCode(*function); |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | void TestCodeGenAmax::test_amax_fp32_006() | 269 | void TestCodeGenAmax::test_amax_fp32_006() |
| @@ -278,7 +278,7 @@ void TestCodeGenAmax::test_amax_fp32_006() | |||
| 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_006"); | 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_006"); |
| 279 | npu::tile_fwk::CodeGenCtx ctx; | 279 | npu::tile_fwk::CodeGenCtx ctx; |
| 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 281 | - codeGen.GenCode(*function, {}); | 281 | + codeGen.GenCode(*function); |
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | void TestCodeGenAmax::test_amax_fp32_007() | 284 | void TestCodeGenAmax::test_amax_fp32_007() |
| @@ -293,7 +293,7 @@ void TestCodeGenAmax::test_amax_fp32_007() | |||
| 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_007"); | 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_007"); |
| 294 | npu::tile_fwk::CodeGenCtx ctx; | 294 | npu::tile_fwk::CodeGenCtx ctx; |
| 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 296 | - codeGen.GenCode(*function, {}); | 296 | + codeGen.GenCode(*function); |
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | void TestCodeGenAmax::test_amax_fp32_008() | 299 | void TestCodeGenAmax::test_amax_fp32_008() |
| @@ -308,7 +308,7 @@ void TestCodeGenAmax::test_amax_fp32_008() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_008"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_008"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenAmax::test_amax_fp32_009() | 314 | void TestCodeGenAmax::test_amax_fp32_009() |
| @@ -323,7 +323,7 @@ void TestCodeGenAmax::test_amax_fp32_009() | |||
| 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_009"); | 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_009"); |
| 324 | npu::tile_fwk::CodeGenCtx ctx; | 324 | npu::tile_fwk::CodeGenCtx ctx; |
| 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 326 | - codeGen.GenCode(*function, {}); | 326 | + codeGen.GenCode(*function); |
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | void TestCodeGenAmax::test_amax_fp32_010() | 329 | void TestCodeGenAmax::test_amax_fp32_010() |
| @@ -338,7 +338,7 @@ void TestCodeGenAmax::test_amax_fp32_010() | |||
| 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_010"); | 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_010"); |
| 339 | npu::tile_fwk::CodeGenCtx ctx; | 339 | npu::tile_fwk::CodeGenCtx ctx; |
| 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 341 | - codeGen.GenCode(*function, {}); | 341 | + codeGen.GenCode(*function); |
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | void TestCodeGenAmax::test_amax_fp32_011() | 344 | void TestCodeGenAmax::test_amax_fp32_011() |
| @@ -353,7 +353,7 @@ void TestCodeGenAmax::test_amax_fp32_011() | |||
| 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_011"); | 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_011"); |
| 354 | npu::tile_fwk::CodeGenCtx ctx; | 354 | npu::tile_fwk::CodeGenCtx ctx; |
| 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 356 | - codeGen.GenCode(*function, {}); | 356 | + codeGen.GenCode(*function); |
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | void TestCodeGenAmax::test_amax_fp32_012() | 359 | void TestCodeGenAmax::test_amax_fp32_012() |
| @@ -368,7 +368,7 @@ void TestCodeGenAmax::test_amax_fp32_012() | |||
| 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_012"); | 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_012"); |
| 369 | npu::tile_fwk::CodeGenCtx ctx; | 369 | npu::tile_fwk::CodeGenCtx ctx; |
| 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 371 | - codeGen.GenCode(*function, {}); | 371 | + codeGen.GenCode(*function); |
| 372 | } | 372 | } |
| 373 | 373 | ||
| 374 | void TestCodeGenAmax::test_amax_fp32_013() | 374 | void TestCodeGenAmax::test_amax_fp32_013() |
| @@ -383,7 +383,7 @@ void TestCodeGenAmax::test_amax_fp32_013() | |||
| 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_013"); | 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_013"); |
| 384 | npu::tile_fwk::CodeGenCtx ctx; | 384 | npu::tile_fwk::CodeGenCtx ctx; |
| 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 386 | - codeGen.GenCode(*function, {}); | 386 | + codeGen.GenCode(*function); |
| 387 | } | 387 | } |
| 388 | 388 | ||
| 389 | void TestCodeGenAmax::test_amax_fp32_014() | 389 | void TestCodeGenAmax::test_amax_fp32_014() |
| @@ -398,7 +398,7 @@ void TestCodeGenAmax::test_amax_fp32_014() | |||
| 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_014"); | 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_014"); |
| 399 | npu::tile_fwk::CodeGenCtx ctx; | 399 | npu::tile_fwk::CodeGenCtx ctx; |
| 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 401 | - codeGen.GenCode(*function, {}); | 401 | + codeGen.GenCode(*function); |
| 402 | } | 402 | } |
| 403 | 403 | ||
| 404 | void TestCodeGenAmax::test_amax_fp32_015() | 404 | void TestCodeGenAmax::test_amax_fp32_015() |
| @@ -413,5 +413,5 @@ void TestCodeGenAmax::test_amax_fp32_015() | |||
| 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_015"); | 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMAX_FP32_015"); |
| 414 | npu::tile_fwk::CodeGenCtx ctx; | 414 | npu::tile_fwk::CodeGenCtx ctx; |
| 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 416 | - codeGen.GenCode(*function, {}); | 416 | + codeGen.GenCode(*function); |
| 417 | } | 417 | } |
| @@ -38,7 +38,7 @@ void TestCodeGenAmin::test_amin_fp16_003() | |||
| 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_003"); | 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_003"); |
| 39 | npu::tile_fwk::CodeGenCtx ctx; | 39 | npu::tile_fwk::CodeGenCtx ctx; |
| 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 41 | - codeGen.GenCode(*function, {}); | 41 | + codeGen.GenCode(*function); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | void TestCodeGenAmin::test_amin_fp16_004() | 44 | void TestCodeGenAmin::test_amin_fp16_004() |
| @@ -53,7 +53,7 @@ void TestCodeGenAmin::test_amin_fp16_004() | |||
| 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_004"); | 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_004"); |
| 54 | npu::tile_fwk::CodeGenCtx ctx; | 54 | npu::tile_fwk::CodeGenCtx ctx; |
| 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 56 | - codeGen.GenCode(*function, {}); | 56 | + codeGen.GenCode(*function); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void TestCodeGenAmin::test_amin_fp16_005() | 59 | void TestCodeGenAmin::test_amin_fp16_005() |
| @@ -68,7 +68,7 @@ void TestCodeGenAmin::test_amin_fp16_005() | |||
| 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_005"); | 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_005"); |
| 69 | npu::tile_fwk::CodeGenCtx ctx; | 69 | npu::tile_fwk::CodeGenCtx ctx; |
| 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 71 | - codeGen.GenCode(*function, {}); | 71 | + codeGen.GenCode(*function); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void TestCodeGenAmin::test_amin_fp16_006() | 74 | void TestCodeGenAmin::test_amin_fp16_006() |
| @@ -83,7 +83,7 @@ void TestCodeGenAmin::test_amin_fp16_006() | |||
| 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_006"); | 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_006"); |
| 84 | npu::tile_fwk::CodeGenCtx ctx; | 84 | npu::tile_fwk::CodeGenCtx ctx; |
| 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 86 | - codeGen.GenCode(*function, {}); | 86 | + codeGen.GenCode(*function); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | void TestCodeGenAmin::test_amin_fp16_007() | 89 | void TestCodeGenAmin::test_amin_fp16_007() |
| @@ -98,7 +98,7 @@ void TestCodeGenAmin::test_amin_fp16_007() | |||
| 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_007"); | 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_007"); |
| 99 | npu::tile_fwk::CodeGenCtx ctx; | 99 | npu::tile_fwk::CodeGenCtx ctx; |
| 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 101 | - codeGen.GenCode(*function, {}); | 101 | + codeGen.GenCode(*function); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | void TestCodeGenAmin::test_amin_fp16_008() | 104 | void TestCodeGenAmin::test_amin_fp16_008() |
| @@ -113,7 +113,7 @@ void TestCodeGenAmin::test_amin_fp16_008() | |||
| 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_008"); | 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_008"); |
| 114 | npu::tile_fwk::CodeGenCtx ctx; | 114 | npu::tile_fwk::CodeGenCtx ctx; |
| 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 116 | - codeGen.GenCode(*function, {}); | 116 | + codeGen.GenCode(*function); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | void TestCodeGenAmin::test_amin_fp16_009() | 119 | void TestCodeGenAmin::test_amin_fp16_009() |
| @@ -128,7 +128,7 @@ void TestCodeGenAmin::test_amin_fp16_009() | |||
| 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_009"); | 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_009"); |
| 129 | npu::tile_fwk::CodeGenCtx ctx; | 129 | npu::tile_fwk::CodeGenCtx ctx; |
| 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 131 | - codeGen.GenCode(*function, {}); | 131 | + codeGen.GenCode(*function); |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | void TestCodeGenAmin::test_amin_fp16_010() | 134 | void TestCodeGenAmin::test_amin_fp16_010() |
| @@ -143,7 +143,7 @@ void TestCodeGenAmin::test_amin_fp16_010() | |||
| 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_010"); | 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_010"); |
| 144 | npu::tile_fwk::CodeGenCtx ctx; | 144 | npu::tile_fwk::CodeGenCtx ctx; |
| 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 146 | - codeGen.GenCode(*function, {}); | 146 | + codeGen.GenCode(*function); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | void TestCodeGenAmin::test_amin_fp16_011() | 149 | void TestCodeGenAmin::test_amin_fp16_011() |
| @@ -158,7 +158,7 @@ void TestCodeGenAmin::test_amin_fp16_011() | |||
| 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_011"); | 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_011"); |
| 159 | npu::tile_fwk::CodeGenCtx ctx; | 159 | npu::tile_fwk::CodeGenCtx ctx; |
| 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 161 | - codeGen.GenCode(*function, {}); | 161 | + codeGen.GenCode(*function); |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | void TestCodeGenAmin::test_amin_fp16_012() | 164 | void TestCodeGenAmin::test_amin_fp16_012() |
| @@ -173,7 +173,7 @@ void TestCodeGenAmin::test_amin_fp16_012() | |||
| 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_012"); | 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_012"); |
| 174 | npu::tile_fwk::CodeGenCtx ctx; | 174 | npu::tile_fwk::CodeGenCtx ctx; |
| 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 176 | - codeGen.GenCode(*function, {}); | 176 | + codeGen.GenCode(*function); |
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | void TestCodeGenAmin::test_amin_fp16_013() | 179 | void TestCodeGenAmin::test_amin_fp16_013() |
| @@ -188,7 +188,7 @@ void TestCodeGenAmin::test_amin_fp16_013() | |||
| 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_013"); | 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_013"); |
| 189 | npu::tile_fwk::CodeGenCtx ctx; | 189 | npu::tile_fwk::CodeGenCtx ctx; |
| 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 191 | - codeGen.GenCode(*function, {}); | 191 | + codeGen.GenCode(*function); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | void TestCodeGenAmin::test_amin_fp16_014() | 194 | void TestCodeGenAmin::test_amin_fp16_014() |
| @@ -203,7 +203,7 @@ void TestCodeGenAmin::test_amin_fp16_014() | |||
| 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_014"); | 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_014"); |
| 204 | npu::tile_fwk::CodeGenCtx ctx; | 204 | npu::tile_fwk::CodeGenCtx ctx; |
| 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 206 | - codeGen.GenCode(*function, {}); | 206 | + codeGen.GenCode(*function); |
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | void TestCodeGenAmin::test_amin_fp16_015() | 209 | void TestCodeGenAmin::test_amin_fp16_015() |
| @@ -218,7 +218,7 @@ void TestCodeGenAmin::test_amin_fp16_015() | |||
| 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_015"); | 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP16_015"); |
| 219 | npu::tile_fwk::CodeGenCtx ctx; | 219 | npu::tile_fwk::CodeGenCtx ctx; |
| 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 221 | - codeGen.GenCode(*function, {}); | 221 | + codeGen.GenCode(*function); |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | void TestCodeGenAmin::test_amin_fp32_003() | 224 | void TestCodeGenAmin::test_amin_fp32_003() |
| @@ -233,7 +233,7 @@ void TestCodeGenAmin::test_amin_fp32_003() | |||
| 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_003"); | 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_003"); |
| 234 | npu::tile_fwk::CodeGenCtx ctx; | 234 | npu::tile_fwk::CodeGenCtx ctx; |
| 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 236 | - codeGen.GenCode(*function, {}); | 236 | + codeGen.GenCode(*function); |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | void TestCodeGenAmin::test_amin_fp32_004() | 239 | void TestCodeGenAmin::test_amin_fp32_004() |
| @@ -248,7 +248,7 @@ void TestCodeGenAmin::test_amin_fp32_004() | |||
| 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_004"); | 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_004"); |
| 249 | npu::tile_fwk::CodeGenCtx ctx; | 249 | npu::tile_fwk::CodeGenCtx ctx; |
| 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 251 | - codeGen.GenCode(*function, {}); | 251 | + codeGen.GenCode(*function); |
| 252 | } | 252 | } |
| 253 | 253 | ||
| 254 | void TestCodeGenAmin::test_amin_fp32_005() | 254 | void TestCodeGenAmin::test_amin_fp32_005() |
| @@ -263,7 +263,7 @@ void TestCodeGenAmin::test_amin_fp32_005() | |||
| 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_005"); | 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_005"); |
| 264 | npu::tile_fwk::CodeGenCtx ctx; | 264 | npu::tile_fwk::CodeGenCtx ctx; |
| 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 266 | - codeGen.GenCode(*function, {}); | 266 | + codeGen.GenCode(*function); |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | void TestCodeGenAmin::test_amin_fp32_006() | 269 | void TestCodeGenAmin::test_amin_fp32_006() |
| @@ -278,7 +278,7 @@ void TestCodeGenAmin::test_amin_fp32_006() | |||
| 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_006"); | 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_006"); |
| 279 | npu::tile_fwk::CodeGenCtx ctx; | 279 | npu::tile_fwk::CodeGenCtx ctx; |
| 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 281 | - codeGen.GenCode(*function, {}); | 281 | + codeGen.GenCode(*function); |
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | void TestCodeGenAmin::test_amin_fp32_007() | 284 | void TestCodeGenAmin::test_amin_fp32_007() |
| @@ -293,7 +293,7 @@ void TestCodeGenAmin::test_amin_fp32_007() | |||
| 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_007"); | 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_007"); |
| 294 | npu::tile_fwk::CodeGenCtx ctx; | 294 | npu::tile_fwk::CodeGenCtx ctx; |
| 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 296 | - codeGen.GenCode(*function, {}); | 296 | + codeGen.GenCode(*function); |
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | void TestCodeGenAmin::test_amin_fp32_008() | 299 | void TestCodeGenAmin::test_amin_fp32_008() |
| @@ -308,7 +308,7 @@ void TestCodeGenAmin::test_amin_fp32_008() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_008"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_008"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenAmin::test_amin_fp32_009() | 314 | void TestCodeGenAmin::test_amin_fp32_009() |
| @@ -323,7 +323,7 @@ void TestCodeGenAmin::test_amin_fp32_009() | |||
| 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_009"); | 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_009"); |
| 324 | npu::tile_fwk::CodeGenCtx ctx; | 324 | npu::tile_fwk::CodeGenCtx ctx; |
| 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 326 | - codeGen.GenCode(*function, {}); | 326 | + codeGen.GenCode(*function); |
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | void TestCodeGenAmin::test_amin_fp32_010() | 329 | void TestCodeGenAmin::test_amin_fp32_010() |
| @@ -338,7 +338,7 @@ void TestCodeGenAmin::test_amin_fp32_010() | |||
| 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_010"); | 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_010"); |
| 339 | npu::tile_fwk::CodeGenCtx ctx; | 339 | npu::tile_fwk::CodeGenCtx ctx; |
| 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 341 | - codeGen.GenCode(*function, {}); | 341 | + codeGen.GenCode(*function); |
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | void TestCodeGenAmin::test_amin_fp32_011() | 344 | void TestCodeGenAmin::test_amin_fp32_011() |
| @@ -353,7 +353,7 @@ void TestCodeGenAmin::test_amin_fp32_011() | |||
| 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_011"); | 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_011"); |
| 354 | npu::tile_fwk::CodeGenCtx ctx; | 354 | npu::tile_fwk::CodeGenCtx ctx; |
| 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 356 | - codeGen.GenCode(*function, {}); | 356 | + codeGen.GenCode(*function); |
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | void TestCodeGenAmin::test_amin_fp32_012() | 359 | void TestCodeGenAmin::test_amin_fp32_012() |
| @@ -368,7 +368,7 @@ void TestCodeGenAmin::test_amin_fp32_012() | |||
| 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_012"); | 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_012"); |
| 369 | npu::tile_fwk::CodeGenCtx ctx; | 369 | npu::tile_fwk::CodeGenCtx ctx; |
| 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 371 | - codeGen.GenCode(*function, {}); | 371 | + codeGen.GenCode(*function); |
| 372 | } | 372 | } |
| 373 | 373 | ||
| 374 | void TestCodeGenAmin::test_amin_fp32_013() | 374 | void TestCodeGenAmin::test_amin_fp32_013() |
| @@ -383,7 +383,7 @@ void TestCodeGenAmin::test_amin_fp32_013() | |||
| 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_013"); | 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_013"); |
| 384 | npu::tile_fwk::CodeGenCtx ctx; | 384 | npu::tile_fwk::CodeGenCtx ctx; |
| 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 386 | - codeGen.GenCode(*function, {}); | 386 | + codeGen.GenCode(*function); |
| 387 | } | 387 | } |
| 388 | 388 | ||
| 389 | void TestCodeGenAmin::test_amin_fp32_014() | 389 | void TestCodeGenAmin::test_amin_fp32_014() |
| @@ -398,7 +398,7 @@ void TestCodeGenAmin::test_amin_fp32_014() | |||
| 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_014"); | 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_014"); |
| 399 | npu::tile_fwk::CodeGenCtx ctx; | 399 | npu::tile_fwk::CodeGenCtx ctx; |
| 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 401 | - codeGen.GenCode(*function, {}); | 401 | + codeGen.GenCode(*function); |
| 402 | } | 402 | } |
| 403 | 403 | ||
| 404 | void TestCodeGenAmin::test_amin_fp32_015() | 404 | void TestCodeGenAmin::test_amin_fp32_015() |
| @@ -413,5 +413,5 @@ void TestCodeGenAmin::test_amin_fp32_015() | |||
| 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_015"); | 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "AMIN_FP32_015"); |
| 414 | npu::tile_fwk::CodeGenCtx ctx; | 414 | npu::tile_fwk::CodeGenCtx ctx; |
| 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 416 | - codeGen.GenCode(*function, {}); | 416 | + codeGen.GenCode(*function); |
| 417 | } | 417 | } |
| @@ -38,7 +38,7 @@ void TestCodeGenAssemble::test_assemble_fp16_001() | |||
| 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_001"); | 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_001"); |
| 39 | npu::tile_fwk::CodeGenCtx ctx; | 39 | npu::tile_fwk::CodeGenCtx ctx; |
| 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 41 | - codeGen.GenCode(*function, {}); | 41 | + codeGen.GenCode(*function); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | void TestCodeGenAssemble::test_assemble_fp16_002() | 44 | void TestCodeGenAssemble::test_assemble_fp16_002() |
| @@ -53,7 +53,7 @@ void TestCodeGenAssemble::test_assemble_fp16_002() | |||
| 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_002"); | 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_002"); |
| 54 | npu::tile_fwk::CodeGenCtx ctx; | 54 | npu::tile_fwk::CodeGenCtx ctx; |
| 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 56 | - codeGen.GenCode(*function, {}); | 56 | + codeGen.GenCode(*function); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void TestCodeGenAssemble::test_assemble_fp16_003() | 59 | void TestCodeGenAssemble::test_assemble_fp16_003() |
| @@ -68,7 +68,7 @@ void TestCodeGenAssemble::test_assemble_fp16_003() | |||
| 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_003"); | 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_003"); |
| 69 | npu::tile_fwk::CodeGenCtx ctx; | 69 | npu::tile_fwk::CodeGenCtx ctx; |
| 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 71 | - codeGen.GenCode(*function, {}); | 71 | + codeGen.GenCode(*function); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void TestCodeGenAssemble::test_assemble_fp16_004() | 74 | void TestCodeGenAssemble::test_assemble_fp16_004() |
| @@ -83,7 +83,7 @@ void TestCodeGenAssemble::test_assemble_fp16_004() | |||
| 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_004"); | 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_004"); |
| 84 | npu::tile_fwk::CodeGenCtx ctx; | 84 | npu::tile_fwk::CodeGenCtx ctx; |
| 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 86 | - codeGen.GenCode(*function, {}); | 86 | + codeGen.GenCode(*function); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | void TestCodeGenAssemble::test_assemble_fp16_005() | 89 | void TestCodeGenAssemble::test_assemble_fp16_005() |
| @@ -98,7 +98,7 @@ void TestCodeGenAssemble::test_assemble_fp16_005() | |||
| 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_005"); | 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_005"); |
| 99 | npu::tile_fwk::CodeGenCtx ctx; | 99 | npu::tile_fwk::CodeGenCtx ctx; |
| 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 101 | - codeGen.GenCode(*function, {}); | 101 | + codeGen.GenCode(*function); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | void TestCodeGenAssemble::test_assemble_fp16_006() | 104 | void TestCodeGenAssemble::test_assemble_fp16_006() |
| @@ -113,7 +113,7 @@ void TestCodeGenAssemble::test_assemble_fp16_006() | |||
| 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_006"); | 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_006"); |
| 114 | npu::tile_fwk::CodeGenCtx ctx; | 114 | npu::tile_fwk::CodeGenCtx ctx; |
| 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 116 | - codeGen.GenCode(*function, {}); | 116 | + codeGen.GenCode(*function); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | void TestCodeGenAssemble::test_assemble_fp16_007() | 119 | void TestCodeGenAssemble::test_assemble_fp16_007() |
| @@ -128,7 +128,7 @@ void TestCodeGenAssemble::test_assemble_fp16_007() | |||
| 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_007"); | 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_007"); |
| 129 | npu::tile_fwk::CodeGenCtx ctx; | 129 | npu::tile_fwk::CodeGenCtx ctx; |
| 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 131 | - codeGen.GenCode(*function, {}); | 131 | + codeGen.GenCode(*function); |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | void TestCodeGenAssemble::test_assemble_fp16_008() | 134 | void TestCodeGenAssemble::test_assemble_fp16_008() |
| @@ -143,7 +143,7 @@ void TestCodeGenAssemble::test_assemble_fp16_008() | |||
| 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_008"); | 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_008"); |
| 144 | npu::tile_fwk::CodeGenCtx ctx; | 144 | npu::tile_fwk::CodeGenCtx ctx; |
| 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 146 | - codeGen.GenCode(*function, {}); | 146 | + codeGen.GenCode(*function); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | void TestCodeGenAssemble::test_assemble_fp16_009() | 149 | void TestCodeGenAssemble::test_assemble_fp16_009() |
| @@ -158,7 +158,7 @@ void TestCodeGenAssemble::test_assemble_fp16_009() | |||
| 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_009"); | 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_009"); |
| 159 | npu::tile_fwk::CodeGenCtx ctx; | 159 | npu::tile_fwk::CodeGenCtx ctx; |
| 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 161 | - codeGen.GenCode(*function, {}); | 161 | + codeGen.GenCode(*function); |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | void TestCodeGenAssemble::test_assemble_fp16_010() | 164 | void TestCodeGenAssemble::test_assemble_fp16_010() |
| @@ -174,7 +174,7 @@ void TestCodeGenAssemble::test_assemble_fp16_010() | |||
| 174 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_010"); | 174 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP16_010"); |
| 175 | npu::tile_fwk::CodeGenCtx ctx; | 175 | npu::tile_fwk::CodeGenCtx ctx; |
| 176 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 176 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 177 | - codeGen.GenCode(*function, {}); | 177 | + codeGen.GenCode(*function); |
| 178 | } | 178 | } |
| 179 | 179 | ||
| 180 | void TestCodeGenAssemble::test_assemble_fp32_001() | 180 | void TestCodeGenAssemble::test_assemble_fp32_001() |
| @@ -189,7 +189,7 @@ void TestCodeGenAssemble::test_assemble_fp32_001() | |||
| 189 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_001"); | 189 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_001"); |
| 190 | npu::tile_fwk::CodeGenCtx ctx; | 190 | npu::tile_fwk::CodeGenCtx ctx; |
| 191 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 191 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 192 | - codeGen.GenCode(*function, {}); | 192 | + codeGen.GenCode(*function); |
| 193 | } | 193 | } |
| 194 | 194 | ||
| 195 | void TestCodeGenAssemble::test_assemble_fp32_002() | 195 | void TestCodeGenAssemble::test_assemble_fp32_002() |
| @@ -204,7 +204,7 @@ void TestCodeGenAssemble::test_assemble_fp32_002() | |||
| 204 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_002"); | 204 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_002"); |
| 205 | npu::tile_fwk::CodeGenCtx ctx; | 205 | npu::tile_fwk::CodeGenCtx ctx; |
| 206 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 206 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 207 | - codeGen.GenCode(*function, {}); | 207 | + codeGen.GenCode(*function); |
| 208 | } | 208 | } |
| 209 | 209 | ||
| 210 | void TestCodeGenAssemble::test_assemble_fp32_003() | 210 | void TestCodeGenAssemble::test_assemble_fp32_003() |
| @@ -219,7 +219,7 @@ void TestCodeGenAssemble::test_assemble_fp32_003() | |||
| 219 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_003"); | 219 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_003"); |
| 220 | npu::tile_fwk::CodeGenCtx ctx; | 220 | npu::tile_fwk::CodeGenCtx ctx; |
| 221 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 221 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 222 | - codeGen.GenCode(*function, {}); | 222 | + codeGen.GenCode(*function); |
| 223 | } | 223 | } |
| 224 | 224 | ||
| 225 | void TestCodeGenAssemble::test_assemble_fp32_004() | 225 | void TestCodeGenAssemble::test_assemble_fp32_004() |
| @@ -234,7 +234,7 @@ void TestCodeGenAssemble::test_assemble_fp32_004() | |||
| 234 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_004"); | 234 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_004"); |
| 235 | npu::tile_fwk::CodeGenCtx ctx; | 235 | npu::tile_fwk::CodeGenCtx ctx; |
| 236 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 236 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 237 | - codeGen.GenCode(*function, {}); | 237 | + codeGen.GenCode(*function); |
| 238 | } | 238 | } |
| 239 | 239 | ||
| 240 | void TestCodeGenAssemble::test_assemble_fp32_005() | 240 | void TestCodeGenAssemble::test_assemble_fp32_005() |
| @@ -249,7 +249,7 @@ void TestCodeGenAssemble::test_assemble_fp32_005() | |||
| 249 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_005"); | 249 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_005"); |
| 250 | npu::tile_fwk::CodeGenCtx ctx; | 250 | npu::tile_fwk::CodeGenCtx ctx; |
| 251 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 251 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 252 | - codeGen.GenCode(*function, {}); | 252 | + codeGen.GenCode(*function); |
| 253 | } | 253 | } |
| 254 | 254 | ||
| 255 | void TestCodeGenAssemble::test_assemble_fp32_006() | 255 | void TestCodeGenAssemble::test_assemble_fp32_006() |
| @@ -264,7 +264,7 @@ void TestCodeGenAssemble::test_assemble_fp32_006() | |||
| 264 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_006"); | 264 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_006"); |
| 265 | npu::tile_fwk::CodeGenCtx ctx; | 265 | npu::tile_fwk::CodeGenCtx ctx; |
| 266 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 266 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 267 | - codeGen.GenCode(*function, {}); | 267 | + codeGen.GenCode(*function); |
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | void TestCodeGenAssemble::test_assemble_fp32_007() | 270 | void TestCodeGenAssemble::test_assemble_fp32_007() |
| @@ -279,7 +279,7 @@ void TestCodeGenAssemble::test_assemble_fp32_007() | |||
| 279 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_007"); | 279 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_007"); |
| 280 | npu::tile_fwk::CodeGenCtx ctx; | 280 | npu::tile_fwk::CodeGenCtx ctx; |
| 281 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 281 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 282 | - codeGen.GenCode(*function, {}); | 282 | + codeGen.GenCode(*function); |
| 283 | } | 283 | } |
| 284 | 284 | ||
| 285 | void TestCodeGenAssemble::test_assemble_fp32_008() | 285 | void TestCodeGenAssemble::test_assemble_fp32_008() |
| @@ -294,7 +294,7 @@ void TestCodeGenAssemble::test_assemble_fp32_008() | |||
| 294 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_008"); | 294 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_008"); |
| 295 | npu::tile_fwk::CodeGenCtx ctx; | 295 | npu::tile_fwk::CodeGenCtx ctx; |
| 296 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 296 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 297 | - codeGen.GenCode(*function, {}); | 297 | + codeGen.GenCode(*function); |
| 298 | } | 298 | } |
| 299 | 299 | ||
| 300 | void TestCodeGenAssemble::test_assemble_fp32_009() | 300 | void TestCodeGenAssemble::test_assemble_fp32_009() |
| @@ -309,7 +309,7 @@ void TestCodeGenAssemble::test_assemble_fp32_009() | |||
| 309 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_009"); | 309 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_009"); |
| 310 | npu::tile_fwk::CodeGenCtx ctx; | 310 | npu::tile_fwk::CodeGenCtx ctx; |
| 311 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 311 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 312 | - codeGen.GenCode(*function, {}); | 312 | + codeGen.GenCode(*function); |
| 313 | } | 313 | } |
| 314 | 314 | ||
| 315 | void TestCodeGenAssemble::test_assemble_fp32_010() | 315 | void TestCodeGenAssemble::test_assemble_fp32_010() |
| @@ -325,7 +325,7 @@ void TestCodeGenAssemble::test_assemble_fp32_010() | |||
| 325 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_010"); | 325 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_FP32_010"); |
| 326 | npu::tile_fwk::CodeGenCtx ctx; | 326 | npu::tile_fwk::CodeGenCtx ctx; |
| 327 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 327 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 328 | - codeGen.GenCode(*function, {}); | 328 | + codeGen.GenCode(*function); |
| 329 | } | 329 | } |
| 330 | 330 | ||
| 331 | void TestCodeGenAssemble::test_assemble_int8_001() | 331 | void TestCodeGenAssemble::test_assemble_int8_001() |
| @@ -340,7 +340,7 @@ void TestCodeGenAssemble::test_assemble_int8_001() | |||
| 340 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT8_001"); | 340 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT8_001"); |
| 341 | npu::tile_fwk::CodeGenCtx ctx; | 341 | npu::tile_fwk::CodeGenCtx ctx; |
| 342 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 342 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 343 | - codeGen.GenCode(*function, {}); | 343 | + codeGen.GenCode(*function); |
| 344 | } | 344 | } |
| 345 | 345 | ||
| 346 | void TestCodeGenAssemble::test_assemble_int8_002() | 346 | void TestCodeGenAssemble::test_assemble_int8_002() |
| @@ -355,7 +355,7 @@ void TestCodeGenAssemble::test_assemble_int8_002() | |||
| 355 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT8_002"); | 355 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT8_002"); |
| 356 | npu::tile_fwk::CodeGenCtx ctx; | 356 | npu::tile_fwk::CodeGenCtx ctx; |
| 357 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 357 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 358 | - codeGen.GenCode(*function, {}); | 358 | + codeGen.GenCode(*function); |
| 359 | } | 359 | } |
| 360 | 360 | ||
| 361 | void TestCodeGenAssemble::test_assemble_int8_003() | 361 | void TestCodeGenAssemble::test_assemble_int8_003() |
| @@ -370,7 +370,7 @@ void TestCodeGenAssemble::test_assemble_int8_003() | |||
| 370 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT8_003"); | 370 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT8_003"); |
| 371 | npu::tile_fwk::CodeGenCtx ctx; | 371 | npu::tile_fwk::CodeGenCtx ctx; |
| 372 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 372 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 373 | - codeGen.GenCode(*function, {}); | 373 | + codeGen.GenCode(*function); |
| 374 | } | 374 | } |
| 375 | 375 | ||
| 376 | void TestCodeGenAssemble::test_assemble_int8_004() | 376 | void TestCodeGenAssemble::test_assemble_int8_004() |
| @@ -385,7 +385,7 @@ void TestCodeGenAssemble::test_assemble_int8_004() | |||
| 385 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT8_004"); | 385 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT8_004"); |
| 386 | npu::tile_fwk::CodeGenCtx ctx; | 386 | npu::tile_fwk::CodeGenCtx ctx; |
| 387 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 387 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 388 | - codeGen.GenCode(*function, {}); | 388 | + codeGen.GenCode(*function); |
| 389 | } | 389 | } |
| 390 | 390 | ||
| 391 | void TestCodeGenAssemble::test_assemble_int8_005() | 391 | void TestCodeGenAssemble::test_assemble_int8_005() |
| @@ -401,7 +401,7 @@ void TestCodeGenAssemble::test_assemble_int8_005() | |||
| 401 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT8_005"); | 401 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT8_005"); |
| 402 | npu::tile_fwk::CodeGenCtx ctx; | 402 | npu::tile_fwk::CodeGenCtx ctx; |
| 403 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 403 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 404 | - codeGen.GenCode(*function, {}); | 404 | + codeGen.GenCode(*function); |
| 405 | } | 405 | } |
| 406 | 406 | ||
| 407 | void TestCodeGenAssemble::test_assemble_int16_001() | 407 | void TestCodeGenAssemble::test_assemble_int16_001() |
| @@ -416,7 +416,7 @@ void TestCodeGenAssemble::test_assemble_int16_001() | |||
| 416 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT16_001"); | 416 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT16_001"); |
| 417 | npu::tile_fwk::CodeGenCtx ctx; | 417 | npu::tile_fwk::CodeGenCtx ctx; |
| 418 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 418 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 419 | - codeGen.GenCode(*function, {}); | 419 | + codeGen.GenCode(*function); |
| 420 | } | 420 | } |
| 421 | 421 | ||
| 422 | void TestCodeGenAssemble::test_assemble_int16_002() | 422 | void TestCodeGenAssemble::test_assemble_int16_002() |
| @@ -431,7 +431,7 @@ void TestCodeGenAssemble::test_assemble_int16_002() | |||
| 431 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT16_002"); | 431 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT16_002"); |
| 432 | npu::tile_fwk::CodeGenCtx ctx; | 432 | npu::tile_fwk::CodeGenCtx ctx; |
| 433 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 433 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 434 | - codeGen.GenCode(*function, {}); | 434 | + codeGen.GenCode(*function); |
| 435 | } | 435 | } |
| 436 | 436 | ||
| 437 | void TestCodeGenAssemble::test_assemble_int16_003() | 437 | void TestCodeGenAssemble::test_assemble_int16_003() |
| @@ -446,7 +446,7 @@ void TestCodeGenAssemble::test_assemble_int16_003() | |||
| 446 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT16_003"); | 446 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT16_003"); |
| 447 | npu::tile_fwk::CodeGenCtx ctx; | 447 | npu::tile_fwk::CodeGenCtx ctx; |
| 448 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 448 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 449 | - codeGen.GenCode(*function, {}); | 449 | + codeGen.GenCode(*function); |
| 450 | } | 450 | } |
| 451 | 451 | ||
| 452 | void TestCodeGenAssemble::test_assemble_int16_004() | 452 | void TestCodeGenAssemble::test_assemble_int16_004() |
| @@ -461,7 +461,7 @@ void TestCodeGenAssemble::test_assemble_int16_004() | |||
| 461 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT16_004"); | 461 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT16_004"); |
| 462 | npu::tile_fwk::CodeGenCtx ctx; | 462 | npu::tile_fwk::CodeGenCtx ctx; |
| 463 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 463 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 464 | - codeGen.GenCode(*function, {}); | 464 | + codeGen.GenCode(*function); |
| 465 | } | 465 | } |
| 466 | 466 | ||
| 467 | void TestCodeGenAssemble::test_assemble_int16_005() | 467 | void TestCodeGenAssemble::test_assemble_int16_005() |
| @@ -477,7 +477,7 @@ void TestCodeGenAssemble::test_assemble_int16_005() | |||
| 477 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT16_005"); | 477 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT16_005"); |
| 478 | npu::tile_fwk::CodeGenCtx ctx; | 478 | npu::tile_fwk::CodeGenCtx ctx; |
| 479 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 479 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 480 | - codeGen.GenCode(*function, {}); | 480 | + codeGen.GenCode(*function); |
| 481 | } | 481 | } |
| 482 | 482 | ||
| 483 | void TestCodeGenAssemble::test_assemble_int32_001() | 483 | void TestCodeGenAssemble::test_assemble_int32_001() |
| @@ -492,7 +492,7 @@ void TestCodeGenAssemble::test_assemble_int32_001() | |||
| 492 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT32_001"); | 492 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT32_001"); |
| 493 | npu::tile_fwk::CodeGenCtx ctx; | 493 | npu::tile_fwk::CodeGenCtx ctx; |
| 494 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 494 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 495 | - codeGen.GenCode(*function, {}); | 495 | + codeGen.GenCode(*function); |
| 496 | } | 496 | } |
| 497 | 497 | ||
| 498 | void TestCodeGenAssemble::test_assemble_int32_002() | 498 | void TestCodeGenAssemble::test_assemble_int32_002() |
| @@ -507,7 +507,7 @@ void TestCodeGenAssemble::test_assemble_int32_002() | |||
| 507 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT32_002"); | 507 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT32_002"); |
| 508 | npu::tile_fwk::CodeGenCtx ctx; | 508 | npu::tile_fwk::CodeGenCtx ctx; |
| 509 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 509 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 510 | - codeGen.GenCode(*function, {}); | 510 | + codeGen.GenCode(*function); |
| 511 | } | 511 | } |
| 512 | 512 | ||
| 513 | void TestCodeGenAssemble::test_assemble_int32_003() | 513 | void TestCodeGenAssemble::test_assemble_int32_003() |
| @@ -522,7 +522,7 @@ void TestCodeGenAssemble::test_assemble_int32_003() | |||
| 522 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT32_003"); | 522 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT32_003"); |
| 523 | npu::tile_fwk::CodeGenCtx ctx; | 523 | npu::tile_fwk::CodeGenCtx ctx; |
| 524 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 524 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 525 | - codeGen.GenCode(*function, {}); | 525 | + codeGen.GenCode(*function); |
| 526 | } | 526 | } |
| 527 | 527 | ||
| 528 | void TestCodeGenAssemble::test_assemble_int32_004() | 528 | void TestCodeGenAssemble::test_assemble_int32_004() |
| @@ -537,7 +537,7 @@ void TestCodeGenAssemble::test_assemble_int32_004() | |||
| 537 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT32_004"); | 537 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT32_004"); |
| 538 | npu::tile_fwk::CodeGenCtx ctx; | 538 | npu::tile_fwk::CodeGenCtx ctx; |
| 539 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 539 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 540 | - codeGen.GenCode(*function, {}); | 540 | + codeGen.GenCode(*function); |
| 541 | } | 541 | } |
| 542 | 542 | ||
| 543 | void TestCodeGenAssemble::test_assemble_int32_005() | 543 | void TestCodeGenAssemble::test_assemble_int32_005() |
| @@ -553,7 +553,7 @@ void TestCodeGenAssemble::test_assemble_int32_005() | |||
| 553 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT32_005"); | 553 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_INT32_005"); |
| 554 | npu::tile_fwk::CodeGenCtx ctx; | 554 | npu::tile_fwk::CodeGenCtx ctx; |
| 555 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 555 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 556 | - codeGen.GenCode(*function, {}); | 556 | + codeGen.GenCode(*function); |
| 557 | } | 557 | } |
| 558 | 558 | ||
| 559 | void TestCodeGenAssemble::test_assemble_list_fp32_001() | 559 | void TestCodeGenAssemble::test_assemble_list_fp32_001() |
| @@ -569,7 +569,7 @@ void TestCodeGenAssemble::test_assemble_list_fp32_001() | |||
| 569 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_LIST_FP32_001"); | 569 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_LIST_FP32_001"); |
| 570 | npu::tile_fwk::CodeGenCtx ctx; | 570 | npu::tile_fwk::CodeGenCtx ctx; |
| 571 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 571 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 572 | - codeGen.GenCode(*function, {}); | 572 | + codeGen.GenCode(*function); |
| 573 | } | 573 | } |
| 574 | 574 | ||
| 575 | void TestCodeGenAssemble::test_assemble_list_fp32_002() | 575 | void TestCodeGenAssemble::test_assemble_list_fp32_002() |
| @@ -585,7 +585,7 @@ void TestCodeGenAssemble::test_assemble_list_fp32_002() | |||
| 585 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_LIST_FP32_002"); | 585 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_LIST_FP32_002"); |
| 586 | npu::tile_fwk::CodeGenCtx ctx; | 586 | npu::tile_fwk::CodeGenCtx ctx; |
| 587 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 587 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 588 | - codeGen.GenCode(*function, {}); | 588 | + codeGen.GenCode(*function); |
| 589 | } | 589 | } |
| 590 | 590 | ||
| 591 | void TestCodeGenAssemble::test_assemble_list_fp32_003() | 591 | void TestCodeGenAssemble::test_assemble_list_fp32_003() |
| @@ -601,7 +601,7 @@ void TestCodeGenAssemble::test_assemble_list_fp32_003() | |||
| 601 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_LIST_FP32_003"); | 601 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_LIST_FP32_003"); |
| 602 | npu::tile_fwk::CodeGenCtx ctx; | 602 | npu::tile_fwk::CodeGenCtx ctx; |
| 603 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 603 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 604 | - codeGen.GenCode(*function, {}); | 604 | + codeGen.GenCode(*function); |
| 605 | } | 605 | } |
| 606 | 606 | ||
| 607 | void TestCodeGenAssemble::test_assemble_list_multi_shape_001() | 607 | void TestCodeGenAssemble::test_assemble_list_multi_shape_001() |
| @@ -617,7 +617,7 @@ void TestCodeGenAssemble::test_assemble_list_multi_shape_001() | |||
| 617 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_LIST_MULTI_SHAPE_001"); | 617 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_LIST_MULTI_SHAPE_001"); |
| 618 | npu::tile_fwk::CodeGenCtx ctx; | 618 | npu::tile_fwk::CodeGenCtx ctx; |
| 619 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 619 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 620 | - codeGen.GenCode(*function, {}); | 620 | + codeGen.GenCode(*function); |
| 621 | } | 621 | } |
| 622 | 622 | ||
| 623 | void TestCodeGenAssemble::test_assemble_list_multi_shape_002() | 623 | void TestCodeGenAssemble::test_assemble_list_multi_shape_002() |
| @@ -633,7 +633,7 @@ void TestCodeGenAssemble::test_assemble_list_multi_shape_002() | |||
| 633 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_LIST_MULTI_SHAPE_002"); | 633 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_LIST_MULTI_SHAPE_002"); |
| 634 | npu::tile_fwk::CodeGenCtx ctx; | 634 | npu::tile_fwk::CodeGenCtx ctx; |
| 635 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 635 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 636 | - codeGen.GenCode(*function, {}); | 636 | + codeGen.GenCode(*function); |
| 637 | } | 637 | } |
| 638 | 638 | ||
| 639 | void TestCodeGenAssemble::test_assemble_list_multi_shape_003() | 639 | void TestCodeGenAssemble::test_assemble_list_multi_shape_003() |
| @@ -649,5 +649,5 @@ void TestCodeGenAssemble::test_assemble_list_multi_shape_003() | |||
| 649 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_LIST_MULTI_SHAPE_003"); | 649 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "ASSEMBLE_LIST_MULTI_SHAPE_003"); |
| 650 | npu::tile_fwk::CodeGenCtx ctx; | 650 | npu::tile_fwk::CodeGenCtx ctx; |
| 651 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 651 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 652 | - codeGen.GenCode(*function, {}); | 652 | + codeGen.GenCode(*function); |
| 653 | } | 653 | } |
| @@ -42,7 +42,7 @@ void TestCodeGenCast::test_Cast_001() | |||
| 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_001"); | 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_001"); |
| 43 | npu::tile_fwk::CodeGenCtx ctx; | 43 | npu::tile_fwk::CodeGenCtx ctx; |
| 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 45 | - codeGen.GenCode(*function, {}); | 45 | + codeGen.GenCode(*function); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void TestCodeGenCast::test_Cast_002() | 48 | void TestCodeGenCast::test_Cast_002() |
| @@ -61,7 +61,7 @@ void TestCodeGenCast::test_Cast_002() | |||
| 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_002"); | 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_002"); |
| 62 | npu::tile_fwk::CodeGenCtx ctx; | 62 | npu::tile_fwk::CodeGenCtx ctx; |
| 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 64 | - codeGen.GenCode(*function, {}); | 64 | + codeGen.GenCode(*function); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void TestCodeGenCast::test_Cast_003() | 67 | void TestCodeGenCast::test_Cast_003() |
| @@ -80,7 +80,7 @@ void TestCodeGenCast::test_Cast_003() | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_003"); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_003"); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void TestCodeGenCast::test_Cast_004() | 86 | void TestCodeGenCast::test_Cast_004() |
| @@ -99,7 +99,7 @@ void TestCodeGenCast::test_Cast_004() | |||
| 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_004"); | 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_004"); |
| 100 | npu::tile_fwk::CodeGenCtx ctx; | 100 | npu::tile_fwk::CodeGenCtx ctx; |
| 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 102 | - codeGen.GenCode(*function, {}); | 102 | + codeGen.GenCode(*function); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void TestCodeGenCast::test_Cast_005() | 105 | void TestCodeGenCast::test_Cast_005() |
| @@ -118,7 +118,7 @@ void TestCodeGenCast::test_Cast_005() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_005"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_005"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenCast::test_Cast_006() | 124 | void TestCodeGenCast::test_Cast_006() |
| @@ -137,7 +137,7 @@ void TestCodeGenCast::test_Cast_006() | |||
| 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_006"); | 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_006"); |
| 138 | npu::tile_fwk::CodeGenCtx ctx; | 138 | npu::tile_fwk::CodeGenCtx ctx; |
| 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 140 | - codeGen.GenCode(*function, {}); | 140 | + codeGen.GenCode(*function); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void TestCodeGenCast::test_Cast_007() | 143 | void TestCodeGenCast::test_Cast_007() |
| @@ -156,7 +156,7 @@ void TestCodeGenCast::test_Cast_007() | |||
| 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_007"); | 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_007"); |
| 157 | npu::tile_fwk::CodeGenCtx ctx; | 157 | npu::tile_fwk::CodeGenCtx ctx; |
| 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 159 | - codeGen.GenCode(*function, {}); | 159 | + codeGen.GenCode(*function); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | void TestCodeGenCast::test_Cast_008() | 162 | void TestCodeGenCast::test_Cast_008() |
| @@ -175,7 +175,7 @@ void TestCodeGenCast::test_Cast_008() | |||
| 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_008"); | 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_008"); |
| 176 | npu::tile_fwk::CodeGenCtx ctx; | 176 | npu::tile_fwk::CodeGenCtx ctx; |
| 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 178 | - codeGen.GenCode(*function, {}); | 178 | + codeGen.GenCode(*function); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void TestCodeGenCast::test_Cast_009() | 181 | void TestCodeGenCast::test_Cast_009() |
| @@ -194,7 +194,7 @@ void TestCodeGenCast::test_Cast_009() | |||
| 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_009"); | 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_009"); |
| 195 | npu::tile_fwk::CodeGenCtx ctx; | 195 | npu::tile_fwk::CodeGenCtx ctx; |
| 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 197 | - codeGen.GenCode(*function, {}); | 197 | + codeGen.GenCode(*function); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void TestCodeGenCast::test_Cast_010() | 200 | void TestCodeGenCast::test_Cast_010() |
| @@ -213,7 +213,7 @@ void TestCodeGenCast::test_Cast_010() | |||
| 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_010"); | 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_010"); |
| 214 | npu::tile_fwk::CodeGenCtx ctx; | 214 | npu::tile_fwk::CodeGenCtx ctx; |
| 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 216 | - codeGen.GenCode(*function, {}); | 216 | + codeGen.GenCode(*function); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void TestCodeGenCast::test_Cast_011() | 219 | void TestCodeGenCast::test_Cast_011() |
| @@ -232,7 +232,7 @@ void TestCodeGenCast::test_Cast_011() | |||
| 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_011"); | 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_011"); |
| 233 | npu::tile_fwk::CodeGenCtx ctx; | 233 | npu::tile_fwk::CodeGenCtx ctx; |
| 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 235 | - codeGen.GenCode(*function, {}); | 235 | + codeGen.GenCode(*function); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void TestCodeGenCast::test_Cast_012() | 238 | void TestCodeGenCast::test_Cast_012() |
| @@ -251,7 +251,7 @@ void TestCodeGenCast::test_Cast_012() | |||
| 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_012"); | 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_012"); |
| 252 | npu::tile_fwk::CodeGenCtx ctx; | 252 | npu::tile_fwk::CodeGenCtx ctx; |
| 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 254 | - codeGen.GenCode(*function, {}); | 254 | + codeGen.GenCode(*function); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void TestCodeGenCast::test_Cast_013() | 257 | void TestCodeGenCast::test_Cast_013() |
| @@ -270,7 +270,7 @@ void TestCodeGenCast::test_Cast_013() | |||
| 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_013"); | 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_013"); |
| 271 | npu::tile_fwk::CodeGenCtx ctx; | 271 | npu::tile_fwk::CodeGenCtx ctx; |
| 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 273 | - codeGen.GenCode(*function, {}); | 273 | + codeGen.GenCode(*function); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void TestCodeGenCast::test_Cast_014() | 276 | void TestCodeGenCast::test_Cast_014() |
| @@ -289,7 +289,7 @@ void TestCodeGenCast::test_Cast_014() | |||
| 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_014"); | 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_014"); |
| 290 | npu::tile_fwk::CodeGenCtx ctx; | 290 | npu::tile_fwk::CodeGenCtx ctx; |
| 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 292 | - codeGen.GenCode(*function, {}); | 292 | + codeGen.GenCode(*function); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void TestCodeGenCast::test_Cast_015() | 295 | void TestCodeGenCast::test_Cast_015() |
| @@ -308,7 +308,7 @@ void TestCodeGenCast::test_Cast_015() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_015"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_015"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenCast::test_Cast_016() | 314 | void TestCodeGenCast::test_Cast_016() |
| @@ -327,7 +327,7 @@ void TestCodeGenCast::test_Cast_016() | |||
| 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_016"); | 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_016"); |
| 328 | npu::tile_fwk::CodeGenCtx ctx; | 328 | npu::tile_fwk::CodeGenCtx ctx; |
| 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 330 | - codeGen.GenCode(*function, {}); | 330 | + codeGen.GenCode(*function); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | void TestCodeGenCast::test_Cast_017() | 333 | void TestCodeGenCast::test_Cast_017() |
| @@ -346,7 +346,7 @@ void TestCodeGenCast::test_Cast_017() | |||
| 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_017"); | 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_017"); |
| 347 | npu::tile_fwk::CodeGenCtx ctx; | 347 | npu::tile_fwk::CodeGenCtx ctx; |
| 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 349 | - codeGen.GenCode(*function, {}); | 349 | + codeGen.GenCode(*function); |
| 350 | } | 350 | } |
| 351 | 351 | ||
| 352 | void TestCodeGenCast::test_Cast_018() | 352 | void TestCodeGenCast::test_Cast_018() |
| @@ -365,7 +365,7 @@ void TestCodeGenCast::test_Cast_018() | |||
| 365 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_018"); | 365 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_018"); |
| 366 | npu::tile_fwk::CodeGenCtx ctx; | 366 | npu::tile_fwk::CodeGenCtx ctx; |
| 367 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 367 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 368 | - codeGen.GenCode(*function, {}); | 368 | + codeGen.GenCode(*function); |
| 369 | } | 369 | } |
| 370 | 370 | ||
| 371 | void TestCodeGenCast::test_Cast_019() | 371 | void TestCodeGenCast::test_Cast_019() |
| @@ -384,7 +384,7 @@ void TestCodeGenCast::test_Cast_019() | |||
| 384 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_019"); | 384 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_019"); |
| 385 | npu::tile_fwk::CodeGenCtx ctx; | 385 | npu::tile_fwk::CodeGenCtx ctx; |
| 386 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 386 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 387 | - codeGen.GenCode(*function, {}); | 387 | + codeGen.GenCode(*function); |
| 388 | } | 388 | } |
| 389 | 389 | ||
| 390 | void TestCodeGenCast::test_Cast_020() | 390 | void TestCodeGenCast::test_Cast_020() |
| @@ -403,7 +403,7 @@ void TestCodeGenCast::test_Cast_020() | |||
| 403 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_020"); | 403 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_020"); |
| 404 | npu::tile_fwk::CodeGenCtx ctx; | 404 | npu::tile_fwk::CodeGenCtx ctx; |
| 405 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 405 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 406 | - codeGen.GenCode(*function, {}); | 406 | + codeGen.GenCode(*function); |
| 407 | } | 407 | } |
| 408 | 408 | ||
| 409 | void TestCodeGenCast::test_Cast_021() | 409 | void TestCodeGenCast::test_Cast_021() |
| @@ -422,5 +422,5 @@ void TestCodeGenCast::test_Cast_021() | |||
| 422 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_021"); | 422 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CAST_021"); |
| 423 | npu::tile_fwk::CodeGenCtx ctx; | 423 | npu::tile_fwk::CodeGenCtx ctx; |
| 424 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 424 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 425 | - codeGen.GenCode(*function, {}); | 425 | + codeGen.GenCode(*function); |
| 426 | } | 426 | } |
| @@ -39,7 +39,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_001() | |||
| 39 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_001"); | 39 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_001"); |
| 40 | npu::tile_fwk::CodeGenCtx ctx; | 40 | npu::tile_fwk::CodeGenCtx ctx; |
| 41 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 41 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 42 | - codeGen.GenCode(*function, {}); | 42 | + codeGen.GenCode(*function); |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | void TestCodeGenCompare::test_compare_eq_fp16_002() | 45 | void TestCodeGenCompare::test_compare_eq_fp16_002() |
| @@ -55,7 +55,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_002() | |||
| 55 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_002"); | 55 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_002"); |
| 56 | npu::tile_fwk::CodeGenCtx ctx; | 56 | npu::tile_fwk::CodeGenCtx ctx; |
| 57 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 57 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 58 | - codeGen.GenCode(*function, {}); | 58 | + codeGen.GenCode(*function); |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | void TestCodeGenCompare::test_compare_eq_fp16_003() | 61 | void TestCodeGenCompare::test_compare_eq_fp16_003() |
| @@ -71,7 +71,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_003() | |||
| 71 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_003"); | 71 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_003"); |
| 72 | npu::tile_fwk::CodeGenCtx ctx; | 72 | npu::tile_fwk::CodeGenCtx ctx; |
| 73 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 73 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 74 | - codeGen.GenCode(*function, {}); | 74 | + codeGen.GenCode(*function); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | void TestCodeGenCompare::test_compare_eq_fp16_004() | 77 | void TestCodeGenCompare::test_compare_eq_fp16_004() |
| @@ -87,7 +87,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_004() | |||
| 87 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_004"); | 87 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_004"); |
| 88 | npu::tile_fwk::CodeGenCtx ctx; | 88 | npu::tile_fwk::CodeGenCtx ctx; |
| 89 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 89 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 90 | - codeGen.GenCode(*function, {}); | 90 | + codeGen.GenCode(*function); |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | void TestCodeGenCompare::test_compare_eq_fp16_005() | 93 | void TestCodeGenCompare::test_compare_eq_fp16_005() |
| @@ -103,7 +103,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_005() | |||
| 103 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_005"); | 103 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_005"); |
| 104 | npu::tile_fwk::CodeGenCtx ctx; | 104 | npu::tile_fwk::CodeGenCtx ctx; |
| 105 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 105 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 106 | - codeGen.GenCode(*function, {}); | 106 | + codeGen.GenCode(*function); |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | void TestCodeGenCompare::test_compare_eq_fp16_006() | 109 | void TestCodeGenCompare::test_compare_eq_fp16_006() |
| @@ -119,7 +119,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_006() | |||
| 119 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_006"); | 119 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_006"); |
| 120 | npu::tile_fwk::CodeGenCtx ctx; | 120 | npu::tile_fwk::CodeGenCtx ctx; |
| 121 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 121 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 122 | - codeGen.GenCode(*function, {}); | 122 | + codeGen.GenCode(*function); |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | void TestCodeGenCompare::test_compare_eq_fp16_007() | 125 | void TestCodeGenCompare::test_compare_eq_fp16_007() |
| @@ -135,7 +135,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_007() | |||
| 135 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_007"); | 135 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_007"); |
| 136 | npu::tile_fwk::CodeGenCtx ctx; | 136 | npu::tile_fwk::CodeGenCtx ctx; |
| 137 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 137 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 138 | - codeGen.GenCode(*function, {}); | 138 | + codeGen.GenCode(*function); |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | void TestCodeGenCompare::test_compare_eq_fp16_008() | 141 | void TestCodeGenCompare::test_compare_eq_fp16_008() |
| @@ -151,7 +151,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_008() | |||
| 151 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_008"); | 151 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_008"); |
| 152 | npu::tile_fwk::CodeGenCtx ctx; | 152 | npu::tile_fwk::CodeGenCtx ctx; |
| 153 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 153 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 154 | - codeGen.GenCode(*function, {}); | 154 | + codeGen.GenCode(*function); |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | void TestCodeGenCompare::test_compare_eq_fp16_009() | 157 | void TestCodeGenCompare::test_compare_eq_fp16_009() |
| @@ -167,7 +167,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_009() | |||
| 167 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_009"); | 167 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_009"); |
| 168 | npu::tile_fwk::CodeGenCtx ctx; | 168 | npu::tile_fwk::CodeGenCtx ctx; |
| 169 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 169 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 170 | - codeGen.GenCode(*function, {}); | 170 | + codeGen.GenCode(*function); |
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | void TestCodeGenCompare::test_compare_eq_fp16_010() | 173 | void TestCodeGenCompare::test_compare_eq_fp16_010() |
| @@ -183,7 +183,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_010() | |||
| 183 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_010"); | 183 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_010"); |
| 184 | npu::tile_fwk::CodeGenCtx ctx; | 184 | npu::tile_fwk::CodeGenCtx ctx; |
| 185 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 185 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 186 | - codeGen.GenCode(*function, {}); | 186 | + codeGen.GenCode(*function); |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | void TestCodeGenCompare::test_compare_eq_fp16_011() | 189 | void TestCodeGenCompare::test_compare_eq_fp16_011() |
| @@ -199,7 +199,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_011() | |||
| 199 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_011"); | 199 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_011"); |
| 200 | npu::tile_fwk::CodeGenCtx ctx; | 200 | npu::tile_fwk::CodeGenCtx ctx; |
| 201 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 201 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 202 | - codeGen.GenCode(*function, {}); | 202 | + codeGen.GenCode(*function); |
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | void TestCodeGenCompare::test_compare_eq_fp16_012() | 205 | void TestCodeGenCompare::test_compare_eq_fp16_012() |
| @@ -215,7 +215,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_012() | |||
| 215 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_012"); | 215 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_012"); |
| 216 | npu::tile_fwk::CodeGenCtx ctx; | 216 | npu::tile_fwk::CodeGenCtx ctx; |
| 217 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 217 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 218 | - codeGen.GenCode(*function, {}); | 218 | + codeGen.GenCode(*function); |
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | void TestCodeGenCompare::test_compare_eq_fp16_013() | 221 | void TestCodeGenCompare::test_compare_eq_fp16_013() |
| @@ -231,7 +231,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_013() | |||
| 231 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_013"); | 231 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_013"); |
| 232 | npu::tile_fwk::CodeGenCtx ctx; | 232 | npu::tile_fwk::CodeGenCtx ctx; |
| 233 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 233 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 234 | - codeGen.GenCode(*function, {}); | 234 | + codeGen.GenCode(*function); |
| 235 | } | 235 | } |
| 236 | 236 | ||
| 237 | void TestCodeGenCompare::test_compare_eq_fp16_014() | 237 | void TestCodeGenCompare::test_compare_eq_fp16_014() |
| @@ -247,7 +247,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_014() | |||
| 247 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_014"); | 247 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_014"); |
| 248 | npu::tile_fwk::CodeGenCtx ctx; | 248 | npu::tile_fwk::CodeGenCtx ctx; |
| 249 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 249 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 250 | - codeGen.GenCode(*function, {}); | 250 | + codeGen.GenCode(*function); |
| 251 | } | 251 | } |
| 252 | 252 | ||
| 253 | void TestCodeGenCompare::test_compare_eq_fp16_015() | 253 | void TestCodeGenCompare::test_compare_eq_fp16_015() |
| @@ -263,7 +263,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_015() | |||
| 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_015"); | 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_015"); |
| 264 | npu::tile_fwk::CodeGenCtx ctx; | 264 | npu::tile_fwk::CodeGenCtx ctx; |
| 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 266 | - codeGen.GenCode(*function, {}); | 266 | + codeGen.GenCode(*function); |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | void TestCodeGenCompare::test_compare_eq_fp16_016() | 269 | void TestCodeGenCompare::test_compare_eq_fp16_016() |
| @@ -279,7 +279,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_016() | |||
| 279 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_016"); | 279 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_016"); |
| 280 | npu::tile_fwk::CodeGenCtx ctx; | 280 | npu::tile_fwk::CodeGenCtx ctx; |
| 281 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 281 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 282 | - codeGen.GenCode(*function, {}); | 282 | + codeGen.GenCode(*function); |
| 283 | } | 283 | } |
| 284 | 284 | ||
| 285 | void TestCodeGenCompare::test_compare_eq_fp16_017() | 285 | void TestCodeGenCompare::test_compare_eq_fp16_017() |
| @@ -295,7 +295,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_017() | |||
| 295 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_017"); | 295 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_017"); |
| 296 | npu::tile_fwk::CodeGenCtx ctx; | 296 | npu::tile_fwk::CodeGenCtx ctx; |
| 297 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 297 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 298 | - codeGen.GenCode(*function, {}); | 298 | + codeGen.GenCode(*function); |
| 299 | } | 299 | } |
| 300 | 300 | ||
| 301 | void TestCodeGenCompare::test_compare_eq_fp16_018() | 301 | void TestCodeGenCompare::test_compare_eq_fp16_018() |
| @@ -311,7 +311,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_018() | |||
| 311 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_018"); | 311 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_018"); |
| 312 | npu::tile_fwk::CodeGenCtx ctx; | 312 | npu::tile_fwk::CodeGenCtx ctx; |
| 313 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 313 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 314 | - codeGen.GenCode(*function, {}); | 314 | + codeGen.GenCode(*function); |
| 315 | } | 315 | } |
| 316 | 316 | ||
| 317 | void TestCodeGenCompare::test_compare_eq_fp16_019() | 317 | void TestCodeGenCompare::test_compare_eq_fp16_019() |
| @@ -327,7 +327,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_019() | |||
| 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_019"); | 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_019"); |
| 328 | npu::tile_fwk::CodeGenCtx ctx; | 328 | npu::tile_fwk::CodeGenCtx ctx; |
| 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 330 | - codeGen.GenCode(*function, {}); | 330 | + codeGen.GenCode(*function); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | void TestCodeGenCompare::test_compare_eq_fp16_020() | 333 | void TestCodeGenCompare::test_compare_eq_fp16_020() |
| @@ -343,7 +343,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_020() | |||
| 343 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_020"); | 343 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_020"); |
| 344 | npu::tile_fwk::CodeGenCtx ctx; | 344 | npu::tile_fwk::CodeGenCtx ctx; |
| 345 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 345 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 346 | - codeGen.GenCode(*function, {}); | 346 | + codeGen.GenCode(*function); |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | void TestCodeGenCompare::test_compare_eq_fp16_021() | 349 | void TestCodeGenCompare::test_compare_eq_fp16_021() |
| @@ -359,7 +359,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_021() | |||
| 359 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_021"); | 359 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_021"); |
| 360 | npu::tile_fwk::CodeGenCtx ctx; | 360 | npu::tile_fwk::CodeGenCtx ctx; |
| 361 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 361 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 362 | - codeGen.GenCode(*function, {}); | 362 | + codeGen.GenCode(*function); |
| 363 | } | 363 | } |
| 364 | 364 | ||
| 365 | void TestCodeGenCompare::test_compare_eq_fp16_022() | 365 | void TestCodeGenCompare::test_compare_eq_fp16_022() |
| @@ -375,7 +375,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_022() | |||
| 375 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_022"); | 375 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_022"); |
| 376 | npu::tile_fwk::CodeGenCtx ctx; | 376 | npu::tile_fwk::CodeGenCtx ctx; |
| 377 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 377 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 378 | - codeGen.GenCode(*function, {}); | 378 | + codeGen.GenCode(*function); |
| 379 | } | 379 | } |
| 380 | 380 | ||
| 381 | void TestCodeGenCompare::test_compare_eq_fp16_023() | 381 | void TestCodeGenCompare::test_compare_eq_fp16_023() |
| @@ -391,7 +391,7 @@ void TestCodeGenCompare::test_compare_eq_fp16_023() | |||
| 391 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_023"); | 391 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP16_023"); |
| 392 | npu::tile_fwk::CodeGenCtx ctx; | 392 | npu::tile_fwk::CodeGenCtx ctx; |
| 393 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 393 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 394 | - codeGen.GenCode(*function, {}); | 394 | + codeGen.GenCode(*function); |
| 395 | } | 395 | } |
| 396 | 396 | ||
| 397 | void TestCodeGenCompare::test_compare_eq_fp32_001() | 397 | void TestCodeGenCompare::test_compare_eq_fp32_001() |
| @@ -407,7 +407,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_001() | |||
| 407 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_001"); | 407 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_001"); |
| 408 | npu::tile_fwk::CodeGenCtx ctx; | 408 | npu::tile_fwk::CodeGenCtx ctx; |
| 409 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 409 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 410 | - codeGen.GenCode(*function, {}); | 410 | + codeGen.GenCode(*function); |
| 411 | } | 411 | } |
| 412 | 412 | ||
| 413 | void TestCodeGenCompare::test_compare_eq_fp32_002() | 413 | void TestCodeGenCompare::test_compare_eq_fp32_002() |
| @@ -423,7 +423,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_002() | |||
| 423 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_002"); | 423 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_002"); |
| 424 | npu::tile_fwk::CodeGenCtx ctx; | 424 | npu::tile_fwk::CodeGenCtx ctx; |
| 425 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 425 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 426 | - codeGen.GenCode(*function, {}); | 426 | + codeGen.GenCode(*function); |
| 427 | } | 427 | } |
| 428 | 428 | ||
| 429 | void TestCodeGenCompare::test_compare_eq_fp32_003() | 429 | void TestCodeGenCompare::test_compare_eq_fp32_003() |
| @@ -439,7 +439,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_003() | |||
| 439 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_003"); | 439 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_003"); |
| 440 | npu::tile_fwk::CodeGenCtx ctx; | 440 | npu::tile_fwk::CodeGenCtx ctx; |
| 441 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 441 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 442 | - codeGen.GenCode(*function, {}); | 442 | + codeGen.GenCode(*function); |
| 443 | } | 443 | } |
| 444 | 444 | ||
| 445 | void TestCodeGenCompare::test_compare_eq_fp32_004() | 445 | void TestCodeGenCompare::test_compare_eq_fp32_004() |
| @@ -455,7 +455,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_004() | |||
| 455 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_004"); | 455 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_004"); |
| 456 | npu::tile_fwk::CodeGenCtx ctx; | 456 | npu::tile_fwk::CodeGenCtx ctx; |
| 457 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 457 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 458 | - codeGen.GenCode(*function, {}); | 458 | + codeGen.GenCode(*function); |
| 459 | } | 459 | } |
| 460 | 460 | ||
| 461 | void TestCodeGenCompare::test_compare_eq_fp32_005() | 461 | void TestCodeGenCompare::test_compare_eq_fp32_005() |
| @@ -471,7 +471,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_005() | |||
| 471 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_005"); | 471 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_005"); |
| 472 | npu::tile_fwk::CodeGenCtx ctx; | 472 | npu::tile_fwk::CodeGenCtx ctx; |
| 473 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 473 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 474 | - codeGen.GenCode(*function, {}); | 474 | + codeGen.GenCode(*function); |
| 475 | } | 475 | } |
| 476 | 476 | ||
| 477 | void TestCodeGenCompare::test_compare_eq_fp32_006() | 477 | void TestCodeGenCompare::test_compare_eq_fp32_006() |
| @@ -487,7 +487,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_006() | |||
| 487 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_006"); | 487 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_006"); |
| 488 | npu::tile_fwk::CodeGenCtx ctx; | 488 | npu::tile_fwk::CodeGenCtx ctx; |
| 489 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 489 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 490 | - codeGen.GenCode(*function, {}); | 490 | + codeGen.GenCode(*function); |
| 491 | } | 491 | } |
| 492 | 492 | ||
| 493 | void TestCodeGenCompare::test_compare_eq_fp32_007() | 493 | void TestCodeGenCompare::test_compare_eq_fp32_007() |
| @@ -503,7 +503,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_007() | |||
| 503 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_007"); | 503 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_007"); |
| 504 | npu::tile_fwk::CodeGenCtx ctx; | 504 | npu::tile_fwk::CodeGenCtx ctx; |
| 505 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 505 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 506 | - codeGen.GenCode(*function, {}); | 506 | + codeGen.GenCode(*function); |
| 507 | } | 507 | } |
| 508 | 508 | ||
| 509 | void TestCodeGenCompare::test_compare_eq_fp32_008() | 509 | void TestCodeGenCompare::test_compare_eq_fp32_008() |
| @@ -519,7 +519,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_008() | |||
| 519 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_008"); | 519 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_008"); |
| 520 | npu::tile_fwk::CodeGenCtx ctx; | 520 | npu::tile_fwk::CodeGenCtx ctx; |
| 521 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 521 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 522 | - codeGen.GenCode(*function, {}); | 522 | + codeGen.GenCode(*function); |
| 523 | } | 523 | } |
| 524 | 524 | ||
| 525 | void TestCodeGenCompare::test_compare_eq_fp32_009() | 525 | void TestCodeGenCompare::test_compare_eq_fp32_009() |
| @@ -535,7 +535,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_009() | |||
| 535 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_009"); | 535 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_009"); |
| 536 | npu::tile_fwk::CodeGenCtx ctx; | 536 | npu::tile_fwk::CodeGenCtx ctx; |
| 537 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 537 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 538 | - codeGen.GenCode(*function, {}); | 538 | + codeGen.GenCode(*function); |
| 539 | } | 539 | } |
| 540 | 540 | ||
| 541 | void TestCodeGenCompare::test_compare_eq_fp32_010() | 541 | void TestCodeGenCompare::test_compare_eq_fp32_010() |
| @@ -551,7 +551,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_010() | |||
| 551 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_010"); | 551 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_010"); |
| 552 | npu::tile_fwk::CodeGenCtx ctx; | 552 | npu::tile_fwk::CodeGenCtx ctx; |
| 553 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 553 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 554 | - codeGen.GenCode(*function, {}); | 554 | + codeGen.GenCode(*function); |
| 555 | } | 555 | } |
| 556 | 556 | ||
| 557 | void TestCodeGenCompare::test_compare_eq_fp32_011() | 557 | void TestCodeGenCompare::test_compare_eq_fp32_011() |
| @@ -567,7 +567,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_011() | |||
| 567 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_011"); | 567 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_011"); |
| 568 | npu::tile_fwk::CodeGenCtx ctx; | 568 | npu::tile_fwk::CodeGenCtx ctx; |
| 569 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 569 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 570 | - codeGen.GenCode(*function, {}); | 570 | + codeGen.GenCode(*function); |
| 571 | } | 571 | } |
| 572 | 572 | ||
| 573 | void TestCodeGenCompare::test_compare_eq_fp32_012() | 573 | void TestCodeGenCompare::test_compare_eq_fp32_012() |
| @@ -583,7 +583,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_012() | |||
| 583 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_012"); | 583 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_012"); |
| 584 | npu::tile_fwk::CodeGenCtx ctx; | 584 | npu::tile_fwk::CodeGenCtx ctx; |
| 585 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 585 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 586 | - codeGen.GenCode(*function, {}); | 586 | + codeGen.GenCode(*function); |
| 587 | } | 587 | } |
| 588 | 588 | ||
| 589 | void TestCodeGenCompare::test_compare_eq_fp32_013() | 589 | void TestCodeGenCompare::test_compare_eq_fp32_013() |
| @@ -599,7 +599,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_013() | |||
| 599 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_013"); | 599 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_013"); |
| 600 | npu::tile_fwk::CodeGenCtx ctx; | 600 | npu::tile_fwk::CodeGenCtx ctx; |
| 601 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 601 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 602 | - codeGen.GenCode(*function, {}); | 602 | + codeGen.GenCode(*function); |
| 603 | } | 603 | } |
| 604 | 604 | ||
| 605 | void TestCodeGenCompare::test_compare_eq_fp32_014() | 605 | void TestCodeGenCompare::test_compare_eq_fp32_014() |
| @@ -615,7 +615,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_014() | |||
| 615 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_014"); | 615 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_014"); |
| 616 | npu::tile_fwk::CodeGenCtx ctx; | 616 | npu::tile_fwk::CodeGenCtx ctx; |
| 617 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 617 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 618 | - codeGen.GenCode(*function, {}); | 618 | + codeGen.GenCode(*function); |
| 619 | } | 619 | } |
| 620 | 620 | ||
| 621 | void TestCodeGenCompare::test_compare_eq_fp32_015() | 621 | void TestCodeGenCompare::test_compare_eq_fp32_015() |
| @@ -631,7 +631,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_015() | |||
| 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_015"); | 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_015"); |
| 632 | npu::tile_fwk::CodeGenCtx ctx; | 632 | npu::tile_fwk::CodeGenCtx ctx; |
| 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 634 | - codeGen.GenCode(*function, {}); | 634 | + codeGen.GenCode(*function); |
| 635 | } | 635 | } |
| 636 | 636 | ||
| 637 | void TestCodeGenCompare::test_compare_eq_fp32_016() | 637 | void TestCodeGenCompare::test_compare_eq_fp32_016() |
| @@ -647,7 +647,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_016() | |||
| 647 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_016"); | 647 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_016"); |
| 648 | npu::tile_fwk::CodeGenCtx ctx; | 648 | npu::tile_fwk::CodeGenCtx ctx; |
| 649 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 649 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 650 | - codeGen.GenCode(*function, {}); | 650 | + codeGen.GenCode(*function); |
| 651 | } | 651 | } |
| 652 | 652 | ||
| 653 | void TestCodeGenCompare::test_compare_eq_fp32_017() | 653 | void TestCodeGenCompare::test_compare_eq_fp32_017() |
| @@ -663,7 +663,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_017() | |||
| 663 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_017"); | 663 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_017"); |
| 664 | npu::tile_fwk::CodeGenCtx ctx; | 664 | npu::tile_fwk::CodeGenCtx ctx; |
| 665 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 665 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 666 | - codeGen.GenCode(*function, {}); | 666 | + codeGen.GenCode(*function); |
| 667 | } | 667 | } |
| 668 | 668 | ||
| 669 | void TestCodeGenCompare::test_compare_eq_fp32_018() | 669 | void TestCodeGenCompare::test_compare_eq_fp32_018() |
| @@ -679,7 +679,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_018() | |||
| 679 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_018"); | 679 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_018"); |
| 680 | npu::tile_fwk::CodeGenCtx ctx; | 680 | npu::tile_fwk::CodeGenCtx ctx; |
| 681 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 681 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 682 | - codeGen.GenCode(*function, {}); | 682 | + codeGen.GenCode(*function); |
| 683 | } | 683 | } |
| 684 | 684 | ||
| 685 | void TestCodeGenCompare::test_compare_eq_fp32_019() | 685 | void TestCodeGenCompare::test_compare_eq_fp32_019() |
| @@ -695,7 +695,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_019() | |||
| 695 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_019"); | 695 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_019"); |
| 696 | npu::tile_fwk::CodeGenCtx ctx; | 696 | npu::tile_fwk::CodeGenCtx ctx; |
| 697 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 697 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 698 | - codeGen.GenCode(*function, {}); | 698 | + codeGen.GenCode(*function); |
| 699 | } | 699 | } |
| 700 | 700 | ||
| 701 | void TestCodeGenCompare::test_compare_eq_fp32_020() | 701 | void TestCodeGenCompare::test_compare_eq_fp32_020() |
| @@ -711,7 +711,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_020() | |||
| 711 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_020"); | 711 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_020"); |
| 712 | npu::tile_fwk::CodeGenCtx ctx; | 712 | npu::tile_fwk::CodeGenCtx ctx; |
| 713 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 713 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 714 | - codeGen.GenCode(*function, {}); | 714 | + codeGen.GenCode(*function); |
| 715 | } | 715 | } |
| 716 | 716 | ||
| 717 | void TestCodeGenCompare::test_compare_eq_fp32_021() | 717 | void TestCodeGenCompare::test_compare_eq_fp32_021() |
| @@ -727,7 +727,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_021() | |||
| 727 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_021"); | 727 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_021"); |
| 728 | npu::tile_fwk::CodeGenCtx ctx; | 728 | npu::tile_fwk::CodeGenCtx ctx; |
| 729 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 729 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 730 | - codeGen.GenCode(*function, {}); | 730 | + codeGen.GenCode(*function); |
| 731 | } | 731 | } |
| 732 | 732 | ||
| 733 | void TestCodeGenCompare::test_compare_eq_fp32_022() | 733 | void TestCodeGenCompare::test_compare_eq_fp32_022() |
| @@ -743,7 +743,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_022() | |||
| 743 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_022"); | 743 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_022"); |
| 744 | npu::tile_fwk::CodeGenCtx ctx; | 744 | npu::tile_fwk::CodeGenCtx ctx; |
| 745 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 745 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 746 | - codeGen.GenCode(*function, {}); | 746 | + codeGen.GenCode(*function); |
| 747 | } | 747 | } |
| 748 | 748 | ||
| 749 | void TestCodeGenCompare::test_compare_eq_fp32_023() | 749 | void TestCodeGenCompare::test_compare_eq_fp32_023() |
| @@ -759,7 +759,7 @@ void TestCodeGenCompare::test_compare_eq_fp32_023() | |||
| 759 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_023"); | 759 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_023"); |
| 760 | npu::tile_fwk::CodeGenCtx ctx; | 760 | npu::tile_fwk::CodeGenCtx ctx; |
| 761 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 761 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 762 | - codeGen.GenCode(*function, {}); | 762 | + codeGen.GenCode(*function); |
| 763 | } | 763 | } |
| 764 | 764 | ||
| 765 | void TestCodeGenCompare::test_compare_eq_fp32_024() | 765 | void TestCodeGenCompare::test_compare_eq_fp32_024() |
| @@ -775,5 +775,5 @@ void TestCodeGenCompare::test_compare_eq_fp32_024() | |||
| 775 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_024"); | 775 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "COMPARE_EQ_FP32_024"); |
| 776 | npu::tile_fwk::CodeGenCtx ctx; | 776 | npu::tile_fwk::CodeGenCtx ctx; |
| 777 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 777 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 778 | - codeGen.GenCode(*function, {}); | 778 | + codeGen.GenCode(*function); |
| 779 | } | 779 | } |
| @@ -45,7 +45,7 @@ void TestCodeGenConcat::test_concat_001() | |||
| 45 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_001"); | 45 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_001"); |
| 46 | npu::tile_fwk::CodeGenCtx ctx; | 46 | npu::tile_fwk::CodeGenCtx ctx; |
| 47 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 47 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 48 | - codeGen.GenCode(*function, {}); | 48 | + codeGen.GenCode(*function); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | void TestCodeGenConcat::test_concat_002() | 51 | void TestCodeGenConcat::test_concat_002() |
| @@ -67,7 +67,7 @@ void TestCodeGenConcat::test_concat_002() | |||
| 67 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_002"); | 67 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_002"); |
| 68 | npu::tile_fwk::CodeGenCtx ctx; | 68 | npu::tile_fwk::CodeGenCtx ctx; |
| 69 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 69 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 70 | - codeGen.GenCode(*function, {}); | 70 | + codeGen.GenCode(*function); |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | void TestCodeGenConcat::test_concat_003() | 73 | void TestCodeGenConcat::test_concat_003() |
| @@ -90,7 +90,7 @@ void TestCodeGenConcat::test_concat_003() | |||
| 90 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_003"); | 90 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_003"); |
| 91 | npu::tile_fwk::CodeGenCtx ctx; | 91 | npu::tile_fwk::CodeGenCtx ctx; |
| 92 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 92 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 93 | - codeGen.GenCode(*function, {}); | 93 | + codeGen.GenCode(*function); |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | void TestCodeGenConcat::test_concat_004() | 96 | void TestCodeGenConcat::test_concat_004() |
| @@ -113,7 +113,7 @@ void TestCodeGenConcat::test_concat_004() | |||
| 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_004"); | 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_004"); |
| 114 | npu::tile_fwk::CodeGenCtx ctx; | 114 | npu::tile_fwk::CodeGenCtx ctx; |
| 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 116 | - codeGen.GenCode(*function, {}); | 116 | + codeGen.GenCode(*function); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | void TestCodeGenConcat::test_concat_005() | 119 | void TestCodeGenConcat::test_concat_005() |
| @@ -135,7 +135,7 @@ void TestCodeGenConcat::test_concat_005() | |||
| 135 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_005"); | 135 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_005"); |
| 136 | npu::tile_fwk::CodeGenCtx ctx; | 136 | npu::tile_fwk::CodeGenCtx ctx; |
| 137 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 137 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 138 | - codeGen.GenCode(*function, {}); | 138 | + codeGen.GenCode(*function); |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | void TestCodeGenConcat::test_concat_006() | 141 | void TestCodeGenConcat::test_concat_006() |
| @@ -157,7 +157,7 @@ void TestCodeGenConcat::test_concat_006() | |||
| 157 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_006"); | 157 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_006"); |
| 158 | npu::tile_fwk::CodeGenCtx ctx; | 158 | npu::tile_fwk::CodeGenCtx ctx; |
| 159 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 159 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 160 | - codeGen.GenCode(*function, {}); | 160 | + codeGen.GenCode(*function); |
| 161 | } | 161 | } |
| 162 | 162 | ||
| 163 | void TestCodeGenConcat::test_concat_007() | 163 | void TestCodeGenConcat::test_concat_007() |
| @@ -179,7 +179,7 @@ void TestCodeGenConcat::test_concat_007() | |||
| 179 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_007"); | 179 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_007"); |
| 180 | npu::tile_fwk::CodeGenCtx ctx; | 180 | npu::tile_fwk::CodeGenCtx ctx; |
| 181 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 181 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 182 | - codeGen.GenCode(*function, {}); | 182 | + codeGen.GenCode(*function); |
| 183 | } | 183 | } |
| 184 | 184 | ||
| 185 | void TestCodeGenConcat::test_concat_008() | 185 | void TestCodeGenConcat::test_concat_008() |
| @@ -202,7 +202,7 @@ void TestCodeGenConcat::test_concat_008() | |||
| 202 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_008"); | 202 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_008"); |
| 203 | npu::tile_fwk::CodeGenCtx ctx; | 203 | npu::tile_fwk::CodeGenCtx ctx; |
| 204 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 204 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 205 | - codeGen.GenCode(*function, {}); | 205 | + codeGen.GenCode(*function); |
| 206 | } | 206 | } |
| 207 | 207 | ||
| 208 | void TestCodeGenConcat::test_concat_009() | 208 | void TestCodeGenConcat::test_concat_009() |
| @@ -224,7 +224,7 @@ void TestCodeGenConcat::test_concat_009() | |||
| 224 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_009"); | 224 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_009"); |
| 225 | npu::tile_fwk::CodeGenCtx ctx; | 225 | npu::tile_fwk::CodeGenCtx ctx; |
| 226 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 226 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 227 | - codeGen.GenCode(*function, {}); | 227 | + codeGen.GenCode(*function); |
| 228 | } | 228 | } |
| 229 | 229 | ||
| 230 | void TestCodeGenConcat::test_concat_010() | 230 | void TestCodeGenConcat::test_concat_010() |
| @@ -246,7 +246,7 @@ void TestCodeGenConcat::test_concat_010() | |||
| 246 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_010"); | 246 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_010"); |
| 247 | npu::tile_fwk::CodeGenCtx ctx; | 247 | npu::tile_fwk::CodeGenCtx ctx; |
| 248 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 248 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 249 | - codeGen.GenCode(*function, {}); | 249 | + codeGen.GenCode(*function); |
| 250 | } | 250 | } |
| 251 | 251 | ||
| 252 | void TestCodeGenConcat::test_concat_011() | 252 | void TestCodeGenConcat::test_concat_011() |
| @@ -268,7 +268,7 @@ void TestCodeGenConcat::test_concat_011() | |||
| 268 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_011"); | 268 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_011"); |
| 269 | npu::tile_fwk::CodeGenCtx ctx; | 269 | npu::tile_fwk::CodeGenCtx ctx; |
| 270 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 270 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 271 | - codeGen.GenCode(*function, {}); | 271 | + codeGen.GenCode(*function); |
| 272 | } | 272 | } |
| 273 | 273 | ||
| 274 | void TestCodeGenConcat::test_concat_012() | 274 | void TestCodeGenConcat::test_concat_012() |
| @@ -290,7 +290,7 @@ void TestCodeGenConcat::test_concat_012() | |||
| 290 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_012"); | 290 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_012"); |
| 291 | npu::tile_fwk::CodeGenCtx ctx; | 291 | npu::tile_fwk::CodeGenCtx ctx; |
| 292 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 292 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 293 | - codeGen.GenCode(*function, {}); | 293 | + codeGen.GenCode(*function); |
| 294 | } | 294 | } |
| 295 | 295 | ||
| 296 | void TestCodeGenConcat::test_concat_013() | 296 | void TestCodeGenConcat::test_concat_013() |
| @@ -313,7 +313,7 @@ void TestCodeGenConcat::test_concat_013() | |||
| 313 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_013"); | 313 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_013"); |
| 314 | npu::tile_fwk::CodeGenCtx ctx; | 314 | npu::tile_fwk::CodeGenCtx ctx; |
| 315 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 315 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 316 | - codeGen.GenCode(*function, {}); | 316 | + codeGen.GenCode(*function); |
| 317 | } | 317 | } |
| 318 | 318 | ||
| 319 | void TestCodeGenConcat::test_concat_014() | 319 | void TestCodeGenConcat::test_concat_014() |
| @@ -336,7 +336,7 @@ void TestCodeGenConcat::test_concat_014() | |||
| 336 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_014"); | 336 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_014"); |
| 337 | npu::tile_fwk::CodeGenCtx ctx; | 337 | npu::tile_fwk::CodeGenCtx ctx; |
| 338 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 338 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 339 | - codeGen.GenCode(*function, {}); | 339 | + codeGen.GenCode(*function); |
| 340 | } | 340 | } |
| 341 | 341 | ||
| 342 | void TestCodeGenConcat::test_concat_015() | 342 | void TestCodeGenConcat::test_concat_015() |
| @@ -359,7 +359,7 @@ void TestCodeGenConcat::test_concat_015() | |||
| 359 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_015"); | 359 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_015"); |
| 360 | npu::tile_fwk::CodeGenCtx ctx; | 360 | npu::tile_fwk::CodeGenCtx ctx; |
| 361 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 361 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 362 | - codeGen.GenCode(*function, {}); | 362 | + codeGen.GenCode(*function); |
| 363 | } | 363 | } |
| 364 | 364 | ||
| 365 | void TestCodeGenConcat::test_concat_016() | 365 | void TestCodeGenConcat::test_concat_016() |
| @@ -383,5 +383,5 @@ void TestCodeGenConcat::test_concat_016() | |||
| 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_016"); | 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "CONCAT_016"); |
| 384 | npu::tile_fwk::CodeGenCtx ctx; | 384 | npu::tile_fwk::CodeGenCtx ctx; |
| 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 386 | - codeGen.GenCode(*function, {}); | 386 | + codeGen.GenCode(*function); |
| 387 | } | 387 | } |
| @@ -42,7 +42,7 @@ void TestCodeGenDiv::test_div_001() | |||
| 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_001"); | 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_001"); |
| 43 | npu::tile_fwk::CodeGenCtx ctx; | 43 | npu::tile_fwk::CodeGenCtx ctx; |
| 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 45 | - codeGen.GenCode(*function, {}); | 45 | + codeGen.GenCode(*function); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void TestCodeGenDiv::test_div_002() | 48 | void TestCodeGenDiv::test_div_002() |
| @@ -61,7 +61,7 @@ void TestCodeGenDiv::test_div_002() | |||
| 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_002"); | 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_002"); |
| 62 | npu::tile_fwk::CodeGenCtx ctx; | 62 | npu::tile_fwk::CodeGenCtx ctx; |
| 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 64 | - codeGen.GenCode(*function, {}); | 64 | + codeGen.GenCode(*function); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void TestCodeGenDiv::test_div_003() | 67 | void TestCodeGenDiv::test_div_003() |
| @@ -80,7 +80,7 @@ void TestCodeGenDiv::test_div_003() | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_003"); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_003"); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void TestCodeGenDiv::test_div_004() | 86 | void TestCodeGenDiv::test_div_004() |
| @@ -99,7 +99,7 @@ void TestCodeGenDiv::test_div_004() | |||
| 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_004"); | 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_004"); |
| 100 | npu::tile_fwk::CodeGenCtx ctx; | 100 | npu::tile_fwk::CodeGenCtx ctx; |
| 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 102 | - codeGen.GenCode(*function, {}); | 102 | + codeGen.GenCode(*function); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void TestCodeGenDiv::test_div_005() | 105 | void TestCodeGenDiv::test_div_005() |
| @@ -118,7 +118,7 @@ void TestCodeGenDiv::test_div_005() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_005"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_005"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenDiv::test_div_006() | 124 | void TestCodeGenDiv::test_div_006() |
| @@ -137,7 +137,7 @@ void TestCodeGenDiv::test_div_006() | |||
| 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_006"); | 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_006"); |
| 138 | npu::tile_fwk::CodeGenCtx ctx; | 138 | npu::tile_fwk::CodeGenCtx ctx; |
| 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 140 | - codeGen.GenCode(*function, {}); | 140 | + codeGen.GenCode(*function); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void TestCodeGenDiv::test_div_007() | 143 | void TestCodeGenDiv::test_div_007() |
| @@ -156,7 +156,7 @@ void TestCodeGenDiv::test_div_007() | |||
| 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_007"); | 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_007"); |
| 157 | npu::tile_fwk::CodeGenCtx ctx; | 157 | npu::tile_fwk::CodeGenCtx ctx; |
| 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 159 | - codeGen.GenCode(*function, {}); | 159 | + codeGen.GenCode(*function); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | void TestCodeGenDiv::test_div_008() | 162 | void TestCodeGenDiv::test_div_008() |
| @@ -175,7 +175,7 @@ void TestCodeGenDiv::test_div_008() | |||
| 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_008"); | 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_008"); |
| 176 | npu::tile_fwk::CodeGenCtx ctx; | 176 | npu::tile_fwk::CodeGenCtx ctx; |
| 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 178 | - codeGen.GenCode(*function, {}); | 178 | + codeGen.GenCode(*function); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void TestCodeGenDiv::test_div_009() | 181 | void TestCodeGenDiv::test_div_009() |
| @@ -194,7 +194,7 @@ void TestCodeGenDiv::test_div_009() | |||
| 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_009"); | 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_009"); |
| 195 | npu::tile_fwk::CodeGenCtx ctx; | 195 | npu::tile_fwk::CodeGenCtx ctx; |
| 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 197 | - codeGen.GenCode(*function, {}); | 197 | + codeGen.GenCode(*function); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void TestCodeGenDiv::test_div_010() | 200 | void TestCodeGenDiv::test_div_010() |
| @@ -213,7 +213,7 @@ void TestCodeGenDiv::test_div_010() | |||
| 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_010"); | 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_010"); |
| 214 | npu::tile_fwk::CodeGenCtx ctx; | 214 | npu::tile_fwk::CodeGenCtx ctx; |
| 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 216 | - codeGen.GenCode(*function, {}); | 216 | + codeGen.GenCode(*function); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void TestCodeGenDiv::test_div_011() | 219 | void TestCodeGenDiv::test_div_011() |
| @@ -232,7 +232,7 @@ void TestCodeGenDiv::test_div_011() | |||
| 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_011"); | 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_011"); |
| 233 | npu::tile_fwk::CodeGenCtx ctx; | 233 | npu::tile_fwk::CodeGenCtx ctx; |
| 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 235 | - codeGen.GenCode(*function, {}); | 235 | + codeGen.GenCode(*function); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void TestCodeGenDiv::test_div_012() | 238 | void TestCodeGenDiv::test_div_012() |
| @@ -251,7 +251,7 @@ void TestCodeGenDiv::test_div_012() | |||
| 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_012"); | 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_012"); |
| 252 | npu::tile_fwk::CodeGenCtx ctx; | 252 | npu::tile_fwk::CodeGenCtx ctx; |
| 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 254 | - codeGen.GenCode(*function, {}); | 254 | + codeGen.GenCode(*function); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void TestCodeGenDiv::test_div_013() | 257 | void TestCodeGenDiv::test_div_013() |
| @@ -270,7 +270,7 @@ void TestCodeGenDiv::test_div_013() | |||
| 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_013"); | 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_013"); |
| 271 | npu::tile_fwk::CodeGenCtx ctx; | 271 | npu::tile_fwk::CodeGenCtx ctx; |
| 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 273 | - codeGen.GenCode(*function, {}); | 273 | + codeGen.GenCode(*function); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void TestCodeGenDiv::test_div_014() | 276 | void TestCodeGenDiv::test_div_014() |
| @@ -289,7 +289,7 @@ void TestCodeGenDiv::test_div_014() | |||
| 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_014"); | 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_014"); |
| 290 | npu::tile_fwk::CodeGenCtx ctx; | 290 | npu::tile_fwk::CodeGenCtx ctx; |
| 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 292 | - codeGen.GenCode(*function, {}); | 292 | + codeGen.GenCode(*function); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void TestCodeGenDiv::test_div_015() | 295 | void TestCodeGenDiv::test_div_015() |
| @@ -308,7 +308,7 @@ void TestCodeGenDiv::test_div_015() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_015"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_015"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenDiv::test_div_016() | 314 | void TestCodeGenDiv::test_div_016() |
| @@ -327,7 +327,7 @@ void TestCodeGenDiv::test_div_016() | |||
| 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_016"); | 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_016"); |
| 328 | npu::tile_fwk::CodeGenCtx ctx; | 328 | npu::tile_fwk::CodeGenCtx ctx; |
| 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 330 | - codeGen.GenCode(*function, {}); | 330 | + codeGen.GenCode(*function); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | void TestCodeGenDiv::test_div_017() | 333 | void TestCodeGenDiv::test_div_017() |
| @@ -346,7 +346,7 @@ void TestCodeGenDiv::test_div_017() | |||
| 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_017"); | 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_017"); |
| 347 | npu::tile_fwk::CodeGenCtx ctx; | 347 | npu::tile_fwk::CodeGenCtx ctx; |
| 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 349 | - codeGen.GenCode(*function, {}); | 349 | + codeGen.GenCode(*function); |
| 350 | } | 350 | } |
| 351 | 351 | ||
| 352 | void TestCodeGenDiv::test_div_018() | 352 | void TestCodeGenDiv::test_div_018() |
| @@ -365,7 +365,7 @@ void TestCodeGenDiv::test_div_018() | |||
| 365 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_018"); | 365 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_018"); |
| 366 | npu::tile_fwk::CodeGenCtx ctx; | 366 | npu::tile_fwk::CodeGenCtx ctx; |
| 367 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 367 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 368 | - codeGen.GenCode(*function, {}); | 368 | + codeGen.GenCode(*function); |
| 369 | } | 369 | } |
| 370 | 370 | ||
| 371 | void TestCodeGenDiv::test_div_019() | 371 | void TestCodeGenDiv::test_div_019() |
| @@ -384,7 +384,7 @@ void TestCodeGenDiv::test_div_019() | |||
| 384 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_019"); | 384 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_019"); |
| 385 | npu::tile_fwk::CodeGenCtx ctx; | 385 | npu::tile_fwk::CodeGenCtx ctx; |
| 386 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 386 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 387 | - codeGen.GenCode(*function, {}); | 387 | + codeGen.GenCode(*function); |
| 388 | } | 388 | } |
| 389 | 389 | ||
| 390 | void TestCodeGenDiv::test_div_020() | 390 | void TestCodeGenDiv::test_div_020() |
| @@ -403,7 +403,7 @@ void TestCodeGenDiv::test_div_020() | |||
| 403 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_020"); | 403 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_020"); |
| 404 | npu::tile_fwk::CodeGenCtx ctx; | 404 | npu::tile_fwk::CodeGenCtx ctx; |
| 405 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 405 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 406 | - codeGen.GenCode(*function, {}); | 406 | + codeGen.GenCode(*function); |
| 407 | } | 407 | } |
| 408 | 408 | ||
| 409 | void TestCodeGenDiv::test_div_021() | 409 | void TestCodeGenDiv::test_div_021() |
| @@ -422,7 +422,7 @@ void TestCodeGenDiv::test_div_021() | |||
| 422 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_021"); | 422 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_021"); |
| 423 | npu::tile_fwk::CodeGenCtx ctx; | 423 | npu::tile_fwk::CodeGenCtx ctx; |
| 424 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 424 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 425 | - codeGen.GenCode(*function, {}); | 425 | + codeGen.GenCode(*function); |
| 426 | } | 426 | } |
| 427 | 427 | ||
| 428 | void TestCodeGenDiv::test_div_022() | 428 | void TestCodeGenDiv::test_div_022() |
| @@ -441,7 +441,7 @@ void TestCodeGenDiv::test_div_022() | |||
| 441 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_022"); | 441 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_022"); |
| 442 | npu::tile_fwk::CodeGenCtx ctx; | 442 | npu::tile_fwk::CodeGenCtx ctx; |
| 443 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 443 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 444 | - codeGen.GenCode(*function, {}); | 444 | + codeGen.GenCode(*function); |
| 445 | } | 445 | } |
| 446 | 446 | ||
| 447 | void TestCodeGenDiv::test_div_023() | 447 | void TestCodeGenDiv::test_div_023() |
| @@ -460,7 +460,7 @@ void TestCodeGenDiv::test_div_023() | |||
| 460 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_023"); | 460 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_023"); |
| 461 | npu::tile_fwk::CodeGenCtx ctx; | 461 | npu::tile_fwk::CodeGenCtx ctx; |
| 462 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 462 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 463 | - codeGen.GenCode(*function, {}); | 463 | + codeGen.GenCode(*function); |
| 464 | } | 464 | } |
| 465 | 465 | ||
| 466 | void TestCodeGenDiv::test_div_024() | 466 | void TestCodeGenDiv::test_div_024() |
| @@ -479,7 +479,7 @@ void TestCodeGenDiv::test_div_024() | |||
| 479 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_024"); | 479 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_024"); |
| 480 | npu::tile_fwk::CodeGenCtx ctx; | 480 | npu::tile_fwk::CodeGenCtx ctx; |
| 481 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 481 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 482 | - codeGen.GenCode(*function, {}); | 482 | + codeGen.GenCode(*function); |
| 483 | } | 483 | } |
| 484 | 484 | ||
| 485 | void TestCodeGenDiv::test_div_025() | 485 | void TestCodeGenDiv::test_div_025() |
| @@ -498,7 +498,7 @@ void TestCodeGenDiv::test_div_025() | |||
| 498 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_025"); | 498 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_025"); |
| 499 | npu::tile_fwk::CodeGenCtx ctx; | 499 | npu::tile_fwk::CodeGenCtx ctx; |
| 500 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 500 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 501 | - codeGen.GenCode(*function, {}); | 501 | + codeGen.GenCode(*function); |
| 502 | } | 502 | } |
| 503 | 503 | ||
| 504 | void TestCodeGenDiv::test_div_026() | 504 | void TestCodeGenDiv::test_div_026() |
| @@ -517,7 +517,7 @@ void TestCodeGenDiv::test_div_026() | |||
| 517 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_026"); | 517 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_026"); |
| 518 | npu::tile_fwk::CodeGenCtx ctx; | 518 | npu::tile_fwk::CodeGenCtx ctx; |
| 519 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 519 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 520 | - codeGen.GenCode(*function, {}); | 520 | + codeGen.GenCode(*function); |
| 521 | } | 521 | } |
| 522 | 522 | ||
| 523 | void TestCodeGenDiv::test_div_027() | 523 | void TestCodeGenDiv::test_div_027() |
| @@ -536,7 +536,7 @@ void TestCodeGenDiv::test_div_027() | |||
| 536 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_027"); | 536 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_027"); |
| 537 | npu::tile_fwk::CodeGenCtx ctx; | 537 | npu::tile_fwk::CodeGenCtx ctx; |
| 538 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 538 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 539 | - codeGen.GenCode(*function, {}); | 539 | + codeGen.GenCode(*function); |
| 540 | } | 540 | } |
| 541 | 541 | ||
| 542 | void TestCodeGenDiv::test_div_028() | 542 | void TestCodeGenDiv::test_div_028() |
| @@ -555,7 +555,7 @@ void TestCodeGenDiv::test_div_028() | |||
| 555 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_028"); | 555 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_028"); |
| 556 | npu::tile_fwk::CodeGenCtx ctx; | 556 | npu::tile_fwk::CodeGenCtx ctx; |
| 557 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 557 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 558 | - codeGen.GenCode(*function, {}); | 558 | + codeGen.GenCode(*function); |
| 559 | } | 559 | } |
| 560 | 560 | ||
| 561 | void TestCodeGenDiv::test_div_029() | 561 | void TestCodeGenDiv::test_div_029() |
| @@ -574,7 +574,7 @@ void TestCodeGenDiv::test_div_029() | |||
| 574 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_029"); | 574 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_029"); |
| 575 | npu::tile_fwk::CodeGenCtx ctx; | 575 | npu::tile_fwk::CodeGenCtx ctx; |
| 576 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 576 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 577 | - codeGen.GenCode(*function, {}); | 577 | + codeGen.GenCode(*function); |
| 578 | } | 578 | } |
| 579 | 579 | ||
| 580 | void TestCodeGenDiv::test_div_030() | 580 | void TestCodeGenDiv::test_div_030() |
| @@ -593,7 +593,7 @@ void TestCodeGenDiv::test_div_030() | |||
| 593 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_030"); | 593 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_030"); |
| 594 | npu::tile_fwk::CodeGenCtx ctx; | 594 | npu::tile_fwk::CodeGenCtx ctx; |
| 595 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 595 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 596 | - codeGen.GenCode(*function, {}); | 596 | + codeGen.GenCode(*function); |
| 597 | } | 597 | } |
| 598 | 598 | ||
| 599 | void TestCodeGenDiv::test_div_031() | 599 | void TestCodeGenDiv::test_div_031() |
| @@ -612,7 +612,7 @@ void TestCodeGenDiv::test_div_031() | |||
| 612 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_031"); | 612 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_031"); |
| 613 | npu::tile_fwk::CodeGenCtx ctx; | 613 | npu::tile_fwk::CodeGenCtx ctx; |
| 614 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 614 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 615 | - codeGen.GenCode(*function, {}); | 615 | + codeGen.GenCode(*function); |
| 616 | } | 616 | } |
| 617 | 617 | ||
| 618 | void TestCodeGenDiv::test_div_032() | 618 | void TestCodeGenDiv::test_div_032() |
| @@ -631,7 +631,7 @@ void TestCodeGenDiv::test_div_032() | |||
| 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_032"); | 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_032"); |
| 632 | npu::tile_fwk::CodeGenCtx ctx; | 632 | npu::tile_fwk::CodeGenCtx ctx; |
| 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 634 | - codeGen.GenCode(*function, {}); | 634 | + codeGen.GenCode(*function); |
| 635 | } | 635 | } |
| 636 | 636 | ||
| 637 | void TestCodeGenDiv::test_div_033() | 637 | void TestCodeGenDiv::test_div_033() |
| @@ -650,7 +650,7 @@ void TestCodeGenDiv::test_div_033() | |||
| 650 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_033"); | 650 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_033"); |
| 651 | npu::tile_fwk::CodeGenCtx ctx; | 651 | npu::tile_fwk::CodeGenCtx ctx; |
| 652 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 652 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 653 | - codeGen.GenCode(*function, {}); | 653 | + codeGen.GenCode(*function); |
| 654 | } | 654 | } |
| 655 | 655 | ||
| 656 | void TestCodeGenDiv::test_div_034() | 656 | void TestCodeGenDiv::test_div_034() |
| @@ -669,7 +669,7 @@ void TestCodeGenDiv::test_div_034() | |||
| 669 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_034"); | 669 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_034"); |
| 670 | npu::tile_fwk::CodeGenCtx ctx; | 670 | npu::tile_fwk::CodeGenCtx ctx; |
| 671 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 671 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 672 | - codeGen.GenCode(*function, {}); | 672 | + codeGen.GenCode(*function); |
| 673 | } | 673 | } |
| 674 | 674 | ||
| 675 | void TestCodeGenDiv::test_div_035() | 675 | void TestCodeGenDiv::test_div_035() |
| @@ -688,7 +688,7 @@ void TestCodeGenDiv::test_div_035() | |||
| 688 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_035"); | 688 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_035"); |
| 689 | npu::tile_fwk::CodeGenCtx ctx; | 689 | npu::tile_fwk::CodeGenCtx ctx; |
| 690 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 690 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 691 | - codeGen.GenCode(*function, {}); | 691 | + codeGen.GenCode(*function); |
| 692 | } | 692 | } |
| 693 | 693 | ||
| 694 | void TestCodeGenDiv::test_div_036() | 694 | void TestCodeGenDiv::test_div_036() |
| @@ -707,7 +707,7 @@ void TestCodeGenDiv::test_div_036() | |||
| 707 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_036"); | 707 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_036"); |
| 708 | npu::tile_fwk::CodeGenCtx ctx; | 708 | npu::tile_fwk::CodeGenCtx ctx; |
| 709 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 709 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 710 | - codeGen.GenCode(*function, {}); | 710 | + codeGen.GenCode(*function); |
| 711 | } | 711 | } |
| 712 | 712 | ||
| 713 | void TestCodeGenDiv::test_div_037() | 713 | void TestCodeGenDiv::test_div_037() |
| @@ -726,7 +726,7 @@ void TestCodeGenDiv::test_div_037() | |||
| 726 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_037"); | 726 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_037"); |
| 727 | npu::tile_fwk::CodeGenCtx ctx; | 727 | npu::tile_fwk::CodeGenCtx ctx; |
| 728 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 728 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 729 | - codeGen.GenCode(*function, {}); | 729 | + codeGen.GenCode(*function); |
| 730 | } | 730 | } |
| 731 | 731 | ||
| 732 | void TestCodeGenDiv::test_div_038() | 732 | void TestCodeGenDiv::test_div_038() |
| @@ -745,7 +745,7 @@ void TestCodeGenDiv::test_div_038() | |||
| 745 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_038"); | 745 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_038"); |
| 746 | npu::tile_fwk::CodeGenCtx ctx; | 746 | npu::tile_fwk::CodeGenCtx ctx; |
| 747 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 747 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 748 | - codeGen.GenCode(*function, {}); | 748 | + codeGen.GenCode(*function); |
| 749 | } | 749 | } |
| 750 | 750 | ||
| 751 | void TestCodeGenDiv::test_div_039() | 751 | void TestCodeGenDiv::test_div_039() |
| @@ -764,7 +764,7 @@ void TestCodeGenDiv::test_div_039() | |||
| 764 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_039"); | 764 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_039"); |
| 765 | npu::tile_fwk::CodeGenCtx ctx; | 765 | npu::tile_fwk::CodeGenCtx ctx; |
| 766 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 766 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 767 | - codeGen.GenCode(*function, {}); | 767 | + codeGen.GenCode(*function); |
| 768 | } | 768 | } |
| 769 | 769 | ||
| 770 | void TestCodeGenDiv::test_div_040() | 770 | void TestCodeGenDiv::test_div_040() |
| @@ -783,7 +783,7 @@ void TestCodeGenDiv::test_div_040() | |||
| 783 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_040"); | 783 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_040"); |
| 784 | npu::tile_fwk::CodeGenCtx ctx; | 784 | npu::tile_fwk::CodeGenCtx ctx; |
| 785 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 785 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 786 | - codeGen.GenCode(*function, {}); | 786 | + codeGen.GenCode(*function); |
| 787 | } | 787 | } |
| 788 | 788 | ||
| 789 | void TestCodeGenDiv::test_div_041() | 789 | void TestCodeGenDiv::test_div_041() |
| @@ -802,7 +802,7 @@ void TestCodeGenDiv::test_div_041() | |||
| 802 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_041"); | 802 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_041"); |
| 803 | npu::tile_fwk::CodeGenCtx ctx; | 803 | npu::tile_fwk::CodeGenCtx ctx; |
| 804 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 804 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 805 | - codeGen.GenCode(*function, {}); | 805 | + codeGen.GenCode(*function); |
| 806 | } | 806 | } |
| 807 | 807 | ||
| 808 | void TestCodeGenDiv::test_div_042() | 808 | void TestCodeGenDiv::test_div_042() |
| @@ -821,7 +821,7 @@ void TestCodeGenDiv::test_div_042() | |||
| 821 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_042"); | 821 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_042"); |
| 822 | npu::tile_fwk::CodeGenCtx ctx; | 822 | npu::tile_fwk::CodeGenCtx ctx; |
| 823 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 823 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 824 | - codeGen.GenCode(*function, {}); | 824 | + codeGen.GenCode(*function); |
| 825 | } | 825 | } |
| 826 | 826 | ||
| 827 | void TestCodeGenDiv::test_div_043() | 827 | void TestCodeGenDiv::test_div_043() |
| @@ -840,7 +840,7 @@ void TestCodeGenDiv::test_div_043() | |||
| 840 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_043"); | 840 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_043"); |
| 841 | npu::tile_fwk::CodeGenCtx ctx; | 841 | npu::tile_fwk::CodeGenCtx ctx; |
| 842 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 842 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 843 | - codeGen.GenCode(*function, {}); | 843 | + codeGen.GenCode(*function); |
| 844 | } | 844 | } |
| 845 | 845 | ||
| 846 | void TestCodeGenDiv::test_div_044() | 846 | void TestCodeGenDiv::test_div_044() |
| @@ -859,7 +859,7 @@ void TestCodeGenDiv::test_div_044() | |||
| 859 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_044"); | 859 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_044"); |
| 860 | npu::tile_fwk::CodeGenCtx ctx; | 860 | npu::tile_fwk::CodeGenCtx ctx; |
| 861 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 861 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 862 | - codeGen.GenCode(*function, {}); | 862 | + codeGen.GenCode(*function); |
| 863 | } | 863 | } |
| 864 | 864 | ||
| 865 | void TestCodeGenDiv::test_div_045() | 865 | void TestCodeGenDiv::test_div_045() |
| @@ -878,7 +878,7 @@ void TestCodeGenDiv::test_div_045() | |||
| 878 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_045"); | 878 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_045"); |
| 879 | npu::tile_fwk::CodeGenCtx ctx; | 879 | npu::tile_fwk::CodeGenCtx ctx; |
| 880 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 880 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 881 | - codeGen.GenCode(*function, {}); | 881 | + codeGen.GenCode(*function); |
| 882 | } | 882 | } |
| 883 | 883 | ||
| 884 | void TestCodeGenDiv::test_div_046() | 884 | void TestCodeGenDiv::test_div_046() |
| @@ -897,7 +897,7 @@ void TestCodeGenDiv::test_div_046() | |||
| 897 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_046"); | 897 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_046"); |
| 898 | npu::tile_fwk::CodeGenCtx ctx; | 898 | npu::tile_fwk::CodeGenCtx ctx; |
| 899 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 899 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 900 | - codeGen.GenCode(*function, {}); | 900 | + codeGen.GenCode(*function); |
| 901 | } | 901 | } |
| 902 | 902 | ||
| 903 | void TestCodeGenDiv::test_div_047() | 903 | void TestCodeGenDiv::test_div_047() |
| @@ -916,7 +916,7 @@ void TestCodeGenDiv::test_div_047() | |||
| 916 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_047"); | 916 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_047"); |
| 917 | npu::tile_fwk::CodeGenCtx ctx; | 917 | npu::tile_fwk::CodeGenCtx ctx; |
| 918 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 918 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 919 | - codeGen.GenCode(*function, {}); | 919 | + codeGen.GenCode(*function); |
| 920 | } | 920 | } |
| 921 | 921 | ||
| 922 | void TestCodeGenDiv::test_div_048() | 922 | void TestCodeGenDiv::test_div_048() |
| @@ -935,5 +935,5 @@ void TestCodeGenDiv::test_div_048() | |||
| 935 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_048"); | 935 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "DIV_048"); |
| 936 | npu::tile_fwk::CodeGenCtx ctx; | 936 | npu::tile_fwk::CodeGenCtx ctx; |
| 937 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 937 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 938 | - codeGen.GenCode(*function, {}); | 938 | + codeGen.GenCode(*function); |
| 939 | } | 939 | } |
| @@ -42,7 +42,7 @@ void TestCodeGenExp::test_Exp_fp16_001() | |||
| 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_001"); | 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_001"); |
| 43 | npu::tile_fwk::CodeGenCtx ctx; | 43 | npu::tile_fwk::CodeGenCtx ctx; |
| 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 45 | - codeGen.GenCode(*function, {}); | 45 | + codeGen.GenCode(*function); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void TestCodeGenExp::test_Exp_fp16_002() | 48 | void TestCodeGenExp::test_Exp_fp16_002() |
| @@ -61,7 +61,7 @@ void TestCodeGenExp::test_Exp_fp16_002() | |||
| 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_002"); | 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_002"); |
| 62 | npu::tile_fwk::CodeGenCtx ctx; | 62 | npu::tile_fwk::CodeGenCtx ctx; |
| 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 64 | - codeGen.GenCode(*function, {}); | 64 | + codeGen.GenCode(*function); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void TestCodeGenExp::test_exp_fp32_003() | 67 | void TestCodeGenExp::test_exp_fp32_003() |
| @@ -80,7 +80,7 @@ void TestCodeGenExp::test_exp_fp32_003() | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_003"); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_003"); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void TestCodeGenExp::test_exp_fp32_004() | 86 | void TestCodeGenExp::test_exp_fp32_004() |
| @@ -99,7 +99,7 @@ void TestCodeGenExp::test_exp_fp32_004() | |||
| 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_004"); | 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_004"); |
| 100 | npu::tile_fwk::CodeGenCtx ctx; | 100 | npu::tile_fwk::CodeGenCtx ctx; |
| 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 102 | - codeGen.GenCode(*function, {}); | 102 | + codeGen.GenCode(*function); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void TestCodeGenExp::test_Exp_fp16_005() | 105 | void TestCodeGenExp::test_Exp_fp16_005() |
| @@ -118,7 +118,7 @@ void TestCodeGenExp::test_Exp_fp16_005() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_005"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_005"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenExp::test_exp_fp32_006() | 124 | void TestCodeGenExp::test_exp_fp32_006() |
| @@ -137,7 +137,7 @@ void TestCodeGenExp::test_exp_fp32_006() | |||
| 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_006"); | 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_006"); |
| 138 | npu::tile_fwk::CodeGenCtx ctx; | 138 | npu::tile_fwk::CodeGenCtx ctx; |
| 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 140 | - codeGen.GenCode(*function, {}); | 140 | + codeGen.GenCode(*function); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void TestCodeGenExp::test_Exp_fp16_007() | 143 | void TestCodeGenExp::test_Exp_fp16_007() |
| @@ -156,7 +156,7 @@ void TestCodeGenExp::test_Exp_fp16_007() | |||
| 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_007"); | 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_007"); |
| 157 | npu::tile_fwk::CodeGenCtx ctx; | 157 | npu::tile_fwk::CodeGenCtx ctx; |
| 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 159 | - codeGen.GenCode(*function, {}); | 159 | + codeGen.GenCode(*function); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | void TestCodeGenExp::test_exp_fp32_008() | 162 | void TestCodeGenExp::test_exp_fp32_008() |
| @@ -175,7 +175,7 @@ void TestCodeGenExp::test_exp_fp32_008() | |||
| 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_008"); | 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_008"); |
| 176 | npu::tile_fwk::CodeGenCtx ctx; | 176 | npu::tile_fwk::CodeGenCtx ctx; |
| 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 178 | - codeGen.GenCode(*function, {}); | 178 | + codeGen.GenCode(*function); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void TestCodeGenExp::test_Exp_fp16_009() | 181 | void TestCodeGenExp::test_Exp_fp16_009() |
| @@ -194,7 +194,7 @@ void TestCodeGenExp::test_Exp_fp16_009() | |||
| 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_009"); | 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_009"); |
| 195 | npu::tile_fwk::CodeGenCtx ctx; | 195 | npu::tile_fwk::CodeGenCtx ctx; |
| 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 197 | - codeGen.GenCode(*function, {}); | 197 | + codeGen.GenCode(*function); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void TestCodeGenExp::test_exp_fp32_010() | 200 | void TestCodeGenExp::test_exp_fp32_010() |
| @@ -213,7 +213,7 @@ void TestCodeGenExp::test_exp_fp32_010() | |||
| 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_010"); | 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_010"); |
| 214 | npu::tile_fwk::CodeGenCtx ctx; | 214 | npu::tile_fwk::CodeGenCtx ctx; |
| 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 216 | - codeGen.GenCode(*function, {}); | 216 | + codeGen.GenCode(*function); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void TestCodeGenExp::test_Exp_fp16_011() | 219 | void TestCodeGenExp::test_Exp_fp16_011() |
| @@ -232,7 +232,7 @@ void TestCodeGenExp::test_Exp_fp16_011() | |||
| 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_011"); | 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_011"); |
| 233 | npu::tile_fwk::CodeGenCtx ctx; | 233 | npu::tile_fwk::CodeGenCtx ctx; |
| 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 235 | - codeGen.GenCode(*function, {}); | 235 | + codeGen.GenCode(*function); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void TestCodeGenExp::test_exp_fp32_012() | 238 | void TestCodeGenExp::test_exp_fp32_012() |
| @@ -251,7 +251,7 @@ void TestCodeGenExp::test_exp_fp32_012() | |||
| 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_012"); | 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_012"); |
| 252 | npu::tile_fwk::CodeGenCtx ctx; | 252 | npu::tile_fwk::CodeGenCtx ctx; |
| 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 254 | - codeGen.GenCode(*function, {}); | 254 | + codeGen.GenCode(*function); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void TestCodeGenExp::test_Exp_fp16_013() | 257 | void TestCodeGenExp::test_Exp_fp16_013() |
| @@ -270,7 +270,7 @@ void TestCodeGenExp::test_Exp_fp16_013() | |||
| 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_013"); | 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_013"); |
| 271 | npu::tile_fwk::CodeGenCtx ctx; | 271 | npu::tile_fwk::CodeGenCtx ctx; |
| 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 273 | - codeGen.GenCode(*function, {}); | 273 | + codeGen.GenCode(*function); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void TestCodeGenExp::test_exp_fp32_014() | 276 | void TestCodeGenExp::test_exp_fp32_014() |
| @@ -289,7 +289,7 @@ void TestCodeGenExp::test_exp_fp32_014() | |||
| 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_014"); | 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp32_014"); |
| 290 | npu::tile_fwk::CodeGenCtx ctx; | 290 | npu::tile_fwk::CodeGenCtx ctx; |
| 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 292 | - codeGen.GenCode(*function, {}); | 292 | + codeGen.GenCode(*function); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void TestCodeGenExp::test_Exp_fp16_015() | 295 | void TestCodeGenExp::test_Exp_fp16_015() |
| @@ -308,5 +308,5 @@ void TestCodeGenExp::test_Exp_fp16_015() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_015"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "EXP_fp16_015"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| @@ -45,7 +45,7 @@ void TestCodeGenFull::test_full_001() | |||
| 45 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_001"); | 45 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_001"); |
| 46 | npu::tile_fwk::CodeGenCtx ctx; | 46 | npu::tile_fwk::CodeGenCtx ctx; |
| 47 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 47 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 48 | - codeGen.GenCode(*function, {}); | 48 | + codeGen.GenCode(*function); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | void TestCodeGenFull::test_full_002() | 51 | void TestCodeGenFull::test_full_002() |
| @@ -67,7 +67,7 @@ void TestCodeGenFull::test_full_002() | |||
| 67 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_002"); | 67 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_002"); |
| 68 | npu::tile_fwk::CodeGenCtx ctx; | 68 | npu::tile_fwk::CodeGenCtx ctx; |
| 69 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 69 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 70 | - codeGen.GenCode(*function, {}); | 70 | + codeGen.GenCode(*function); |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | void TestCodeGenFull::test_full_003() | 73 | void TestCodeGenFull::test_full_003() |
| @@ -89,7 +89,7 @@ void TestCodeGenFull::test_full_003() | |||
| 89 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_003"); | 89 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_003"); |
| 90 | npu::tile_fwk::CodeGenCtx ctx; | 90 | npu::tile_fwk::CodeGenCtx ctx; |
| 91 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 91 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 92 | - codeGen.GenCode(*function, {}); | 92 | + codeGen.GenCode(*function); |
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | void TestCodeGenFull::test_full_004() | 95 | void TestCodeGenFull::test_full_004() |
| @@ -111,7 +111,7 @@ void TestCodeGenFull::test_full_004() | |||
| 111 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_004"); | 111 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_004"); |
| 112 | npu::tile_fwk::CodeGenCtx ctx; | 112 | npu::tile_fwk::CodeGenCtx ctx; |
| 113 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 113 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 114 | - codeGen.GenCode(*function, {}); | 114 | + codeGen.GenCode(*function); |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | void TestCodeGenFull::test_full_005() | 117 | void TestCodeGenFull::test_full_005() |
| @@ -133,7 +133,7 @@ void TestCodeGenFull::test_full_005() | |||
| 133 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_005"); | 133 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_005"); |
| 134 | npu::tile_fwk::CodeGenCtx ctx; | 134 | npu::tile_fwk::CodeGenCtx ctx; |
| 135 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 135 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 136 | - codeGen.GenCode(*function, {}); | 136 | + codeGen.GenCode(*function); |
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | void TestCodeGenFull::test_full_006() | 139 | void TestCodeGenFull::test_full_006() |
| @@ -155,7 +155,7 @@ void TestCodeGenFull::test_full_006() | |||
| 155 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_006"); | 155 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_006"); |
| 156 | npu::tile_fwk::CodeGenCtx ctx; | 156 | npu::tile_fwk::CodeGenCtx ctx; |
| 157 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 157 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 158 | - codeGen.GenCode(*function, {}); | 158 | + codeGen.GenCode(*function); |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | void TestCodeGenFull::test_full_007() | 161 | void TestCodeGenFull::test_full_007() |
| @@ -177,7 +177,7 @@ void TestCodeGenFull::test_full_007() | |||
| 177 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_007"); | 177 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_007"); |
| 178 | npu::tile_fwk::CodeGenCtx ctx; | 178 | npu::tile_fwk::CodeGenCtx ctx; |
| 179 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 179 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 180 | - codeGen.GenCode(*function, {}); | 180 | + codeGen.GenCode(*function); |
| 181 | } | 181 | } |
| 182 | 182 | ||
| 183 | void TestCodeGenFull::test_full_008() | 183 | void TestCodeGenFull::test_full_008() |
| @@ -199,7 +199,7 @@ void TestCodeGenFull::test_full_008() | |||
| 199 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_008"); | 199 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_008"); |
| 200 | npu::tile_fwk::CodeGenCtx ctx; | 200 | npu::tile_fwk::CodeGenCtx ctx; |
| 201 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 201 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 202 | - codeGen.GenCode(*function, {}); | 202 | + codeGen.GenCode(*function); |
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | void TestCodeGenFull::test_full_009() | 205 | void TestCodeGenFull::test_full_009() |
| @@ -221,7 +221,7 @@ void TestCodeGenFull::test_full_009() | |||
| 221 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_009"); | 221 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_009"); |
| 222 | npu::tile_fwk::CodeGenCtx ctx; | 222 | npu::tile_fwk::CodeGenCtx ctx; |
| 223 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 223 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 224 | - codeGen.GenCode(*function, {}); | 224 | + codeGen.GenCode(*function); |
| 225 | } | 225 | } |
| 226 | 226 | ||
| 227 | void TestCodeGenFull::test_full_010() | 227 | void TestCodeGenFull::test_full_010() |
| @@ -243,7 +243,7 @@ void TestCodeGenFull::test_full_010() | |||
| 243 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_010"); | 243 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_010"); |
| 244 | npu::tile_fwk::CodeGenCtx ctx; | 244 | npu::tile_fwk::CodeGenCtx ctx; |
| 245 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 245 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 246 | - codeGen.GenCode(*function, {}); | 246 | + codeGen.GenCode(*function); |
| 247 | } | 247 | } |
| 248 | 248 | ||
| 249 | void TestCodeGenFull::test_full_011() | 249 | void TestCodeGenFull::test_full_011() |
| @@ -265,7 +265,7 @@ void TestCodeGenFull::test_full_011() | |||
| 265 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_011"); | 265 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_011"); |
| 266 | npu::tile_fwk::CodeGenCtx ctx; | 266 | npu::tile_fwk::CodeGenCtx ctx; |
| 267 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 267 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 268 | - codeGen.GenCode(*function, {}); | 268 | + codeGen.GenCode(*function); |
| 269 | } | 269 | } |
| 270 | 270 | ||
| 271 | void TestCodeGenFull::test_full_012() | 271 | void TestCodeGenFull::test_full_012() |
| @@ -287,7 +287,7 @@ void TestCodeGenFull::test_full_012() | |||
| 287 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_012"); | 287 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_012"); |
| 288 | npu::tile_fwk::CodeGenCtx ctx; | 288 | npu::tile_fwk::CodeGenCtx ctx; |
| 289 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 289 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 290 | - codeGen.GenCode(*function, {}); | 290 | + codeGen.GenCode(*function); |
| 291 | } | 291 | } |
| 292 | 292 | ||
| 293 | void TestCodeGenFull::test_full_013() | 293 | void TestCodeGenFull::test_full_013() |
| @@ -309,7 +309,7 @@ void TestCodeGenFull::test_full_013() | |||
| 309 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_013"); | 309 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_013"); |
| 310 | npu::tile_fwk::CodeGenCtx ctx; | 310 | npu::tile_fwk::CodeGenCtx ctx; |
| 311 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 311 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 312 | - codeGen.GenCode(*function, {}); | 312 | + codeGen.GenCode(*function); |
| 313 | } | 313 | } |
| 314 | 314 | ||
| 315 | void TestCodeGenFull::test_full_014() | 315 | void TestCodeGenFull::test_full_014() |
| @@ -331,7 +331,7 @@ void TestCodeGenFull::test_full_014() | |||
| 331 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_014"); | 331 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_014"); |
| 332 | npu::tile_fwk::CodeGenCtx ctx; | 332 | npu::tile_fwk::CodeGenCtx ctx; |
| 333 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 333 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 334 | - codeGen.GenCode(*function, {}); | 334 | + codeGen.GenCode(*function); |
| 335 | } | 335 | } |
| 336 | 336 | ||
| 337 | void TestCodeGenFull::test_full_015() | 337 | void TestCodeGenFull::test_full_015() |
| @@ -353,7 +353,7 @@ void TestCodeGenFull::test_full_015() | |||
| 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_015"); | 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_015"); |
| 354 | npu::tile_fwk::CodeGenCtx ctx; | 354 | npu::tile_fwk::CodeGenCtx ctx; |
| 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 356 | - codeGen.GenCode(*function, {}); | 356 | + codeGen.GenCode(*function); |
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | void TestCodeGenFull::test_full_016() | 359 | void TestCodeGenFull::test_full_016() |
| @@ -375,7 +375,7 @@ void TestCodeGenFull::test_full_016() | |||
| 375 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_016"); | 375 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_016"); |
| 376 | npu::tile_fwk::CodeGenCtx ctx; | 376 | npu::tile_fwk::CodeGenCtx ctx; |
| 377 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 377 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 378 | - codeGen.GenCode(*function, {}); | 378 | + codeGen.GenCode(*function); |
| 379 | } | 379 | } |
| 380 | 380 | ||
| 381 | void TestCodeGenFull::test_full_017() | 381 | void TestCodeGenFull::test_full_017() |
| @@ -397,7 +397,7 @@ void TestCodeGenFull::test_full_017() | |||
| 397 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_017"); | 397 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_017"); |
| 398 | npu::tile_fwk::CodeGenCtx ctx; | 398 | npu::tile_fwk::CodeGenCtx ctx; |
| 399 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 399 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 400 | - codeGen.GenCode(*function, {}); | 400 | + codeGen.GenCode(*function); |
| 401 | } | 401 | } |
| 402 | 402 | ||
| 403 | void TestCodeGenFull::test_full_018() | 403 | void TestCodeGenFull::test_full_018() |
| @@ -419,7 +419,7 @@ void TestCodeGenFull::test_full_018() | |||
| 419 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_018"); | 419 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_018"); |
| 420 | npu::tile_fwk::CodeGenCtx ctx; | 420 | npu::tile_fwk::CodeGenCtx ctx; |
| 421 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 421 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 422 | - codeGen.GenCode(*function, {}); | 422 | + codeGen.GenCode(*function); |
| 423 | } | 423 | } |
| 424 | 424 | ||
| 425 | void TestCodeGenFull::test_full_019() | 425 | void TestCodeGenFull::test_full_019() |
| @@ -441,5 +441,5 @@ void TestCodeGenFull::test_full_019() | |||
| 441 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_019"); | 441 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "FULL_019"); |
| 442 | npu::tile_fwk::CodeGenCtx ctx; | 442 | npu::tile_fwk::CodeGenCtx ctx; |
| 443 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 443 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 444 | - codeGen.GenCode(*function, {}); | 444 | + codeGen.GenCode(*function); |
| 445 | } | 445 | } |
| @@ -46,7 +46,7 @@ void TestCodeGenIndexPut::test_index_put_001() | |||
| 46 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_001"); | 46 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_001"); |
| 47 | npu::tile_fwk::CodeGenCtx ctx; | 47 | npu::tile_fwk::CodeGenCtx ctx; |
| 48 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 48 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 49 | - codeGen.GenCode(*function, {}); | 49 | + codeGen.GenCode(*function); |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | void TestCodeGenIndexPut::test_index_put_002() | 52 | void TestCodeGenIndexPut::test_index_put_002() |
| @@ -69,7 +69,7 @@ void TestCodeGenIndexPut::test_index_put_002() | |||
| 69 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_002"); | 69 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_002"); |
| 70 | npu::tile_fwk::CodeGenCtx ctx; | 70 | npu::tile_fwk::CodeGenCtx ctx; |
| 71 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 71 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 72 | - codeGen.GenCode(*function, {}); | 72 | + codeGen.GenCode(*function); |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | void TestCodeGenIndexPut::test_index_put_003() | 75 | void TestCodeGenIndexPut::test_index_put_003() |
| @@ -95,7 +95,7 @@ void TestCodeGenIndexPut::test_index_put_003() | |||
| 95 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_003"); | 95 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_003"); |
| 96 | npu::tile_fwk::CodeGenCtx ctx; | 96 | npu::tile_fwk::CodeGenCtx ctx; |
| 97 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 97 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 98 | - codeGen.GenCode(*function, {}); | 98 | + codeGen.GenCode(*function); |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | void TestCodeGenIndexPut::test_index_put_004() | 101 | void TestCodeGenIndexPut::test_index_put_004() |
| @@ -118,7 +118,7 @@ void TestCodeGenIndexPut::test_index_put_004() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_004"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_004"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenIndexPut::test_index_put_005() | 124 | void TestCodeGenIndexPut::test_index_put_005() |
| @@ -141,7 +141,7 @@ void TestCodeGenIndexPut::test_index_put_005() | |||
| 141 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_005"); | 141 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_005"); |
| 142 | npu::tile_fwk::CodeGenCtx ctx; | 142 | npu::tile_fwk::CodeGenCtx ctx; |
| 143 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 143 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 144 | - codeGen.GenCode(*function, {}); | 144 | + codeGen.GenCode(*function); |
| 145 | } | 145 | } |
| 146 | 146 | ||
| 147 | void TestCodeGenIndexPut::test_index_put_006() | 147 | void TestCodeGenIndexPut::test_index_put_006() |
| @@ -164,7 +164,7 @@ void TestCodeGenIndexPut::test_index_put_006() | |||
| 164 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_006"); | 164 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_006"); |
| 165 | npu::tile_fwk::CodeGenCtx ctx; | 165 | npu::tile_fwk::CodeGenCtx ctx; |
| 166 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 166 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 167 | - codeGen.GenCode(*function, {}); | 167 | + codeGen.GenCode(*function); |
| 168 | } | 168 | } |
| 169 | 169 | ||
| 170 | void TestCodeGenIndexPut::test_index_put_007() | 170 | void TestCodeGenIndexPut::test_index_put_007() |
| @@ -190,7 +190,7 @@ void TestCodeGenIndexPut::test_index_put_007() | |||
| 190 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_007"); | 190 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_007"); |
| 191 | npu::tile_fwk::CodeGenCtx ctx; | 191 | npu::tile_fwk::CodeGenCtx ctx; |
| 192 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 192 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 193 | - codeGen.GenCode(*function, {}); | 193 | + codeGen.GenCode(*function); |
| 194 | } | 194 | } |
| 195 | 195 | ||
| 196 | void TestCodeGenIndexPut::test_index_put_008() | 196 | void TestCodeGenIndexPut::test_index_put_008() |
| @@ -218,7 +218,7 @@ void TestCodeGenIndexPut::test_index_put_008() | |||
| 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_008"); | 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_008"); |
| 219 | npu::tile_fwk::CodeGenCtx ctx; | 219 | npu::tile_fwk::CodeGenCtx ctx; |
| 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 221 | - codeGen.GenCode(*function, {}); | 221 | + codeGen.GenCode(*function); |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | void TestCodeGenIndexPut::test_index_put_009() | 224 | void TestCodeGenIndexPut::test_index_put_009() |
| @@ -241,7 +241,7 @@ void TestCodeGenIndexPut::test_index_put_009() | |||
| 241 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_009"); | 241 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_009"); |
| 242 | npu::tile_fwk::CodeGenCtx ctx; | 242 | npu::tile_fwk::CodeGenCtx ctx; |
| 243 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 243 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 244 | - codeGen.GenCode(*function, {}); | 244 | + codeGen.GenCode(*function); |
| 245 | } | 245 | } |
| 246 | 246 | ||
| 247 | void TestCodeGenIndexPut::test_index_put_010() | 247 | void TestCodeGenIndexPut::test_index_put_010() |
| @@ -267,7 +267,7 @@ void TestCodeGenIndexPut::test_index_put_010() | |||
| 267 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_010"); | 267 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_010"); |
| 268 | npu::tile_fwk::CodeGenCtx ctx; | 268 | npu::tile_fwk::CodeGenCtx ctx; |
| 269 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 269 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 270 | - codeGen.GenCode(*function, {}); | 270 | + codeGen.GenCode(*function); |
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | void TestCodeGenIndexPut::test_index_put_011() | 273 | void TestCodeGenIndexPut::test_index_put_011() |
| @@ -295,7 +295,7 @@ void TestCodeGenIndexPut::test_index_put_011() | |||
| 295 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_011"); | 295 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_011"); |
| 296 | npu::tile_fwk::CodeGenCtx ctx; | 296 | npu::tile_fwk::CodeGenCtx ctx; |
| 297 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 297 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 298 | - codeGen.GenCode(*function, {}); | 298 | + codeGen.GenCode(*function); |
| 299 | } | 299 | } |
| 300 | 300 | ||
| 301 | void TestCodeGenIndexPut::test_index_put_012() | 301 | void TestCodeGenIndexPut::test_index_put_012() |
| @@ -325,5 +325,5 @@ void TestCodeGenIndexPut::test_index_put_012() | |||
| 325 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_012"); | 325 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "INDEX_PUT_012"); |
| 326 | npu::tile_fwk::CodeGenCtx ctx; | 326 | npu::tile_fwk::CodeGenCtx ctx; |
| 327 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 327 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 328 | - codeGen.GenCode(*function, {}); | 328 | + codeGen.GenCode(*function); |
| 329 | } | 329 | } |
| @@ -43,7 +43,7 @@ void TestCodeGenMatmul::test_matmul_001() | |||
| 43 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_001"); | 43 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_001"); |
| 44 | npu::tile_fwk::CodeGenCtx ctx; | 44 | npu::tile_fwk::CodeGenCtx ctx; |
| 45 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 45 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 46 | - codeGen.GenCode(*function, {}); | 46 | + codeGen.GenCode(*function); |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | void TestCodeGenMatmul::test_matmul_002() | 49 | void TestCodeGenMatmul::test_matmul_002() |
| @@ -66,7 +66,7 @@ void TestCodeGenMatmul::test_matmul_002() | |||
| 66 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_002"); | 66 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_002"); |
| 67 | npu::tile_fwk::CodeGenCtx ctx; | 67 | npu::tile_fwk::CodeGenCtx ctx; |
| 68 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 68 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 69 | - codeGen.GenCode(*function, {}); | 69 | + codeGen.GenCode(*function); |
| 70 | } | 70 | } |
| 71 | 71 | ||
| 72 | void TestCodeGenMatmul::test_matmul_003() | 72 | void TestCodeGenMatmul::test_matmul_003() |
| @@ -86,7 +86,7 @@ void TestCodeGenMatmul::test_matmul_003() | |||
| 86 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_003"); | 86 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_003"); |
| 87 | npu::tile_fwk::CodeGenCtx ctx; | 87 | npu::tile_fwk::CodeGenCtx ctx; |
| 88 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 88 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 89 | - codeGen.GenCode(*function, {}); | 89 | + codeGen.GenCode(*function); |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | void TestCodeGenMatmul::test_matmul_004() | 92 | void TestCodeGenMatmul::test_matmul_004() |
| @@ -109,7 +109,7 @@ void TestCodeGenMatmul::test_matmul_004() | |||
| 109 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_004"); | 109 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_004"); |
| 110 | npu::tile_fwk::CodeGenCtx ctx; | 110 | npu::tile_fwk::CodeGenCtx ctx; |
| 111 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 111 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 112 | - codeGen.GenCode(*function, {}); | 112 | + codeGen.GenCode(*function); |
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | void TestCodeGenMatmul::test_matmul_005() | 115 | void TestCodeGenMatmul::test_matmul_005() |
| @@ -129,7 +129,7 @@ void TestCodeGenMatmul::test_matmul_005() | |||
| 129 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_005"); | 129 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_005"); |
| 130 | npu::tile_fwk::CodeGenCtx ctx; | 130 | npu::tile_fwk::CodeGenCtx ctx; |
| 131 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 131 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 132 | - codeGen.GenCode(*function, {}); | 132 | + codeGen.GenCode(*function); |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | void TestCodeGenMatmul::test_matmul_006() | 135 | void TestCodeGenMatmul::test_matmul_006() |
| @@ -150,7 +150,7 @@ void TestCodeGenMatmul::test_matmul_006() | |||
| 150 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_006"); | 150 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_006"); |
| 151 | npu::tile_fwk::CodeGenCtx ctx; | 151 | npu::tile_fwk::CodeGenCtx ctx; |
| 152 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 152 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 153 | - codeGen.GenCode(*function, {}); | 153 | + codeGen.GenCode(*function); |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | void TestCodeGenMatmul::test_matmul_007() | 156 | void TestCodeGenMatmul::test_matmul_007() |
| @@ -170,7 +170,7 @@ void TestCodeGenMatmul::test_matmul_007() | |||
| 170 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_007"); | 170 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_007"); |
| 171 | npu::tile_fwk::CodeGenCtx ctx; | 171 | npu::tile_fwk::CodeGenCtx ctx; |
| 172 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 172 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 173 | - codeGen.GenCode(*function, {}); | 173 | + codeGen.GenCode(*function); |
| 174 | } | 174 | } |
| 175 | 175 | ||
| 176 | void TestCodeGenMatmul::test_matmul_008() | 176 | void TestCodeGenMatmul::test_matmul_008() |
| @@ -190,7 +190,7 @@ void TestCodeGenMatmul::test_matmul_008() | |||
| 190 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_008"); | 190 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_008"); |
| 191 | npu::tile_fwk::CodeGenCtx ctx; | 191 | npu::tile_fwk::CodeGenCtx ctx; |
| 192 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 192 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 193 | - codeGen.GenCode(*function, {}); | 193 | + codeGen.GenCode(*function); |
| 194 | } | 194 | } |
| 195 | 195 | ||
| 196 | void TestCodeGenMatmul::test_matmul_009() | 196 | void TestCodeGenMatmul::test_matmul_009() |
| @@ -210,7 +210,7 @@ void TestCodeGenMatmul::test_matmul_009() | |||
| 210 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_009"); | 210 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_009"); |
| 211 | npu::tile_fwk::CodeGenCtx ctx; | 211 | npu::tile_fwk::CodeGenCtx ctx; |
| 212 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 212 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 213 | - codeGen.GenCode(*function, {}); | 213 | + codeGen.GenCode(*function); |
| 214 | } | 214 | } |
| 215 | 215 | ||
| 216 | void TestCodeGenMatmul::test_matmul_010() | 216 | void TestCodeGenMatmul::test_matmul_010() |
| @@ -230,7 +230,7 @@ void TestCodeGenMatmul::test_matmul_010() | |||
| 230 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_010"); | 230 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_010"); |
| 231 | npu::tile_fwk::CodeGenCtx ctx; | 231 | npu::tile_fwk::CodeGenCtx ctx; |
| 232 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 232 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 233 | - codeGen.GenCode(*function, {}); | 233 | + codeGen.GenCode(*function); |
| 234 | } | 234 | } |
| 235 | 235 | ||
| 236 | void TestCodeGenMatmul::test_matmul_s8s8_001() | 236 | void TestCodeGenMatmul::test_matmul_s8s8_001() |
| @@ -250,7 +250,7 @@ void TestCodeGenMatmul::test_matmul_s8s8_001() | |||
| 250 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_S8S8_001"); | 250 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_S8S8_001"); |
| 251 | npu::tile_fwk::CodeGenCtx ctx; | 251 | npu::tile_fwk::CodeGenCtx ctx; |
| 252 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 252 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 253 | - codeGen.GenCode(*function, {}); | 253 | + codeGen.GenCode(*function); |
| 254 | } | 254 | } |
| 255 | 255 | ||
| 256 | void TestCodeGenMatmul::test_matmul_s8s8_002() | 256 | void TestCodeGenMatmul::test_matmul_s8s8_002() |
| @@ -273,7 +273,7 @@ void TestCodeGenMatmul::test_matmul_s8s8_002() | |||
| 273 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_S8S8_002"); | 273 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_S8S8_002"); |
| 274 | npu::tile_fwk::CodeGenCtx ctx; | 274 | npu::tile_fwk::CodeGenCtx ctx; |
| 275 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 275 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 276 | - codeGen.GenCode(*function, {}); | 276 | + codeGen.GenCode(*function); |
| 277 | } | 277 | } |
| 278 | 278 | ||
| 279 | void TestCodeGenMatmul::test_matmul_s8s8_003() | 279 | void TestCodeGenMatmul::test_matmul_s8s8_003() |
| @@ -293,7 +293,7 @@ void TestCodeGenMatmul::test_matmul_s8s8_003() | |||
| 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_S8S8_003"); | 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_S8S8_003"); |
| 294 | npu::tile_fwk::CodeGenCtx ctx; | 294 | npu::tile_fwk::CodeGenCtx ctx; |
| 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 296 | - codeGen.GenCode(*function, {}); | 296 | + codeGen.GenCode(*function); |
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | void TestCodeGenMatmul::test_matmul_s8s8_004() | 299 | void TestCodeGenMatmul::test_matmul_s8s8_004() |
| @@ -313,5 +313,5 @@ void TestCodeGenMatmul::test_matmul_s8s8_004() | |||
| 313 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_S8S8_004"); | 313 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MATMUL_S8S8_004"); |
| 314 | npu::tile_fwk::CodeGenCtx ctx; | 314 | npu::tile_fwk::CodeGenCtx ctx; |
| 315 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 315 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 316 | - codeGen.GenCode(*function, {}); | 316 | + codeGen.GenCode(*function); |
| 317 | } | 317 | } |
| @@ -39,7 +39,7 @@ void TestCodeGenMaximum::test_maximum_int16_001() | |||
| 39 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_001"); | 39 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_001"); |
| 40 | npu::tile_fwk::CodeGenCtx ctx; | 40 | npu::tile_fwk::CodeGenCtx ctx; |
| 41 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 41 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 42 | - codeGen.GenCode(*function, {}); | 42 | + codeGen.GenCode(*function); |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | void TestCodeGenMaximum::test_maximum_int16_002() | 45 | void TestCodeGenMaximum::test_maximum_int16_002() |
| @@ -55,7 +55,7 @@ void TestCodeGenMaximum::test_maximum_int16_002() | |||
| 55 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_002"); | 55 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_002"); |
| 56 | npu::tile_fwk::CodeGenCtx ctx; | 56 | npu::tile_fwk::CodeGenCtx ctx; |
| 57 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 57 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 58 | - codeGen.GenCode(*function, {}); | 58 | + codeGen.GenCode(*function); |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | void TestCodeGenMaximum::test_maximum_int16_003() | 61 | void TestCodeGenMaximum::test_maximum_int16_003() |
| @@ -71,7 +71,7 @@ void TestCodeGenMaximum::test_maximum_int16_003() | |||
| 71 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_003"); | 71 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_003"); |
| 72 | npu::tile_fwk::CodeGenCtx ctx; | 72 | npu::tile_fwk::CodeGenCtx ctx; |
| 73 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 73 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 74 | - codeGen.GenCode(*function, {}); | 74 | + codeGen.GenCode(*function); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | void TestCodeGenMaximum::test_maximum_int16_004() | 77 | void TestCodeGenMaximum::test_maximum_int16_004() |
| @@ -87,7 +87,7 @@ void TestCodeGenMaximum::test_maximum_int16_004() | |||
| 87 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_004"); | 87 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_004"); |
| 88 | npu::tile_fwk::CodeGenCtx ctx; | 88 | npu::tile_fwk::CodeGenCtx ctx; |
| 89 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 89 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 90 | - codeGen.GenCode(*function, {}); | 90 | + codeGen.GenCode(*function); |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | void TestCodeGenMaximum::test_maximum_int16_005() | 93 | void TestCodeGenMaximum::test_maximum_int16_005() |
| @@ -103,7 +103,7 @@ void TestCodeGenMaximum::test_maximum_int16_005() | |||
| 103 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_005"); | 103 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_005"); |
| 104 | npu::tile_fwk::CodeGenCtx ctx; | 104 | npu::tile_fwk::CodeGenCtx ctx; |
| 105 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 105 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 106 | - codeGen.GenCode(*function, {}); | 106 | + codeGen.GenCode(*function); |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | void TestCodeGenMaximum::test_maximum_int16_006() | 109 | void TestCodeGenMaximum::test_maximum_int16_006() |
| @@ -119,7 +119,7 @@ void TestCodeGenMaximum::test_maximum_int16_006() | |||
| 119 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_006"); | 119 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_006"); |
| 120 | npu::tile_fwk::CodeGenCtx ctx; | 120 | npu::tile_fwk::CodeGenCtx ctx; |
| 121 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 121 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 122 | - codeGen.GenCode(*function, {}); | 122 | + codeGen.GenCode(*function); |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | void TestCodeGenMaximum::test_maximum_int16_007() | 125 | void TestCodeGenMaximum::test_maximum_int16_007() |
| @@ -135,7 +135,7 @@ void TestCodeGenMaximum::test_maximum_int16_007() | |||
| 135 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_007"); | 135 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_007"); |
| 136 | npu::tile_fwk::CodeGenCtx ctx; | 136 | npu::tile_fwk::CodeGenCtx ctx; |
| 137 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 137 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 138 | - codeGen.GenCode(*function, {}); | 138 | + codeGen.GenCode(*function); |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | void TestCodeGenMaximum::test_maximum_int16_008() | 141 | void TestCodeGenMaximum::test_maximum_int16_008() |
| @@ -151,7 +151,7 @@ void TestCodeGenMaximum::test_maximum_int16_008() | |||
| 151 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_008"); | 151 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_008"); |
| 152 | npu::tile_fwk::CodeGenCtx ctx; | 152 | npu::tile_fwk::CodeGenCtx ctx; |
| 153 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 153 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 154 | - codeGen.GenCode(*function, {}); | 154 | + codeGen.GenCode(*function); |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | void TestCodeGenMaximum::test_maximum_int16_009() | 157 | void TestCodeGenMaximum::test_maximum_int16_009() |
| @@ -167,7 +167,7 @@ void TestCodeGenMaximum::test_maximum_int16_009() | |||
| 167 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_009"); | 167 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_009"); |
| 168 | npu::tile_fwk::CodeGenCtx ctx; | 168 | npu::tile_fwk::CodeGenCtx ctx; |
| 169 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 169 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 170 | - codeGen.GenCode(*function, {}); | 170 | + codeGen.GenCode(*function); |
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | void TestCodeGenMaximum::test_maximum_int16_010() | 173 | void TestCodeGenMaximum::test_maximum_int16_010() |
| @@ -183,7 +183,7 @@ void TestCodeGenMaximum::test_maximum_int16_010() | |||
| 183 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_010"); | 183 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT16_010"); |
| 184 | npu::tile_fwk::CodeGenCtx ctx; | 184 | npu::tile_fwk::CodeGenCtx ctx; |
| 185 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 185 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 186 | - codeGen.GenCode(*function, {}); | 186 | + codeGen.GenCode(*function); |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | void TestCodeGenMaximum::test_maximum_int32_001() | 189 | void TestCodeGenMaximum::test_maximum_int32_001() |
| @@ -199,7 +199,7 @@ void TestCodeGenMaximum::test_maximum_int32_001() | |||
| 199 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_001"); | 199 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_001"); |
| 200 | npu::tile_fwk::CodeGenCtx ctx; | 200 | npu::tile_fwk::CodeGenCtx ctx; |
| 201 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 201 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 202 | - codeGen.GenCode(*function, {}); | 202 | + codeGen.GenCode(*function); |
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | void TestCodeGenMaximum::test_maximum_int32_002() | 205 | void TestCodeGenMaximum::test_maximum_int32_002() |
| @@ -215,7 +215,7 @@ void TestCodeGenMaximum::test_maximum_int32_002() | |||
| 215 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_002"); | 215 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_002"); |
| 216 | npu::tile_fwk::CodeGenCtx ctx; | 216 | npu::tile_fwk::CodeGenCtx ctx; |
| 217 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 217 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 218 | - codeGen.GenCode(*function, {}); | 218 | + codeGen.GenCode(*function); |
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | void TestCodeGenMaximum::test_maximum_int32_003() | 221 | void TestCodeGenMaximum::test_maximum_int32_003() |
| @@ -231,7 +231,7 @@ void TestCodeGenMaximum::test_maximum_int32_003() | |||
| 231 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_003"); | 231 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_003"); |
| 232 | npu::tile_fwk::CodeGenCtx ctx; | 232 | npu::tile_fwk::CodeGenCtx ctx; |
| 233 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 233 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 234 | - codeGen.GenCode(*function, {}); | 234 | + codeGen.GenCode(*function); |
| 235 | } | 235 | } |
| 236 | 236 | ||
| 237 | void TestCodeGenMaximum::test_maximum_int32_004() | 237 | void TestCodeGenMaximum::test_maximum_int32_004() |
| @@ -247,7 +247,7 @@ void TestCodeGenMaximum::test_maximum_int32_004() | |||
| 247 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_004"); | 247 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_004"); |
| 248 | npu::tile_fwk::CodeGenCtx ctx; | 248 | npu::tile_fwk::CodeGenCtx ctx; |
| 249 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 249 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 250 | - codeGen.GenCode(*function, {}); | 250 | + codeGen.GenCode(*function); |
| 251 | } | 251 | } |
| 252 | 252 | ||
| 253 | void TestCodeGenMaximum::test_maximum_int32_005() | 253 | void TestCodeGenMaximum::test_maximum_int32_005() |
| @@ -263,7 +263,7 @@ void TestCodeGenMaximum::test_maximum_int32_005() | |||
| 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_005"); | 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_005"); |
| 264 | npu::tile_fwk::CodeGenCtx ctx; | 264 | npu::tile_fwk::CodeGenCtx ctx; |
| 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 266 | - codeGen.GenCode(*function, {}); | 266 | + codeGen.GenCode(*function); |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | void TestCodeGenMaximum::test_maximum_int32_006() | 269 | void TestCodeGenMaximum::test_maximum_int32_006() |
| @@ -279,7 +279,7 @@ void TestCodeGenMaximum::test_maximum_int32_006() | |||
| 279 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_006"); | 279 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_006"); |
| 280 | npu::tile_fwk::CodeGenCtx ctx; | 280 | npu::tile_fwk::CodeGenCtx ctx; |
| 281 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 281 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 282 | - codeGen.GenCode(*function, {}); | 282 | + codeGen.GenCode(*function); |
| 283 | } | 283 | } |
| 284 | 284 | ||
| 285 | void TestCodeGenMaximum::test_maximum_int32_007() | 285 | void TestCodeGenMaximum::test_maximum_int32_007() |
| @@ -295,7 +295,7 @@ void TestCodeGenMaximum::test_maximum_int32_007() | |||
| 295 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_007"); | 295 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_007"); |
| 296 | npu::tile_fwk::CodeGenCtx ctx; | 296 | npu::tile_fwk::CodeGenCtx ctx; |
| 297 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 297 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 298 | - codeGen.GenCode(*function, {}); | 298 | + codeGen.GenCode(*function); |
| 299 | } | 299 | } |
| 300 | 300 | ||
| 301 | void TestCodeGenMaximum::test_maximum_int32_008() | 301 | void TestCodeGenMaximum::test_maximum_int32_008() |
| @@ -311,7 +311,7 @@ void TestCodeGenMaximum::test_maximum_int32_008() | |||
| 311 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_008"); | 311 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_008"); |
| 312 | npu::tile_fwk::CodeGenCtx ctx; | 312 | npu::tile_fwk::CodeGenCtx ctx; |
| 313 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 313 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 314 | - codeGen.GenCode(*function, {}); | 314 | + codeGen.GenCode(*function); |
| 315 | } | 315 | } |
| 316 | 316 | ||
| 317 | void TestCodeGenMaximum::test_maximum_int32_009() | 317 | void TestCodeGenMaximum::test_maximum_int32_009() |
| @@ -327,7 +327,7 @@ void TestCodeGenMaximum::test_maximum_int32_009() | |||
| 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_009"); | 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_009"); |
| 328 | npu::tile_fwk::CodeGenCtx ctx; | 328 | npu::tile_fwk::CodeGenCtx ctx; |
| 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 330 | - codeGen.GenCode(*function, {}); | 330 | + codeGen.GenCode(*function); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | void TestCodeGenMaximum::test_maximum_int32_010() | 333 | void TestCodeGenMaximum::test_maximum_int32_010() |
| @@ -343,7 +343,7 @@ void TestCodeGenMaximum::test_maximum_int32_010() | |||
| 343 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_010"); | 343 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_INT32_010"); |
| 344 | npu::tile_fwk::CodeGenCtx ctx; | 344 | npu::tile_fwk::CodeGenCtx ctx; |
| 345 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 345 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 346 | - codeGen.GenCode(*function, {}); | 346 | + codeGen.GenCode(*function); |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | void TestCodeGenMaximum::test_maximum_fp16_001() | 349 | void TestCodeGenMaximum::test_maximum_fp16_001() |
| @@ -359,7 +359,7 @@ void TestCodeGenMaximum::test_maximum_fp16_001() | |||
| 359 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_001"); | 359 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_001"); |
| 360 | npu::tile_fwk::CodeGenCtx ctx; | 360 | npu::tile_fwk::CodeGenCtx ctx; |
| 361 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 361 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 362 | - codeGen.GenCode(*function, {}); | 362 | + codeGen.GenCode(*function); |
| 363 | } | 363 | } |
| 364 | 364 | ||
| 365 | void TestCodeGenMaximum::test_maximum_fp16_002() | 365 | void TestCodeGenMaximum::test_maximum_fp16_002() |
| @@ -375,7 +375,7 @@ void TestCodeGenMaximum::test_maximum_fp16_002() | |||
| 375 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_002"); | 375 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_002"); |
| 376 | npu::tile_fwk::CodeGenCtx ctx; | 376 | npu::tile_fwk::CodeGenCtx ctx; |
| 377 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 377 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 378 | - codeGen.GenCode(*function, {}); | 378 | + codeGen.GenCode(*function); |
| 379 | } | 379 | } |
| 380 | 380 | ||
| 381 | void TestCodeGenMaximum::test_maximum_fp16_003() | 381 | void TestCodeGenMaximum::test_maximum_fp16_003() |
| @@ -391,7 +391,7 @@ void TestCodeGenMaximum::test_maximum_fp16_003() | |||
| 391 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_003"); | 391 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_003"); |
| 392 | npu::tile_fwk::CodeGenCtx ctx; | 392 | npu::tile_fwk::CodeGenCtx ctx; |
| 393 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 393 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 394 | - codeGen.GenCode(*function, {}); | 394 | + codeGen.GenCode(*function); |
| 395 | } | 395 | } |
| 396 | 396 | ||
| 397 | void TestCodeGenMaximum::test_maximum_fp16_004() | 397 | void TestCodeGenMaximum::test_maximum_fp16_004() |
| @@ -407,7 +407,7 @@ void TestCodeGenMaximum::test_maximum_fp16_004() | |||
| 407 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_004"); | 407 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_004"); |
| 408 | npu::tile_fwk::CodeGenCtx ctx; | 408 | npu::tile_fwk::CodeGenCtx ctx; |
| 409 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 409 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 410 | - codeGen.GenCode(*function, {}); | 410 | + codeGen.GenCode(*function); |
| 411 | } | 411 | } |
| 412 | 412 | ||
| 413 | void TestCodeGenMaximum::test_maximum_fp16_005() | 413 | void TestCodeGenMaximum::test_maximum_fp16_005() |
| @@ -423,7 +423,7 @@ void TestCodeGenMaximum::test_maximum_fp16_005() | |||
| 423 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_005"); | 423 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_005"); |
| 424 | npu::tile_fwk::CodeGenCtx ctx; | 424 | npu::tile_fwk::CodeGenCtx ctx; |
| 425 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 425 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 426 | - codeGen.GenCode(*function, {}); | 426 | + codeGen.GenCode(*function); |
| 427 | } | 427 | } |
| 428 | 428 | ||
| 429 | void TestCodeGenMaximum::test_maximum_fp16_006() | 429 | void TestCodeGenMaximum::test_maximum_fp16_006() |
| @@ -439,7 +439,7 @@ void TestCodeGenMaximum::test_maximum_fp16_006() | |||
| 439 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_006"); | 439 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_006"); |
| 440 | npu::tile_fwk::CodeGenCtx ctx; | 440 | npu::tile_fwk::CodeGenCtx ctx; |
| 441 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 441 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 442 | - codeGen.GenCode(*function, {}); | 442 | + codeGen.GenCode(*function); |
| 443 | } | 443 | } |
| 444 | 444 | ||
| 445 | void TestCodeGenMaximum::test_maximum_fp16_007() | 445 | void TestCodeGenMaximum::test_maximum_fp16_007() |
| @@ -455,7 +455,7 @@ void TestCodeGenMaximum::test_maximum_fp16_007() | |||
| 455 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_007"); | 455 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_007"); |
| 456 | npu::tile_fwk::CodeGenCtx ctx; | 456 | npu::tile_fwk::CodeGenCtx ctx; |
| 457 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 457 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 458 | - codeGen.GenCode(*function, {}); | 458 | + codeGen.GenCode(*function); |
| 459 | } | 459 | } |
| 460 | 460 | ||
| 461 | void TestCodeGenMaximum::test_maximum_fp16_008() | 461 | void TestCodeGenMaximum::test_maximum_fp16_008() |
| @@ -471,7 +471,7 @@ void TestCodeGenMaximum::test_maximum_fp16_008() | |||
| 471 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_008"); | 471 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_008"); |
| 472 | npu::tile_fwk::CodeGenCtx ctx; | 472 | npu::tile_fwk::CodeGenCtx ctx; |
| 473 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 473 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 474 | - codeGen.GenCode(*function, {}); | 474 | + codeGen.GenCode(*function); |
| 475 | } | 475 | } |
| 476 | 476 | ||
| 477 | void TestCodeGenMaximum::test_maximum_fp16_009() | 477 | void TestCodeGenMaximum::test_maximum_fp16_009() |
| @@ -487,7 +487,7 @@ void TestCodeGenMaximum::test_maximum_fp16_009() | |||
| 487 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_009"); | 487 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_009"); |
| 488 | npu::tile_fwk::CodeGenCtx ctx; | 488 | npu::tile_fwk::CodeGenCtx ctx; |
| 489 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 489 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 490 | - codeGen.GenCode(*function, {}); | 490 | + codeGen.GenCode(*function); |
| 491 | } | 491 | } |
| 492 | 492 | ||
| 493 | void TestCodeGenMaximum::test_maximum_fp16_010() | 493 | void TestCodeGenMaximum::test_maximum_fp16_010() |
| @@ -503,7 +503,7 @@ void TestCodeGenMaximum::test_maximum_fp16_010() | |||
| 503 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_010"); | 503 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_010"); |
| 504 | npu::tile_fwk::CodeGenCtx ctx; | 504 | npu::tile_fwk::CodeGenCtx ctx; |
| 505 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 505 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 506 | - codeGen.GenCode(*function, {}); | 506 | + codeGen.GenCode(*function); |
| 507 | } | 507 | } |
| 508 | 508 | ||
| 509 | void TestCodeGenMaximum::test_maximum_fp16_011() | 509 | void TestCodeGenMaximum::test_maximum_fp16_011() |
| @@ -519,7 +519,7 @@ void TestCodeGenMaximum::test_maximum_fp16_011() | |||
| 519 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_011"); | 519 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_011"); |
| 520 | npu::tile_fwk::CodeGenCtx ctx; | 520 | npu::tile_fwk::CodeGenCtx ctx; |
| 521 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 521 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 522 | - codeGen.GenCode(*function, {}); | 522 | + codeGen.GenCode(*function); |
| 523 | } | 523 | } |
| 524 | 524 | ||
| 525 | void TestCodeGenMaximum::test_maximum_fp16_012() | 525 | void TestCodeGenMaximum::test_maximum_fp16_012() |
| @@ -535,7 +535,7 @@ void TestCodeGenMaximum::test_maximum_fp16_012() | |||
| 535 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_012"); | 535 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_012"); |
| 536 | npu::tile_fwk::CodeGenCtx ctx; | 536 | npu::tile_fwk::CodeGenCtx ctx; |
| 537 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 537 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 538 | - codeGen.GenCode(*function, {}); | 538 | + codeGen.GenCode(*function); |
| 539 | } | 539 | } |
| 540 | 540 | ||
| 541 | void TestCodeGenMaximum::test_maximum_fp16_013() | 541 | void TestCodeGenMaximum::test_maximum_fp16_013() |
| @@ -551,7 +551,7 @@ void TestCodeGenMaximum::test_maximum_fp16_013() | |||
| 551 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_013"); | 551 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_013"); |
| 552 | npu::tile_fwk::CodeGenCtx ctx; | 552 | npu::tile_fwk::CodeGenCtx ctx; |
| 553 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 553 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 554 | - codeGen.GenCode(*function, {}); | 554 | + codeGen.GenCode(*function); |
| 555 | } | 555 | } |
| 556 | 556 | ||
| 557 | void TestCodeGenMaximum::test_maximum_fp16_014() | 557 | void TestCodeGenMaximum::test_maximum_fp16_014() |
| @@ -567,7 +567,7 @@ void TestCodeGenMaximum::test_maximum_fp16_014() | |||
| 567 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_014"); | 567 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_014"); |
| 568 | npu::tile_fwk::CodeGenCtx ctx; | 568 | npu::tile_fwk::CodeGenCtx ctx; |
| 569 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 569 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 570 | - codeGen.GenCode(*function, {}); | 570 | + codeGen.GenCode(*function); |
| 571 | } | 571 | } |
| 572 | 572 | ||
| 573 | void TestCodeGenMaximum::test_maximum_fp16_015() | 573 | void TestCodeGenMaximum::test_maximum_fp16_015() |
| @@ -583,7 +583,7 @@ void TestCodeGenMaximum::test_maximum_fp16_015() | |||
| 583 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_015"); | 583 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_015"); |
| 584 | npu::tile_fwk::CodeGenCtx ctx; | 584 | npu::tile_fwk::CodeGenCtx ctx; |
| 585 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 585 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 586 | - codeGen.GenCode(*function, {}); | 586 | + codeGen.GenCode(*function); |
| 587 | } | 587 | } |
| 588 | 588 | ||
| 589 | void TestCodeGenMaximum::test_maximum_fp16_016() | 589 | void TestCodeGenMaximum::test_maximum_fp16_016() |
| @@ -599,7 +599,7 @@ void TestCodeGenMaximum::test_maximum_fp16_016() | |||
| 599 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_016"); | 599 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_016"); |
| 600 | npu::tile_fwk::CodeGenCtx ctx; | 600 | npu::tile_fwk::CodeGenCtx ctx; |
| 601 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 601 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 602 | - codeGen.GenCode(*function, {}); | 602 | + codeGen.GenCode(*function); |
| 603 | } | 603 | } |
| 604 | 604 | ||
| 605 | void TestCodeGenMaximum::test_maximum_fp16_017() | 605 | void TestCodeGenMaximum::test_maximum_fp16_017() |
| @@ -615,7 +615,7 @@ void TestCodeGenMaximum::test_maximum_fp16_017() | |||
| 615 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_017"); | 615 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_017"); |
| 616 | npu::tile_fwk::CodeGenCtx ctx; | 616 | npu::tile_fwk::CodeGenCtx ctx; |
| 617 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 617 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 618 | - codeGen.GenCode(*function, {}); | 618 | + codeGen.GenCode(*function); |
| 619 | } | 619 | } |
| 620 | 620 | ||
| 621 | void TestCodeGenMaximum::test_maximum_fp16_018() | 621 | void TestCodeGenMaximum::test_maximum_fp16_018() |
| @@ -631,7 +631,7 @@ void TestCodeGenMaximum::test_maximum_fp16_018() | |||
| 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_018"); | 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP16_018"); |
| 632 | npu::tile_fwk::CodeGenCtx ctx; | 632 | npu::tile_fwk::CodeGenCtx ctx; |
| 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 634 | - codeGen.GenCode(*function, {}); | 634 | + codeGen.GenCode(*function); |
| 635 | } | 635 | } |
| 636 | 636 | ||
| 637 | void TestCodeGenMaximum::test_maximum_fp32_001() | 637 | void TestCodeGenMaximum::test_maximum_fp32_001() |
| @@ -647,7 +647,7 @@ void TestCodeGenMaximum::test_maximum_fp32_001() | |||
| 647 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_001"); | 647 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_001"); |
| 648 | npu::tile_fwk::CodeGenCtx ctx; | 648 | npu::tile_fwk::CodeGenCtx ctx; |
| 649 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 649 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 650 | - codeGen.GenCode(*function, {}); | 650 | + codeGen.GenCode(*function); |
| 651 | } | 651 | } |
| 652 | 652 | ||
| 653 | void TestCodeGenMaximum::test_maximum_fp32_002() | 653 | void TestCodeGenMaximum::test_maximum_fp32_002() |
| @@ -663,7 +663,7 @@ void TestCodeGenMaximum::test_maximum_fp32_002() | |||
| 663 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_002"); | 663 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_002"); |
| 664 | npu::tile_fwk::CodeGenCtx ctx; | 664 | npu::tile_fwk::CodeGenCtx ctx; |
| 665 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 665 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 666 | - codeGen.GenCode(*function, {}); | 666 | + codeGen.GenCode(*function); |
| 667 | } | 667 | } |
| 668 | 668 | ||
| 669 | void TestCodeGenMaximum::test_maximum_fp32_003() | 669 | void TestCodeGenMaximum::test_maximum_fp32_003() |
| @@ -679,7 +679,7 @@ void TestCodeGenMaximum::test_maximum_fp32_003() | |||
| 679 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_003"); | 679 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_003"); |
| 680 | npu::tile_fwk::CodeGenCtx ctx; | 680 | npu::tile_fwk::CodeGenCtx ctx; |
| 681 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 681 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 682 | - codeGen.GenCode(*function, {}); | 682 | + codeGen.GenCode(*function); |
| 683 | } | 683 | } |
| 684 | 684 | ||
| 685 | void TestCodeGenMaximum::test_maximum_fp32_004() | 685 | void TestCodeGenMaximum::test_maximum_fp32_004() |
| @@ -695,7 +695,7 @@ void TestCodeGenMaximum::test_maximum_fp32_004() | |||
| 695 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_004"); | 695 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_004"); |
| 696 | npu::tile_fwk::CodeGenCtx ctx; | 696 | npu::tile_fwk::CodeGenCtx ctx; |
| 697 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 697 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 698 | - codeGen.GenCode(*function, {}); | 698 | + codeGen.GenCode(*function); |
| 699 | } | 699 | } |
| 700 | 700 | ||
| 701 | void TestCodeGenMaximum::test_maximum_fp32_005() | 701 | void TestCodeGenMaximum::test_maximum_fp32_005() |
| @@ -711,7 +711,7 @@ void TestCodeGenMaximum::test_maximum_fp32_005() | |||
| 711 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_005"); | 711 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_005"); |
| 712 | npu::tile_fwk::CodeGenCtx ctx; | 712 | npu::tile_fwk::CodeGenCtx ctx; |
| 713 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 713 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 714 | - codeGen.GenCode(*function, {}); | 714 | + codeGen.GenCode(*function); |
| 715 | } | 715 | } |
| 716 | 716 | ||
| 717 | void TestCodeGenMaximum::test_maximum_fp32_006() | 717 | void TestCodeGenMaximum::test_maximum_fp32_006() |
| @@ -727,7 +727,7 @@ void TestCodeGenMaximum::test_maximum_fp32_006() | |||
| 727 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_006"); | 727 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_006"); |
| 728 | npu::tile_fwk::CodeGenCtx ctx; | 728 | npu::tile_fwk::CodeGenCtx ctx; |
| 729 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 729 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 730 | - codeGen.GenCode(*function, {}); | 730 | + codeGen.GenCode(*function); |
| 731 | } | 731 | } |
| 732 | 732 | ||
| 733 | void TestCodeGenMaximum::test_maximum_fp32_007() | 733 | void TestCodeGenMaximum::test_maximum_fp32_007() |
| @@ -743,7 +743,7 @@ void TestCodeGenMaximum::test_maximum_fp32_007() | |||
| 743 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_007"); | 743 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_007"); |
| 744 | npu::tile_fwk::CodeGenCtx ctx; | 744 | npu::tile_fwk::CodeGenCtx ctx; |
| 745 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 745 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 746 | - codeGen.GenCode(*function, {}); | 746 | + codeGen.GenCode(*function); |
| 747 | } | 747 | } |
| 748 | 748 | ||
| 749 | void TestCodeGenMaximum::test_maximum_fp32_009() | 749 | void TestCodeGenMaximum::test_maximum_fp32_009() |
| @@ -759,7 +759,7 @@ void TestCodeGenMaximum::test_maximum_fp32_009() | |||
| 759 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_009"); | 759 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_009"); |
| 760 | npu::tile_fwk::CodeGenCtx ctx; | 760 | npu::tile_fwk::CodeGenCtx ctx; |
| 761 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 761 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 762 | - codeGen.GenCode(*function, {}); | 762 | + codeGen.GenCode(*function); |
| 763 | } | 763 | } |
| 764 | 764 | ||
| 765 | void TestCodeGenMaximum::test_maximum_fp32_010() | 765 | void TestCodeGenMaximum::test_maximum_fp32_010() |
| @@ -775,7 +775,7 @@ void TestCodeGenMaximum::test_maximum_fp32_010() | |||
| 775 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_010"); | 775 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_010"); |
| 776 | npu::tile_fwk::CodeGenCtx ctx; | 776 | npu::tile_fwk::CodeGenCtx ctx; |
| 777 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 777 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 778 | - codeGen.GenCode(*function, {}); | 778 | + codeGen.GenCode(*function); |
| 779 | } | 779 | } |
| 780 | 780 | ||
| 781 | void TestCodeGenMaximum::test_maximum_fp32_011() | 781 | void TestCodeGenMaximum::test_maximum_fp32_011() |
| @@ -791,7 +791,7 @@ void TestCodeGenMaximum::test_maximum_fp32_011() | |||
| 791 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_011"); | 791 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_011"); |
| 792 | npu::tile_fwk::CodeGenCtx ctx; | 792 | npu::tile_fwk::CodeGenCtx ctx; |
| 793 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 793 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 794 | - codeGen.GenCode(*function, {}); | 794 | + codeGen.GenCode(*function); |
| 795 | } | 795 | } |
| 796 | 796 | ||
| 797 | void TestCodeGenMaximum::test_maximum_fp32_012() | 797 | void TestCodeGenMaximum::test_maximum_fp32_012() |
| @@ -807,7 +807,7 @@ void TestCodeGenMaximum::test_maximum_fp32_012() | |||
| 807 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_012"); | 807 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_012"); |
| 808 | npu::tile_fwk::CodeGenCtx ctx; | 808 | npu::tile_fwk::CodeGenCtx ctx; |
| 809 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 809 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 810 | - codeGen.GenCode(*function, {}); | 810 | + codeGen.GenCode(*function); |
| 811 | } | 811 | } |
| 812 | 812 | ||
| 813 | void TestCodeGenMaximum::test_maximum_fp32_013() | 813 | void TestCodeGenMaximum::test_maximum_fp32_013() |
| @@ -823,7 +823,7 @@ void TestCodeGenMaximum::test_maximum_fp32_013() | |||
| 823 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_013"); | 823 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_013"); |
| 824 | npu::tile_fwk::CodeGenCtx ctx; | 824 | npu::tile_fwk::CodeGenCtx ctx; |
| 825 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 825 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 826 | - codeGen.GenCode(*function, {}); | 826 | + codeGen.GenCode(*function); |
| 827 | } | 827 | } |
| 828 | 828 | ||
| 829 | void TestCodeGenMaximum::test_maximum_fp32_014() | 829 | void TestCodeGenMaximum::test_maximum_fp32_014() |
| @@ -839,7 +839,7 @@ void TestCodeGenMaximum::test_maximum_fp32_014() | |||
| 839 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_014"); | 839 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_014"); |
| 840 | npu::tile_fwk::CodeGenCtx ctx; | 840 | npu::tile_fwk::CodeGenCtx ctx; |
| 841 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 841 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 842 | - codeGen.GenCode(*function, {}); | 842 | + codeGen.GenCode(*function); |
| 843 | } | 843 | } |
| 844 | 844 | ||
| 845 | void TestCodeGenMaximum::test_maximum_fp32_015() | 845 | void TestCodeGenMaximum::test_maximum_fp32_015() |
| @@ -855,7 +855,7 @@ void TestCodeGenMaximum::test_maximum_fp32_015() | |||
| 855 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_015"); | 855 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_015"); |
| 856 | npu::tile_fwk::CodeGenCtx ctx; | 856 | npu::tile_fwk::CodeGenCtx ctx; |
| 857 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 857 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 858 | - codeGen.GenCode(*function, {}); | 858 | + codeGen.GenCode(*function); |
| 859 | } | 859 | } |
| 860 | 860 | ||
| 861 | void TestCodeGenMaximum::test_maximum_fp32_016() | 861 | void TestCodeGenMaximum::test_maximum_fp32_016() |
| @@ -871,7 +871,7 @@ void TestCodeGenMaximum::test_maximum_fp32_016() | |||
| 871 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_016"); | 871 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_016"); |
| 872 | npu::tile_fwk::CodeGenCtx ctx; | 872 | npu::tile_fwk::CodeGenCtx ctx; |
| 873 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 873 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 874 | - codeGen.GenCode(*function, {}); | 874 | + codeGen.GenCode(*function); |
| 875 | } | 875 | } |
| 876 | 876 | ||
| 877 | void TestCodeGenMaximum::test_maximum_fp32_017() | 877 | void TestCodeGenMaximum::test_maximum_fp32_017() |
| @@ -887,7 +887,7 @@ void TestCodeGenMaximum::test_maximum_fp32_017() | |||
| 887 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_017"); | 887 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_017"); |
| 888 | npu::tile_fwk::CodeGenCtx ctx; | 888 | npu::tile_fwk::CodeGenCtx ctx; |
| 889 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 889 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 890 | - codeGen.GenCode(*function, {}); | 890 | + codeGen.GenCode(*function); |
| 891 | } | 891 | } |
| 892 | 892 | ||
| 893 | void TestCodeGenMaximum::test_maximum_fp32_018() | 893 | void TestCodeGenMaximum::test_maximum_fp32_018() |
| @@ -903,5 +903,5 @@ void TestCodeGenMaximum::test_maximum_fp32_018() | |||
| 903 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_018"); | 903 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MAXIMUM_FP32_018"); |
| 904 | npu::tile_fwk::CodeGenCtx ctx; | 904 | npu::tile_fwk::CodeGenCtx ctx; |
| 905 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 905 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 906 | - codeGen.GenCode(*function, {}); | 906 | + codeGen.GenCode(*function); |
| 907 | } | 907 | } |
| @@ -39,7 +39,7 @@ void TestCodeGenMinimum::test_minimum_int16_001() | |||
| 39 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_001"); | 39 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_001"); |
| 40 | npu::tile_fwk::CodeGenCtx ctx; | 40 | npu::tile_fwk::CodeGenCtx ctx; |
| 41 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 41 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 42 | - codeGen.GenCode(*function, {}); | 42 | + codeGen.GenCode(*function); |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | void TestCodeGenMinimum::test_minimum_int16_002() | 45 | void TestCodeGenMinimum::test_minimum_int16_002() |
| @@ -55,7 +55,7 @@ void TestCodeGenMinimum::test_minimum_int16_002() | |||
| 55 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_002"); | 55 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_002"); |
| 56 | npu::tile_fwk::CodeGenCtx ctx; | 56 | npu::tile_fwk::CodeGenCtx ctx; |
| 57 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 57 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 58 | - codeGen.GenCode(*function, {}); | 58 | + codeGen.GenCode(*function); |
| 59 | } | 59 | } |
| 60 | 60 | ||
| 61 | void TestCodeGenMinimum::test_minimum_int16_003() | 61 | void TestCodeGenMinimum::test_minimum_int16_003() |
| @@ -71,7 +71,7 @@ void TestCodeGenMinimum::test_minimum_int16_003() | |||
| 71 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_003"); | 71 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_003"); |
| 72 | npu::tile_fwk::CodeGenCtx ctx; | 72 | npu::tile_fwk::CodeGenCtx ctx; |
| 73 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 73 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 74 | - codeGen.GenCode(*function, {}); | 74 | + codeGen.GenCode(*function); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | void TestCodeGenMinimum::test_minimum_int16_004() | 77 | void TestCodeGenMinimum::test_minimum_int16_004() |
| @@ -87,7 +87,7 @@ void TestCodeGenMinimum::test_minimum_int16_004() | |||
| 87 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_004"); | 87 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_004"); |
| 88 | npu::tile_fwk::CodeGenCtx ctx; | 88 | npu::tile_fwk::CodeGenCtx ctx; |
| 89 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 89 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 90 | - codeGen.GenCode(*function, {}); | 90 | + codeGen.GenCode(*function); |
| 91 | } | 91 | } |
| 92 | 92 | ||
| 93 | void TestCodeGenMinimum::test_minimum_int16_005() | 93 | void TestCodeGenMinimum::test_minimum_int16_005() |
| @@ -103,7 +103,7 @@ void TestCodeGenMinimum::test_minimum_int16_005() | |||
| 103 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_005"); | 103 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_005"); |
| 104 | npu::tile_fwk::CodeGenCtx ctx; | 104 | npu::tile_fwk::CodeGenCtx ctx; |
| 105 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 105 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 106 | - codeGen.GenCode(*function, {}); | 106 | + codeGen.GenCode(*function); |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | void TestCodeGenMinimum::test_minimum_int16_006() | 109 | void TestCodeGenMinimum::test_minimum_int16_006() |
| @@ -119,7 +119,7 @@ void TestCodeGenMinimum::test_minimum_int16_006() | |||
| 119 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_006"); | 119 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_006"); |
| 120 | npu::tile_fwk::CodeGenCtx ctx; | 120 | npu::tile_fwk::CodeGenCtx ctx; |
| 121 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 121 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 122 | - codeGen.GenCode(*function, {}); | 122 | + codeGen.GenCode(*function); |
| 123 | } | 123 | } |
| 124 | 124 | ||
| 125 | void TestCodeGenMinimum::test_minimum_int16_007() | 125 | void TestCodeGenMinimum::test_minimum_int16_007() |
| @@ -135,7 +135,7 @@ void TestCodeGenMinimum::test_minimum_int16_007() | |||
| 135 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_007"); | 135 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_007"); |
| 136 | npu::tile_fwk::CodeGenCtx ctx; | 136 | npu::tile_fwk::CodeGenCtx ctx; |
| 137 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 137 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 138 | - codeGen.GenCode(*function, {}); | 138 | + codeGen.GenCode(*function); |
| 139 | } | 139 | } |
| 140 | 140 | ||
| 141 | void TestCodeGenMinimum::test_minimum_int16_008() | 141 | void TestCodeGenMinimum::test_minimum_int16_008() |
| @@ -151,7 +151,7 @@ void TestCodeGenMinimum::test_minimum_int16_008() | |||
| 151 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_008"); | 151 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_008"); |
| 152 | npu::tile_fwk::CodeGenCtx ctx; | 152 | npu::tile_fwk::CodeGenCtx ctx; |
| 153 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 153 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 154 | - codeGen.GenCode(*function, {}); | 154 | + codeGen.GenCode(*function); |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | void TestCodeGenMinimum::test_minimum_int16_009() | 157 | void TestCodeGenMinimum::test_minimum_int16_009() |
| @@ -167,7 +167,7 @@ void TestCodeGenMinimum::test_minimum_int16_009() | |||
| 167 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_009"); | 167 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_009"); |
| 168 | npu::tile_fwk::CodeGenCtx ctx; | 168 | npu::tile_fwk::CodeGenCtx ctx; |
| 169 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 169 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 170 | - codeGen.GenCode(*function, {}); | 170 | + codeGen.GenCode(*function); |
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | void TestCodeGenMinimum::test_minimum_int16_010() | 173 | void TestCodeGenMinimum::test_minimum_int16_010() |
| @@ -183,7 +183,7 @@ void TestCodeGenMinimum::test_minimum_int16_010() | |||
| 183 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_010"); | 183 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT16_010"); |
| 184 | npu::tile_fwk::CodeGenCtx ctx; | 184 | npu::tile_fwk::CodeGenCtx ctx; |
| 185 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 185 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 186 | - codeGen.GenCode(*function, {}); | 186 | + codeGen.GenCode(*function); |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | void TestCodeGenMinimum::test_minimum_int32_001() | 189 | void TestCodeGenMinimum::test_minimum_int32_001() |
| @@ -199,7 +199,7 @@ void TestCodeGenMinimum::test_minimum_int32_001() | |||
| 199 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_001"); | 199 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_001"); |
| 200 | npu::tile_fwk::CodeGenCtx ctx; | 200 | npu::tile_fwk::CodeGenCtx ctx; |
| 201 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 201 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 202 | - codeGen.GenCode(*function, {}); | 202 | + codeGen.GenCode(*function); |
| 203 | } | 203 | } |
| 204 | 204 | ||
| 205 | void TestCodeGenMinimum::test_minimum_int32_002() | 205 | void TestCodeGenMinimum::test_minimum_int32_002() |
| @@ -215,7 +215,7 @@ void TestCodeGenMinimum::test_minimum_int32_002() | |||
| 215 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_002"); | 215 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_002"); |
| 216 | npu::tile_fwk::CodeGenCtx ctx; | 216 | npu::tile_fwk::CodeGenCtx ctx; |
| 217 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 217 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 218 | - codeGen.GenCode(*function, {}); | 218 | + codeGen.GenCode(*function); |
| 219 | } | 219 | } |
| 220 | 220 | ||
| 221 | void TestCodeGenMinimum::test_minimum_int32_003() | 221 | void TestCodeGenMinimum::test_minimum_int32_003() |
| @@ -231,7 +231,7 @@ void TestCodeGenMinimum::test_minimum_int32_003() | |||
| 231 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_003"); | 231 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_003"); |
| 232 | npu::tile_fwk::CodeGenCtx ctx; | 232 | npu::tile_fwk::CodeGenCtx ctx; |
| 233 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 233 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 234 | - codeGen.GenCode(*function, {}); | 234 | + codeGen.GenCode(*function); |
| 235 | } | 235 | } |
| 236 | 236 | ||
| 237 | void TestCodeGenMinimum::test_minimum_int32_004() | 237 | void TestCodeGenMinimum::test_minimum_int32_004() |
| @@ -247,7 +247,7 @@ void TestCodeGenMinimum::test_minimum_int32_004() | |||
| 247 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_004"); | 247 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_004"); |
| 248 | npu::tile_fwk::CodeGenCtx ctx; | 248 | npu::tile_fwk::CodeGenCtx ctx; |
| 249 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 249 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 250 | - codeGen.GenCode(*function, {}); | 250 | + codeGen.GenCode(*function); |
| 251 | } | 251 | } |
| 252 | 252 | ||
| 253 | void TestCodeGenMinimum::test_minimum_int32_005() | 253 | void TestCodeGenMinimum::test_minimum_int32_005() |
| @@ -263,7 +263,7 @@ void TestCodeGenMinimum::test_minimum_int32_005() | |||
| 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_005"); | 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_005"); |
| 264 | npu::tile_fwk::CodeGenCtx ctx; | 264 | npu::tile_fwk::CodeGenCtx ctx; |
| 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 266 | - codeGen.GenCode(*function, {}); | 266 | + codeGen.GenCode(*function); |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | void TestCodeGenMinimum::test_minimum_int32_006() | 269 | void TestCodeGenMinimum::test_minimum_int32_006() |
| @@ -279,7 +279,7 @@ void TestCodeGenMinimum::test_minimum_int32_006() | |||
| 279 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_006"); | 279 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_006"); |
| 280 | npu::tile_fwk::CodeGenCtx ctx; | 280 | npu::tile_fwk::CodeGenCtx ctx; |
| 281 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 281 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 282 | - codeGen.GenCode(*function, {}); | 282 | + codeGen.GenCode(*function); |
| 283 | } | 283 | } |
| 284 | 284 | ||
| 285 | void TestCodeGenMinimum::test_minimum_int32_007() | 285 | void TestCodeGenMinimum::test_minimum_int32_007() |
| @@ -295,7 +295,7 @@ void TestCodeGenMinimum::test_minimum_int32_007() | |||
| 295 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_007"); | 295 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_007"); |
| 296 | npu::tile_fwk::CodeGenCtx ctx; | 296 | npu::tile_fwk::CodeGenCtx ctx; |
| 297 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 297 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 298 | - codeGen.GenCode(*function, {}); | 298 | + codeGen.GenCode(*function); |
| 299 | } | 299 | } |
| 300 | 300 | ||
| 301 | void TestCodeGenMinimum::test_minimum_int32_008() | 301 | void TestCodeGenMinimum::test_minimum_int32_008() |
| @@ -311,7 +311,7 @@ void TestCodeGenMinimum::test_minimum_int32_008() | |||
| 311 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_008"); | 311 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_008"); |
| 312 | npu::tile_fwk::CodeGenCtx ctx; | 312 | npu::tile_fwk::CodeGenCtx ctx; |
| 313 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 313 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 314 | - codeGen.GenCode(*function, {}); | 314 | + codeGen.GenCode(*function); |
| 315 | } | 315 | } |
| 316 | 316 | ||
| 317 | void TestCodeGenMinimum::test_minimum_int32_009() | 317 | void TestCodeGenMinimum::test_minimum_int32_009() |
| @@ -327,7 +327,7 @@ void TestCodeGenMinimum::test_minimum_int32_009() | |||
| 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_009"); | 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_009"); |
| 328 | npu::tile_fwk::CodeGenCtx ctx; | 328 | npu::tile_fwk::CodeGenCtx ctx; |
| 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 330 | - codeGen.GenCode(*function, {}); | 330 | + codeGen.GenCode(*function); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | void TestCodeGenMinimum::test_minimum_int32_010() | 333 | void TestCodeGenMinimum::test_minimum_int32_010() |
| @@ -343,7 +343,7 @@ void TestCodeGenMinimum::test_minimum_int32_010() | |||
| 343 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_010"); | 343 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_INT32_010"); |
| 344 | npu::tile_fwk::CodeGenCtx ctx; | 344 | npu::tile_fwk::CodeGenCtx ctx; |
| 345 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 345 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 346 | - codeGen.GenCode(*function, {}); | 346 | + codeGen.GenCode(*function); |
| 347 | } | 347 | } |
| 348 | 348 | ||
| 349 | void TestCodeGenMinimum::test_minimum_fp16_001() | 349 | void TestCodeGenMinimum::test_minimum_fp16_001() |
| @@ -359,7 +359,7 @@ void TestCodeGenMinimum::test_minimum_fp16_001() | |||
| 359 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_001"); | 359 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_001"); |
| 360 | npu::tile_fwk::CodeGenCtx ctx; | 360 | npu::tile_fwk::CodeGenCtx ctx; |
| 361 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 361 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 362 | - codeGen.GenCode(*function, {}); | 362 | + codeGen.GenCode(*function); |
| 363 | } | 363 | } |
| 364 | 364 | ||
| 365 | void TestCodeGenMinimum::test_minimum_fp16_002() | 365 | void TestCodeGenMinimum::test_minimum_fp16_002() |
| @@ -375,7 +375,7 @@ void TestCodeGenMinimum::test_minimum_fp16_002() | |||
| 375 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_002"); | 375 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_002"); |
| 376 | npu::tile_fwk::CodeGenCtx ctx; | 376 | npu::tile_fwk::CodeGenCtx ctx; |
| 377 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 377 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 378 | - codeGen.GenCode(*function, {}); | 378 | + codeGen.GenCode(*function); |
| 379 | } | 379 | } |
| 380 | 380 | ||
| 381 | void TestCodeGenMinimum::test_minimum_fp16_003() | 381 | void TestCodeGenMinimum::test_minimum_fp16_003() |
| @@ -391,7 +391,7 @@ void TestCodeGenMinimum::test_minimum_fp16_003() | |||
| 391 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_003"); | 391 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_003"); |
| 392 | npu::tile_fwk::CodeGenCtx ctx; | 392 | npu::tile_fwk::CodeGenCtx ctx; |
| 393 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 393 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 394 | - codeGen.GenCode(*function, {}); | 394 | + codeGen.GenCode(*function); |
| 395 | } | 395 | } |
| 396 | 396 | ||
| 397 | void TestCodeGenMinimum::test_minimum_fp16_004() | 397 | void TestCodeGenMinimum::test_minimum_fp16_004() |
| @@ -407,7 +407,7 @@ void TestCodeGenMinimum::test_minimum_fp16_004() | |||
| 407 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_004"); | 407 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_004"); |
| 408 | npu::tile_fwk::CodeGenCtx ctx; | 408 | npu::tile_fwk::CodeGenCtx ctx; |
| 409 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 409 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 410 | - codeGen.GenCode(*function, {}); | 410 | + codeGen.GenCode(*function); |
| 411 | } | 411 | } |
| 412 | 412 | ||
| 413 | void TestCodeGenMinimum::test_minimum_fp16_005() | 413 | void TestCodeGenMinimum::test_minimum_fp16_005() |
| @@ -423,7 +423,7 @@ void TestCodeGenMinimum::test_minimum_fp16_005() | |||
| 423 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_005"); | 423 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_005"); |
| 424 | npu::tile_fwk::CodeGenCtx ctx; | 424 | npu::tile_fwk::CodeGenCtx ctx; |
| 425 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 425 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 426 | - codeGen.GenCode(*function, {}); | 426 | + codeGen.GenCode(*function); |
| 427 | } | 427 | } |
| 428 | 428 | ||
| 429 | void TestCodeGenMinimum::test_minimum_fp16_006() | 429 | void TestCodeGenMinimum::test_minimum_fp16_006() |
| @@ -439,7 +439,7 @@ void TestCodeGenMinimum::test_minimum_fp16_006() | |||
| 439 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_006"); | 439 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_006"); |
| 440 | npu::tile_fwk::CodeGenCtx ctx; | 440 | npu::tile_fwk::CodeGenCtx ctx; |
| 441 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 441 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 442 | - codeGen.GenCode(*function, {}); | 442 | + codeGen.GenCode(*function); |
| 443 | } | 443 | } |
| 444 | 444 | ||
| 445 | void TestCodeGenMinimum::test_minimum_fp16_007() | 445 | void TestCodeGenMinimum::test_minimum_fp16_007() |
| @@ -455,7 +455,7 @@ void TestCodeGenMinimum::test_minimum_fp16_007() | |||
| 455 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_007"); | 455 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_007"); |
| 456 | npu::tile_fwk::CodeGenCtx ctx; | 456 | npu::tile_fwk::CodeGenCtx ctx; |
| 457 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 457 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 458 | - codeGen.GenCode(*function, {}); | 458 | + codeGen.GenCode(*function); |
| 459 | } | 459 | } |
| 460 | 460 | ||
| 461 | void TestCodeGenMinimum::test_minimum_fp16_008() | 461 | void TestCodeGenMinimum::test_minimum_fp16_008() |
| @@ -471,7 +471,7 @@ void TestCodeGenMinimum::test_minimum_fp16_008() | |||
| 471 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_008"); | 471 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_008"); |
| 472 | npu::tile_fwk::CodeGenCtx ctx; | 472 | npu::tile_fwk::CodeGenCtx ctx; |
| 473 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 473 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 474 | - codeGen.GenCode(*function, {}); | 474 | + codeGen.GenCode(*function); |
| 475 | } | 475 | } |
| 476 | 476 | ||
| 477 | void TestCodeGenMinimum::test_minimum_fp16_009() | 477 | void TestCodeGenMinimum::test_minimum_fp16_009() |
| @@ -487,7 +487,7 @@ void TestCodeGenMinimum::test_minimum_fp16_009() | |||
| 487 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_009"); | 487 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_009"); |
| 488 | npu::tile_fwk::CodeGenCtx ctx; | 488 | npu::tile_fwk::CodeGenCtx ctx; |
| 489 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 489 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 490 | - codeGen.GenCode(*function, {}); | 490 | + codeGen.GenCode(*function); |
| 491 | } | 491 | } |
| 492 | 492 | ||
| 493 | void TestCodeGenMinimum::test_minimum_fp16_010() | 493 | void TestCodeGenMinimum::test_minimum_fp16_010() |
| @@ -503,7 +503,7 @@ void TestCodeGenMinimum::test_minimum_fp16_010() | |||
| 503 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_010"); | 503 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_010"); |
| 504 | npu::tile_fwk::CodeGenCtx ctx; | 504 | npu::tile_fwk::CodeGenCtx ctx; |
| 505 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 505 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 506 | - codeGen.GenCode(*function, {}); | 506 | + codeGen.GenCode(*function); |
| 507 | } | 507 | } |
| 508 | 508 | ||
| 509 | void TestCodeGenMinimum::test_minimum_fp16_011() | 509 | void TestCodeGenMinimum::test_minimum_fp16_011() |
| @@ -519,7 +519,7 @@ void TestCodeGenMinimum::test_minimum_fp16_011() | |||
| 519 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_011"); | 519 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_011"); |
| 520 | npu::tile_fwk::CodeGenCtx ctx; | 520 | npu::tile_fwk::CodeGenCtx ctx; |
| 521 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 521 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 522 | - codeGen.GenCode(*function, {}); | 522 | + codeGen.GenCode(*function); |
| 523 | } | 523 | } |
| 524 | 524 | ||
| 525 | void TestCodeGenMinimum::test_minimum_fp16_012() | 525 | void TestCodeGenMinimum::test_minimum_fp16_012() |
| @@ -535,7 +535,7 @@ void TestCodeGenMinimum::test_minimum_fp16_012() | |||
| 535 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_012"); | 535 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_012"); |
| 536 | npu::tile_fwk::CodeGenCtx ctx; | 536 | npu::tile_fwk::CodeGenCtx ctx; |
| 537 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 537 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 538 | - codeGen.GenCode(*function, {}); | 538 | + codeGen.GenCode(*function); |
| 539 | } | 539 | } |
| 540 | 540 | ||
| 541 | void TestCodeGenMinimum::test_minimum_fp16_013() | 541 | void TestCodeGenMinimum::test_minimum_fp16_013() |
| @@ -551,7 +551,7 @@ void TestCodeGenMinimum::test_minimum_fp16_013() | |||
| 551 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_013"); | 551 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_013"); |
| 552 | npu::tile_fwk::CodeGenCtx ctx; | 552 | npu::tile_fwk::CodeGenCtx ctx; |
| 553 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 553 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 554 | - codeGen.GenCode(*function, {}); | 554 | + codeGen.GenCode(*function); |
| 555 | } | 555 | } |
| 556 | 556 | ||
| 557 | void TestCodeGenMinimum::test_minimum_fp16_014() | 557 | void TestCodeGenMinimum::test_minimum_fp16_014() |
| @@ -567,7 +567,7 @@ void TestCodeGenMinimum::test_minimum_fp16_014() | |||
| 567 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_014"); | 567 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_014"); |
| 568 | npu::tile_fwk::CodeGenCtx ctx; | 568 | npu::tile_fwk::CodeGenCtx ctx; |
| 569 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 569 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 570 | - codeGen.GenCode(*function, {}); | 570 | + codeGen.GenCode(*function); |
| 571 | } | 571 | } |
| 572 | 572 | ||
| 573 | void TestCodeGenMinimum::test_minimum_fp16_015() | 573 | void TestCodeGenMinimum::test_minimum_fp16_015() |
| @@ -583,7 +583,7 @@ void TestCodeGenMinimum::test_minimum_fp16_015() | |||
| 583 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_015"); | 583 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_015"); |
| 584 | npu::tile_fwk::CodeGenCtx ctx; | 584 | npu::tile_fwk::CodeGenCtx ctx; |
| 585 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 585 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 586 | - codeGen.GenCode(*function, {}); | 586 | + codeGen.GenCode(*function); |
| 587 | } | 587 | } |
| 588 | 588 | ||
| 589 | void TestCodeGenMinimum::test_minimum_fp16_016() | 589 | void TestCodeGenMinimum::test_minimum_fp16_016() |
| @@ -599,7 +599,7 @@ void TestCodeGenMinimum::test_minimum_fp16_016() | |||
| 599 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_016"); | 599 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_016"); |
| 600 | npu::tile_fwk::CodeGenCtx ctx; | 600 | npu::tile_fwk::CodeGenCtx ctx; |
| 601 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 601 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 602 | - codeGen.GenCode(*function, {}); | 602 | + codeGen.GenCode(*function); |
| 603 | } | 603 | } |
| 604 | 604 | ||
| 605 | void TestCodeGenMinimum::test_minimum_fp16_017() | 605 | void TestCodeGenMinimum::test_minimum_fp16_017() |
| @@ -615,7 +615,7 @@ void TestCodeGenMinimum::test_minimum_fp16_017() | |||
| 615 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_017"); | 615 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_017"); |
| 616 | npu::tile_fwk::CodeGenCtx ctx; | 616 | npu::tile_fwk::CodeGenCtx ctx; |
| 617 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 617 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 618 | - codeGen.GenCode(*function, {}); | 618 | + codeGen.GenCode(*function); |
| 619 | } | 619 | } |
| 620 | 620 | ||
| 621 | void TestCodeGenMinimum::test_minimum_fp16_018() | 621 | void TestCodeGenMinimum::test_minimum_fp16_018() |
| @@ -631,7 +631,7 @@ void TestCodeGenMinimum::test_minimum_fp16_018() | |||
| 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_018"); | 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP16_018"); |
| 632 | npu::tile_fwk::CodeGenCtx ctx; | 632 | npu::tile_fwk::CodeGenCtx ctx; |
| 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 634 | - codeGen.GenCode(*function, {}); | 634 | + codeGen.GenCode(*function); |
| 635 | } | 635 | } |
| 636 | 636 | ||
| 637 | void TestCodeGenMinimum::test_minimum_fp32_001() | 637 | void TestCodeGenMinimum::test_minimum_fp32_001() |
| @@ -647,7 +647,7 @@ void TestCodeGenMinimum::test_minimum_fp32_001() | |||
| 647 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_001"); | 647 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_001"); |
| 648 | npu::tile_fwk::CodeGenCtx ctx; | 648 | npu::tile_fwk::CodeGenCtx ctx; |
| 649 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 649 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 650 | - codeGen.GenCode(*function, {}); | 650 | + codeGen.GenCode(*function); |
| 651 | } | 651 | } |
| 652 | 652 | ||
| 653 | void TestCodeGenMinimum::test_minimum_fp32_002() | 653 | void TestCodeGenMinimum::test_minimum_fp32_002() |
| @@ -663,7 +663,7 @@ void TestCodeGenMinimum::test_minimum_fp32_002() | |||
| 663 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_002"); | 663 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_002"); |
| 664 | npu::tile_fwk::CodeGenCtx ctx; | 664 | npu::tile_fwk::CodeGenCtx ctx; |
| 665 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 665 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 666 | - codeGen.GenCode(*function, {}); | 666 | + codeGen.GenCode(*function); |
| 667 | } | 667 | } |
| 668 | 668 | ||
| 669 | void TestCodeGenMinimum::test_minimum_fp32_003() | 669 | void TestCodeGenMinimum::test_minimum_fp32_003() |
| @@ -679,7 +679,7 @@ void TestCodeGenMinimum::test_minimum_fp32_003() | |||
| 679 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_003"); | 679 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_003"); |
| 680 | npu::tile_fwk::CodeGenCtx ctx; | 680 | npu::tile_fwk::CodeGenCtx ctx; |
| 681 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 681 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 682 | - codeGen.GenCode(*function, {}); | 682 | + codeGen.GenCode(*function); |
| 683 | } | 683 | } |
| 684 | 684 | ||
| 685 | void TestCodeGenMinimum::test_minimum_fp32_004() | 685 | void TestCodeGenMinimum::test_minimum_fp32_004() |
| @@ -695,7 +695,7 @@ void TestCodeGenMinimum::test_minimum_fp32_004() | |||
| 695 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_004"); | 695 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_004"); |
| 696 | npu::tile_fwk::CodeGenCtx ctx; | 696 | npu::tile_fwk::CodeGenCtx ctx; |
| 697 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 697 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 698 | - codeGen.GenCode(*function, {}); | 698 | + codeGen.GenCode(*function); |
| 699 | } | 699 | } |
| 700 | 700 | ||
| 701 | void TestCodeGenMinimum::test_minimum_fp32_005() | 701 | void TestCodeGenMinimum::test_minimum_fp32_005() |
| @@ -711,7 +711,7 @@ void TestCodeGenMinimum::test_minimum_fp32_005() | |||
| 711 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_005"); | 711 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_005"); |
| 712 | npu::tile_fwk::CodeGenCtx ctx; | 712 | npu::tile_fwk::CodeGenCtx ctx; |
| 713 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 713 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 714 | - codeGen.GenCode(*function, {}); | 714 | + codeGen.GenCode(*function); |
| 715 | } | 715 | } |
| 716 | 716 | ||
| 717 | void TestCodeGenMinimum::test_minimum_fp32_006() | 717 | void TestCodeGenMinimum::test_minimum_fp32_006() |
| @@ -727,7 +727,7 @@ void TestCodeGenMinimum::test_minimum_fp32_006() | |||
| 727 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_006"); | 727 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_006"); |
| 728 | npu::tile_fwk::CodeGenCtx ctx; | 728 | npu::tile_fwk::CodeGenCtx ctx; |
| 729 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 729 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 730 | - codeGen.GenCode(*function, {}); | 730 | + codeGen.GenCode(*function); |
| 731 | } | 731 | } |
| 732 | 732 | ||
| 733 | void TestCodeGenMinimum::test_minimum_fp32_007() | 733 | void TestCodeGenMinimum::test_minimum_fp32_007() |
| @@ -743,7 +743,7 @@ void TestCodeGenMinimum::test_minimum_fp32_007() | |||
| 743 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_007"); | 743 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_007"); |
| 744 | npu::tile_fwk::CodeGenCtx ctx; | 744 | npu::tile_fwk::CodeGenCtx ctx; |
| 745 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 745 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 746 | - codeGen.GenCode(*function, {}); | 746 | + codeGen.GenCode(*function); |
| 747 | } | 747 | } |
| 748 | 748 | ||
| 749 | void TestCodeGenMinimum::test_minimum_fp32_008() | 749 | void TestCodeGenMinimum::test_minimum_fp32_008() |
| @@ -759,7 +759,7 @@ void TestCodeGenMinimum::test_minimum_fp32_008() | |||
| 759 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_008"); | 759 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_008"); |
| 760 | npu::tile_fwk::CodeGenCtx ctx; | 760 | npu::tile_fwk::CodeGenCtx ctx; |
| 761 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 761 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 762 | - codeGen.GenCode(*function, {}); | 762 | + codeGen.GenCode(*function); |
| 763 | } | 763 | } |
| 764 | 764 | ||
| 765 | void TestCodeGenMinimum::test_minimum_fp32_009() | 765 | void TestCodeGenMinimum::test_minimum_fp32_009() |
| @@ -775,7 +775,7 @@ void TestCodeGenMinimum::test_minimum_fp32_009() | |||
| 775 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_009"); | 775 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_009"); |
| 776 | npu::tile_fwk::CodeGenCtx ctx; | 776 | npu::tile_fwk::CodeGenCtx ctx; |
| 777 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 777 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 778 | - codeGen.GenCode(*function, {}); | 778 | + codeGen.GenCode(*function); |
| 779 | } | 779 | } |
| 780 | 780 | ||
| 781 | void TestCodeGenMinimum::test_minimum_fp32_010() | 781 | void TestCodeGenMinimum::test_minimum_fp32_010() |
| @@ -791,7 +791,7 @@ void TestCodeGenMinimum::test_minimum_fp32_010() | |||
| 791 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_010"); | 791 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_010"); |
| 792 | npu::tile_fwk::CodeGenCtx ctx; | 792 | npu::tile_fwk::CodeGenCtx ctx; |
| 793 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 793 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 794 | - codeGen.GenCode(*function, {}); | 794 | + codeGen.GenCode(*function); |
| 795 | } | 795 | } |
| 796 | 796 | ||
| 797 | void TestCodeGenMinimum::test_minimum_fp32_011() | 797 | void TestCodeGenMinimum::test_minimum_fp32_011() |
| @@ -807,7 +807,7 @@ void TestCodeGenMinimum::test_minimum_fp32_011() | |||
| 807 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_011"); | 807 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_011"); |
| 808 | npu::tile_fwk::CodeGenCtx ctx; | 808 | npu::tile_fwk::CodeGenCtx ctx; |
| 809 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 809 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 810 | - codeGen.GenCode(*function, {}); | 810 | + codeGen.GenCode(*function); |
| 811 | } | 811 | } |
| 812 | 812 | ||
| 813 | void TestCodeGenMinimum::test_minimum_fp32_012() | 813 | void TestCodeGenMinimum::test_minimum_fp32_012() |
| @@ -823,7 +823,7 @@ void TestCodeGenMinimum::test_minimum_fp32_012() | |||
| 823 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_012"); | 823 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_012"); |
| 824 | npu::tile_fwk::CodeGenCtx ctx; | 824 | npu::tile_fwk::CodeGenCtx ctx; |
| 825 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 825 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 826 | - codeGen.GenCode(*function, {}); | 826 | + codeGen.GenCode(*function); |
| 827 | } | 827 | } |
| 828 | 828 | ||
| 829 | void TestCodeGenMinimum::test_minimum_fp32_013() | 829 | void TestCodeGenMinimum::test_minimum_fp32_013() |
| @@ -839,7 +839,7 @@ void TestCodeGenMinimum::test_minimum_fp32_013() | |||
| 839 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_013"); | 839 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_013"); |
| 840 | npu::tile_fwk::CodeGenCtx ctx; | 840 | npu::tile_fwk::CodeGenCtx ctx; |
| 841 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 841 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 842 | - codeGen.GenCode(*function, {}); | 842 | + codeGen.GenCode(*function); |
| 843 | } | 843 | } |
| 844 | 844 | ||
| 845 | void TestCodeGenMinimum::test_minimum_fp32_014() | 845 | void TestCodeGenMinimum::test_minimum_fp32_014() |
| @@ -855,7 +855,7 @@ void TestCodeGenMinimum::test_minimum_fp32_014() | |||
| 855 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_014"); | 855 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_014"); |
| 856 | npu::tile_fwk::CodeGenCtx ctx; | 856 | npu::tile_fwk::CodeGenCtx ctx; |
| 857 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 857 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 858 | - codeGen.GenCode(*function, {}); | 858 | + codeGen.GenCode(*function); |
| 859 | } | 859 | } |
| 860 | 860 | ||
| 861 | void TestCodeGenMinimum::test_minimum_fp32_015() | 861 | void TestCodeGenMinimum::test_minimum_fp32_015() |
| @@ -871,7 +871,7 @@ void TestCodeGenMinimum::test_minimum_fp32_015() | |||
| 871 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_015"); | 871 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_015"); |
| 872 | npu::tile_fwk::CodeGenCtx ctx; | 872 | npu::tile_fwk::CodeGenCtx ctx; |
| 873 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 873 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 874 | - codeGen.GenCode(*function, {}); | 874 | + codeGen.GenCode(*function); |
| 875 | } | 875 | } |
| 876 | 876 | ||
| 877 | void TestCodeGenMinimum::test_minimum_fp32_016() | 877 | void TestCodeGenMinimum::test_minimum_fp32_016() |
| @@ -887,7 +887,7 @@ void TestCodeGenMinimum::test_minimum_fp32_016() | |||
| 887 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_016"); | 887 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_016"); |
| 888 | npu::tile_fwk::CodeGenCtx ctx; | 888 | npu::tile_fwk::CodeGenCtx ctx; |
| 889 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 889 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 890 | - codeGen.GenCode(*function, {}); | 890 | + codeGen.GenCode(*function); |
| 891 | } | 891 | } |
| 892 | 892 | ||
| 893 | void TestCodeGenMinimum::test_minimum_fp32_017() | 893 | void TestCodeGenMinimum::test_minimum_fp32_017() |
| @@ -903,5 +903,5 @@ void TestCodeGenMinimum::test_minimum_fp32_017() | |||
| 903 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_017"); | 903 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MINIMUM_FP32_017"); |
| 904 | npu::tile_fwk::CodeGenCtx ctx; | 904 | npu::tile_fwk::CodeGenCtx ctx; |
| 905 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 905 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 906 | - codeGen.GenCode(*function, {}); | 906 | + codeGen.GenCode(*function); |
| 907 | } | 907 | } |
| @@ -42,7 +42,7 @@ void TestCodeGenMul::test_mul_001() | |||
| 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_001"); | 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_001"); |
| 43 | npu::tile_fwk::CodeGenCtx ctx; | 43 | npu::tile_fwk::CodeGenCtx ctx; |
| 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 45 | - codeGen.GenCode(*function, {}); | 45 | + codeGen.GenCode(*function); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void TestCodeGenMul::test_mul_002() | 48 | void TestCodeGenMul::test_mul_002() |
| @@ -61,7 +61,7 @@ void TestCodeGenMul::test_mul_002() | |||
| 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_002"); | 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_002"); |
| 62 | npu::tile_fwk::CodeGenCtx ctx; | 62 | npu::tile_fwk::CodeGenCtx ctx; |
| 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 64 | - codeGen.GenCode(*function, {}); | 64 | + codeGen.GenCode(*function); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void TestCodeGenMul::test_mul_003() | 67 | void TestCodeGenMul::test_mul_003() |
| @@ -80,7 +80,7 @@ void TestCodeGenMul::test_mul_003() | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_003"); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_003"); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void TestCodeGenMul::test_mul_004() | 86 | void TestCodeGenMul::test_mul_004() |
| @@ -99,7 +99,7 @@ void TestCodeGenMul::test_mul_004() | |||
| 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_004"); | 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_004"); |
| 100 | npu::tile_fwk::CodeGenCtx ctx; | 100 | npu::tile_fwk::CodeGenCtx ctx; |
| 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 102 | - codeGen.GenCode(*function, {}); | 102 | + codeGen.GenCode(*function); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void TestCodeGenMul::test_mul_005() | 105 | void TestCodeGenMul::test_mul_005() |
| @@ -118,7 +118,7 @@ void TestCodeGenMul::test_mul_005() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_005"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_005"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenMul::test_mul_006() | 124 | void TestCodeGenMul::test_mul_006() |
| @@ -137,7 +137,7 @@ void TestCodeGenMul::test_mul_006() | |||
| 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_006"); | 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_006"); |
| 138 | npu::tile_fwk::CodeGenCtx ctx; | 138 | npu::tile_fwk::CodeGenCtx ctx; |
| 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 140 | - codeGen.GenCode(*function, {}); | 140 | + codeGen.GenCode(*function); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void TestCodeGenMul::test_mul_007() | 143 | void TestCodeGenMul::test_mul_007() |
| @@ -156,7 +156,7 @@ void TestCodeGenMul::test_mul_007() | |||
| 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_007"); | 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_007"); |
| 157 | npu::tile_fwk::CodeGenCtx ctx; | 157 | npu::tile_fwk::CodeGenCtx ctx; |
| 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 159 | - codeGen.GenCode(*function, {}); | 159 | + codeGen.GenCode(*function); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | void TestCodeGenMul::test_mul_008() | 162 | void TestCodeGenMul::test_mul_008() |
| @@ -175,7 +175,7 @@ void TestCodeGenMul::test_mul_008() | |||
| 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_008"); | 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_008"); |
| 176 | npu::tile_fwk::CodeGenCtx ctx; | 176 | npu::tile_fwk::CodeGenCtx ctx; |
| 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 178 | - codeGen.GenCode(*function, {}); | 178 | + codeGen.GenCode(*function); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void TestCodeGenMul::test_mul_009() | 181 | void TestCodeGenMul::test_mul_009() |
| @@ -194,7 +194,7 @@ void TestCodeGenMul::test_mul_009() | |||
| 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_009"); | 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_009"); |
| 195 | npu::tile_fwk::CodeGenCtx ctx; | 195 | npu::tile_fwk::CodeGenCtx ctx; |
| 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 197 | - codeGen.GenCode(*function, {}); | 197 | + codeGen.GenCode(*function); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void TestCodeGenMul::test_mul_010() | 200 | void TestCodeGenMul::test_mul_010() |
| @@ -213,7 +213,7 @@ void TestCodeGenMul::test_mul_010() | |||
| 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_010"); | 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_010"); |
| 214 | npu::tile_fwk::CodeGenCtx ctx; | 214 | npu::tile_fwk::CodeGenCtx ctx; |
| 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 216 | - codeGen.GenCode(*function, {}); | 216 | + codeGen.GenCode(*function); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void TestCodeGenMul::test_mul_011() | 219 | void TestCodeGenMul::test_mul_011() |
| @@ -232,7 +232,7 @@ void TestCodeGenMul::test_mul_011() | |||
| 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_011"); | 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_011"); |
| 233 | npu::tile_fwk::CodeGenCtx ctx; | 233 | npu::tile_fwk::CodeGenCtx ctx; |
| 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 235 | - codeGen.GenCode(*function, {}); | 235 | + codeGen.GenCode(*function); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void TestCodeGenMul::test_mul_012() | 238 | void TestCodeGenMul::test_mul_012() |
| @@ -251,7 +251,7 @@ void TestCodeGenMul::test_mul_012() | |||
| 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_012"); | 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_012"); |
| 252 | npu::tile_fwk::CodeGenCtx ctx; | 252 | npu::tile_fwk::CodeGenCtx ctx; |
| 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 254 | - codeGen.GenCode(*function, {}); | 254 | + codeGen.GenCode(*function); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void TestCodeGenMul::test_mul_013() | 257 | void TestCodeGenMul::test_mul_013() |
| @@ -270,7 +270,7 @@ void TestCodeGenMul::test_mul_013() | |||
| 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_013"); | 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_013"); |
| 271 | npu::tile_fwk::CodeGenCtx ctx; | 271 | npu::tile_fwk::CodeGenCtx ctx; |
| 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 273 | - codeGen.GenCode(*function, {}); | 273 | + codeGen.GenCode(*function); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void TestCodeGenMul::test_mul_014() | 276 | void TestCodeGenMul::test_mul_014() |
| @@ -289,7 +289,7 @@ void TestCodeGenMul::test_mul_014() | |||
| 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_014"); | 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_014"); |
| 290 | npu::tile_fwk::CodeGenCtx ctx; | 290 | npu::tile_fwk::CodeGenCtx ctx; |
| 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 292 | - codeGen.GenCode(*function, {}); | 292 | + codeGen.GenCode(*function); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void TestCodeGenMul::test_mul_015() | 295 | void TestCodeGenMul::test_mul_015() |
| @@ -308,7 +308,7 @@ void TestCodeGenMul::test_mul_015() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_015"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_015"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenMul::test_mul_016() | 314 | void TestCodeGenMul::test_mul_016() |
| @@ -327,7 +327,7 @@ void TestCodeGenMul::test_mul_016() | |||
| 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_016"); | 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_016"); |
| 328 | npu::tile_fwk::CodeGenCtx ctx; | 328 | npu::tile_fwk::CodeGenCtx ctx; |
| 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 330 | - codeGen.GenCode(*function, {}); | 330 | + codeGen.GenCode(*function); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | void TestCodeGenMul::test_mul_017() | 333 | void TestCodeGenMul::test_mul_017() |
| @@ -346,7 +346,7 @@ void TestCodeGenMul::test_mul_017() | |||
| 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_017"); | 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_017"); |
| 347 | npu::tile_fwk::CodeGenCtx ctx; | 347 | npu::tile_fwk::CodeGenCtx ctx; |
| 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 349 | - codeGen.GenCode(*function, {}); | 349 | + codeGen.GenCode(*function); |
| 350 | } | 350 | } |
| 351 | 351 | ||
| 352 | void TestCodeGenMul::test_mul_018() | 352 | void TestCodeGenMul::test_mul_018() |
| @@ -365,7 +365,7 @@ void TestCodeGenMul::test_mul_018() | |||
| 365 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_018"); | 365 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_018"); |
| 366 | npu::tile_fwk::CodeGenCtx ctx; | 366 | npu::tile_fwk::CodeGenCtx ctx; |
| 367 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 367 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 368 | - codeGen.GenCode(*function, {}); | 368 | + codeGen.GenCode(*function); |
| 369 | } | 369 | } |
| 370 | 370 | ||
| 371 | void TestCodeGenMul::test_mul_019() | 371 | void TestCodeGenMul::test_mul_019() |
| @@ -384,7 +384,7 @@ void TestCodeGenMul::test_mul_019() | |||
| 384 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_019"); | 384 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_019"); |
| 385 | npu::tile_fwk::CodeGenCtx ctx; | 385 | npu::tile_fwk::CodeGenCtx ctx; |
| 386 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 386 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 387 | - codeGen.GenCode(*function, {}); | 387 | + codeGen.GenCode(*function); |
| 388 | } | 388 | } |
| 389 | 389 | ||
| 390 | void TestCodeGenMul::test_mul_020() | 390 | void TestCodeGenMul::test_mul_020() |
| @@ -403,7 +403,7 @@ void TestCodeGenMul::test_mul_020() | |||
| 403 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_020"); | 403 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_020"); |
| 404 | npu::tile_fwk::CodeGenCtx ctx; | 404 | npu::tile_fwk::CodeGenCtx ctx; |
| 405 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 405 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 406 | - codeGen.GenCode(*function, {}); | 406 | + codeGen.GenCode(*function); |
| 407 | } | 407 | } |
| 408 | 408 | ||
| 409 | void TestCodeGenMul::test_mul_021() | 409 | void TestCodeGenMul::test_mul_021() |
| @@ -422,7 +422,7 @@ void TestCodeGenMul::test_mul_021() | |||
| 422 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_021"); | 422 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_021"); |
| 423 | npu::tile_fwk::CodeGenCtx ctx; | 423 | npu::tile_fwk::CodeGenCtx ctx; |
| 424 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 424 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 425 | - codeGen.GenCode(*function, {}); | 425 | + codeGen.GenCode(*function); |
| 426 | } | 426 | } |
| 427 | 427 | ||
| 428 | void TestCodeGenMul::test_mul_022() | 428 | void TestCodeGenMul::test_mul_022() |
| @@ -441,7 +441,7 @@ void TestCodeGenMul::test_mul_022() | |||
| 441 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_022"); | 441 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_022"); |
| 442 | npu::tile_fwk::CodeGenCtx ctx; | 442 | npu::tile_fwk::CodeGenCtx ctx; |
| 443 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 443 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 444 | - codeGen.GenCode(*function, {}); | 444 | + codeGen.GenCode(*function); |
| 445 | } | 445 | } |
| 446 | 446 | ||
| 447 | void TestCodeGenMul::test_mul_023() | 447 | void TestCodeGenMul::test_mul_023() |
| @@ -460,7 +460,7 @@ void TestCodeGenMul::test_mul_023() | |||
| 460 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_023"); | 460 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_023"); |
| 461 | npu::tile_fwk::CodeGenCtx ctx; | 461 | npu::tile_fwk::CodeGenCtx ctx; |
| 462 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 462 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 463 | - codeGen.GenCode(*function, {}); | 463 | + codeGen.GenCode(*function); |
| 464 | } | 464 | } |
| 465 | 465 | ||
| 466 | void TestCodeGenMul::test_mul_024() | 466 | void TestCodeGenMul::test_mul_024() |
| @@ -479,7 +479,7 @@ void TestCodeGenMul::test_mul_024() | |||
| 479 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_024"); | 479 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_024"); |
| 480 | npu::tile_fwk::CodeGenCtx ctx; | 480 | npu::tile_fwk::CodeGenCtx ctx; |
| 481 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 481 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 482 | - codeGen.GenCode(*function, {}); | 482 | + codeGen.GenCode(*function); |
| 483 | } | 483 | } |
| 484 | 484 | ||
| 485 | void TestCodeGenMul::test_mul_025() | 485 | void TestCodeGenMul::test_mul_025() |
| @@ -498,7 +498,7 @@ void TestCodeGenMul::test_mul_025() | |||
| 498 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_025"); | 498 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_025"); |
| 499 | npu::tile_fwk::CodeGenCtx ctx; | 499 | npu::tile_fwk::CodeGenCtx ctx; |
| 500 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 500 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 501 | - codeGen.GenCode(*function, {}); | 501 | + codeGen.GenCode(*function); |
| 502 | } | 502 | } |
| 503 | 503 | ||
| 504 | void TestCodeGenMul::test_mul_026() | 504 | void TestCodeGenMul::test_mul_026() |
| @@ -517,7 +517,7 @@ void TestCodeGenMul::test_mul_026() | |||
| 517 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_026"); | 517 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_026"); |
| 518 | npu::tile_fwk::CodeGenCtx ctx; | 518 | npu::tile_fwk::CodeGenCtx ctx; |
| 519 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 519 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 520 | - codeGen.GenCode(*function, {}); | 520 | + codeGen.GenCode(*function); |
| 521 | } | 521 | } |
| 522 | 522 | ||
| 523 | void TestCodeGenMul::test_mul_027() | 523 | void TestCodeGenMul::test_mul_027() |
| @@ -536,7 +536,7 @@ void TestCodeGenMul::test_mul_027() | |||
| 536 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_027"); | 536 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_027"); |
| 537 | npu::tile_fwk::CodeGenCtx ctx; | 537 | npu::tile_fwk::CodeGenCtx ctx; |
| 538 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 538 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 539 | - codeGen.GenCode(*function, {}); | 539 | + codeGen.GenCode(*function); |
| 540 | } | 540 | } |
| 541 | 541 | ||
| 542 | void TestCodeGenMul::test_mul_028() | 542 | void TestCodeGenMul::test_mul_028() |
| @@ -555,7 +555,7 @@ void TestCodeGenMul::test_mul_028() | |||
| 555 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_028"); | 555 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_028"); |
| 556 | npu::tile_fwk::CodeGenCtx ctx; | 556 | npu::tile_fwk::CodeGenCtx ctx; |
| 557 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 557 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 558 | - codeGen.GenCode(*function, {}); | 558 | + codeGen.GenCode(*function); |
| 559 | } | 559 | } |
| 560 | 560 | ||
| 561 | void TestCodeGenMul::test_mul_029() | 561 | void TestCodeGenMul::test_mul_029() |
| @@ -574,7 +574,7 @@ void TestCodeGenMul::test_mul_029() | |||
| 574 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_029"); | 574 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_029"); |
| 575 | npu::tile_fwk::CodeGenCtx ctx; | 575 | npu::tile_fwk::CodeGenCtx ctx; |
| 576 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 576 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 577 | - codeGen.GenCode(*function, {}); | 577 | + codeGen.GenCode(*function); |
| 578 | } | 578 | } |
| 579 | 579 | ||
| 580 | void TestCodeGenMul::test_mul_030() | 580 | void TestCodeGenMul::test_mul_030() |
| @@ -593,7 +593,7 @@ void TestCodeGenMul::test_mul_030() | |||
| 593 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_030"); | 593 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_030"); |
| 594 | npu::tile_fwk::CodeGenCtx ctx; | 594 | npu::tile_fwk::CodeGenCtx ctx; |
| 595 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 595 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 596 | - codeGen.GenCode(*function, {}); | 596 | + codeGen.GenCode(*function); |
| 597 | } | 597 | } |
| 598 | 598 | ||
| 599 | void TestCodeGenMul::test_mul_031() | 599 | void TestCodeGenMul::test_mul_031() |
| @@ -612,7 +612,7 @@ void TestCodeGenMul::test_mul_031() | |||
| 612 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_031"); | 612 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_031"); |
| 613 | npu::tile_fwk::CodeGenCtx ctx; | 613 | npu::tile_fwk::CodeGenCtx ctx; |
| 614 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 614 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 615 | - codeGen.GenCode(*function, {}); | 615 | + codeGen.GenCode(*function); |
| 616 | } | 616 | } |
| 617 | 617 | ||
| 618 | void TestCodeGenMul::test_mul_032() | 618 | void TestCodeGenMul::test_mul_032() |
| @@ -631,7 +631,7 @@ void TestCodeGenMul::test_mul_032() | |||
| 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_032"); | 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_032"); |
| 632 | npu::tile_fwk::CodeGenCtx ctx; | 632 | npu::tile_fwk::CodeGenCtx ctx; |
| 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 634 | - codeGen.GenCode(*function, {}); | 634 | + codeGen.GenCode(*function); |
| 635 | } | 635 | } |
| 636 | 636 | ||
| 637 | void TestCodeGenMul::test_mul_033() | 637 | void TestCodeGenMul::test_mul_033() |
| @@ -650,7 +650,7 @@ void TestCodeGenMul::test_mul_033() | |||
| 650 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_033"); | 650 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_033"); |
| 651 | npu::tile_fwk::CodeGenCtx ctx; | 651 | npu::tile_fwk::CodeGenCtx ctx; |
| 652 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 652 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 653 | - codeGen.GenCode(*function, {}); | 653 | + codeGen.GenCode(*function); |
| 654 | } | 654 | } |
| 655 | 655 | ||
| 656 | void TestCodeGenMul::test_mul_034() | 656 | void TestCodeGenMul::test_mul_034() |
| @@ -669,7 +669,7 @@ void TestCodeGenMul::test_mul_034() | |||
| 669 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_034"); | 669 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_034"); |
| 670 | npu::tile_fwk::CodeGenCtx ctx; | 670 | npu::tile_fwk::CodeGenCtx ctx; |
| 671 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 671 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 672 | - codeGen.GenCode(*function, {}); | 672 | + codeGen.GenCode(*function); |
| 673 | } | 673 | } |
| 674 | 674 | ||
| 675 | void TestCodeGenMul::test_mul_035() | 675 | void TestCodeGenMul::test_mul_035() |
| @@ -688,7 +688,7 @@ void TestCodeGenMul::test_mul_035() | |||
| 688 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_035"); | 688 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_035"); |
| 689 | npu::tile_fwk::CodeGenCtx ctx; | 689 | npu::tile_fwk::CodeGenCtx ctx; |
| 690 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 690 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 691 | - codeGen.GenCode(*function, {}); | 691 | + codeGen.GenCode(*function); |
| 692 | } | 692 | } |
| 693 | 693 | ||
| 694 | void TestCodeGenMul::test_mul_036() | 694 | void TestCodeGenMul::test_mul_036() |
| @@ -707,7 +707,7 @@ void TestCodeGenMul::test_mul_036() | |||
| 707 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_036"); | 707 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_036"); |
| 708 | npu::tile_fwk::CodeGenCtx ctx; | 708 | npu::tile_fwk::CodeGenCtx ctx; |
| 709 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 709 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 710 | - codeGen.GenCode(*function, {}); | 710 | + codeGen.GenCode(*function); |
| 711 | } | 711 | } |
| 712 | 712 | ||
| 713 | void TestCodeGenMul::test_mul_037() | 713 | void TestCodeGenMul::test_mul_037() |
| @@ -726,7 +726,7 @@ void TestCodeGenMul::test_mul_037() | |||
| 726 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_037"); | 726 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_037"); |
| 727 | npu::tile_fwk::CodeGenCtx ctx; | 727 | npu::tile_fwk::CodeGenCtx ctx; |
| 728 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 728 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 729 | - codeGen.GenCode(*function, {}); | 729 | + codeGen.GenCode(*function); |
| 730 | } | 730 | } |
| 731 | 731 | ||
| 732 | void TestCodeGenMul::test_mul_038() | 732 | void TestCodeGenMul::test_mul_038() |
| @@ -745,7 +745,7 @@ void TestCodeGenMul::test_mul_038() | |||
| 745 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_038"); | 745 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_038"); |
| 746 | npu::tile_fwk::CodeGenCtx ctx; | 746 | npu::tile_fwk::CodeGenCtx ctx; |
| 747 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 747 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 748 | - codeGen.GenCode(*function, {}); | 748 | + codeGen.GenCode(*function); |
| 749 | } | 749 | } |
| 750 | 750 | ||
| 751 | void TestCodeGenMul::test_mul_039() | 751 | void TestCodeGenMul::test_mul_039() |
| @@ -764,7 +764,7 @@ void TestCodeGenMul::test_mul_039() | |||
| 764 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_039"); | 764 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_039"); |
| 765 | npu::tile_fwk::CodeGenCtx ctx; | 765 | npu::tile_fwk::CodeGenCtx ctx; |
| 766 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 766 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 767 | - codeGen.GenCode(*function, {}); | 767 | + codeGen.GenCode(*function); |
| 768 | } | 768 | } |
| 769 | 769 | ||
| 770 | void TestCodeGenMul::test_mul_040() | 770 | void TestCodeGenMul::test_mul_040() |
| @@ -783,7 +783,7 @@ void TestCodeGenMul::test_mul_040() | |||
| 783 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_040"); | 783 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_040"); |
| 784 | npu::tile_fwk::CodeGenCtx ctx; | 784 | npu::tile_fwk::CodeGenCtx ctx; |
| 785 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 785 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 786 | - codeGen.GenCode(*function, {}); | 786 | + codeGen.GenCode(*function); |
| 787 | } | 787 | } |
| 788 | 788 | ||
| 789 | void TestCodeGenMul::test_mul_041() | 789 | void TestCodeGenMul::test_mul_041() |
| @@ -802,7 +802,7 @@ void TestCodeGenMul::test_mul_041() | |||
| 802 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_041"); | 802 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_041"); |
| 803 | npu::tile_fwk::CodeGenCtx ctx; | 803 | npu::tile_fwk::CodeGenCtx ctx; |
| 804 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 804 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 805 | - codeGen.GenCode(*function, {}); | 805 | + codeGen.GenCode(*function); |
| 806 | } | 806 | } |
| 807 | 807 | ||
| 808 | void TestCodeGenMul::test_mul_042() | 808 | void TestCodeGenMul::test_mul_042() |
| @@ -821,7 +821,7 @@ void TestCodeGenMul::test_mul_042() | |||
| 821 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_042"); | 821 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_042"); |
| 822 | npu::tile_fwk::CodeGenCtx ctx; | 822 | npu::tile_fwk::CodeGenCtx ctx; |
| 823 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 823 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 824 | - codeGen.GenCode(*function, {}); | 824 | + codeGen.GenCode(*function); |
| 825 | } | 825 | } |
| 826 | 826 | ||
| 827 | void TestCodeGenMul::test_mul_043() | 827 | void TestCodeGenMul::test_mul_043() |
| @@ -840,7 +840,7 @@ void TestCodeGenMul::test_mul_043() | |||
| 840 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_043"); | 840 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_043"); |
| 841 | npu::tile_fwk::CodeGenCtx ctx; | 841 | npu::tile_fwk::CodeGenCtx ctx; |
| 842 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 842 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 843 | - codeGen.GenCode(*function, {}); | 843 | + codeGen.GenCode(*function); |
| 844 | } | 844 | } |
| 845 | 845 | ||
| 846 | void TestCodeGenMul::test_mul_044() | 846 | void TestCodeGenMul::test_mul_044() |
| @@ -859,7 +859,7 @@ void TestCodeGenMul::test_mul_044() | |||
| 859 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_044"); | 859 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_044"); |
| 860 | npu::tile_fwk::CodeGenCtx ctx; | 860 | npu::tile_fwk::CodeGenCtx ctx; |
| 861 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 861 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 862 | - codeGen.GenCode(*function, {}); | 862 | + codeGen.GenCode(*function); |
| 863 | } | 863 | } |
| 864 | 864 | ||
| 865 | void TestCodeGenMul::test_mul_045() | 865 | void TestCodeGenMul::test_mul_045() |
| @@ -878,7 +878,7 @@ void TestCodeGenMul::test_mul_045() | |||
| 878 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_045"); | 878 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_045"); |
| 879 | npu::tile_fwk::CodeGenCtx ctx; | 879 | npu::tile_fwk::CodeGenCtx ctx; |
| 880 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 880 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 881 | - codeGen.GenCode(*function, {}); | 881 | + codeGen.GenCode(*function); |
| 882 | } | 882 | } |
| 883 | 883 | ||
| 884 | void TestCodeGenMul::test_mul_046() | 884 | void TestCodeGenMul::test_mul_046() |
| @@ -897,7 +897,7 @@ void TestCodeGenMul::test_mul_046() | |||
| 897 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_046"); | 897 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_046"); |
| 898 | npu::tile_fwk::CodeGenCtx ctx; | 898 | npu::tile_fwk::CodeGenCtx ctx; |
| 899 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 899 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 900 | - codeGen.GenCode(*function, {}); | 900 | + codeGen.GenCode(*function); |
| 901 | } | 901 | } |
| 902 | 902 | ||
| 903 | void TestCodeGenMul::test_mul_047() | 903 | void TestCodeGenMul::test_mul_047() |
| @@ -916,7 +916,7 @@ void TestCodeGenMul::test_mul_047() | |||
| 916 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_047"); | 916 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_047"); |
| 917 | npu::tile_fwk::CodeGenCtx ctx; | 917 | npu::tile_fwk::CodeGenCtx ctx; |
| 918 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 918 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 919 | - codeGen.GenCode(*function, {}); | 919 | + codeGen.GenCode(*function); |
| 920 | } | 920 | } |
| 921 | 921 | ||
| 922 | void TestCodeGenMul::test_mul_048() | 922 | void TestCodeGenMul::test_mul_048() |
| @@ -935,5 +935,5 @@ void TestCodeGenMul::test_mul_048() | |||
| 935 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_048"); | 935 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "MUL_048"); |
| 936 | npu::tile_fwk::CodeGenCtx ctx; | 936 | npu::tile_fwk::CodeGenCtx ctx; |
| 937 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 937 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 938 | - codeGen.GenCode(*function, {}); | 938 | + codeGen.GenCode(*function); |
| 939 | } | 939 | } |
| @@ -42,7 +42,7 @@ void TestCodeGenNeg::test_Neg_fp16_001() | |||
| 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_001"); | 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_001"); |
| 43 | npu::tile_fwk::CodeGenCtx ctx; | 43 | npu::tile_fwk::CodeGenCtx ctx; |
| 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 45 | - codeGen.GenCode(*function, {}); | 45 | + codeGen.GenCode(*function); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void TestCodeGenNeg::test_Neg_fp16_002() | 48 | void TestCodeGenNeg::test_Neg_fp16_002() |
| @@ -61,7 +61,7 @@ void TestCodeGenNeg::test_Neg_fp16_002() | |||
| 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_002"); | 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_002"); |
| 62 | npu::tile_fwk::CodeGenCtx ctx; | 62 | npu::tile_fwk::CodeGenCtx ctx; |
| 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 64 | - codeGen.GenCode(*function, {}); | 64 | + codeGen.GenCode(*function); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void TestCodeGenNeg::test_Neg_fp32_003() | 67 | void TestCodeGenNeg::test_Neg_fp32_003() |
| @@ -80,7 +80,7 @@ void TestCodeGenNeg::test_Neg_fp32_003() | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_003"); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_003"); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void TestCodeGenNeg::test_Neg_fp32_004() | 86 | void TestCodeGenNeg::test_Neg_fp32_004() |
| @@ -99,7 +99,7 @@ void TestCodeGenNeg::test_Neg_fp32_004() | |||
| 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_004"); | 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_004"); |
| 100 | npu::tile_fwk::CodeGenCtx ctx; | 100 | npu::tile_fwk::CodeGenCtx ctx; |
| 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 102 | - codeGen.GenCode(*function, {}); | 102 | + codeGen.GenCode(*function); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void TestCodeGenNeg::test_Neg_fp16_005() | 105 | void TestCodeGenNeg::test_Neg_fp16_005() |
| @@ -118,7 +118,7 @@ void TestCodeGenNeg::test_Neg_fp16_005() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_005"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_005"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenNeg::test_Neg_fp32_006() | 124 | void TestCodeGenNeg::test_Neg_fp32_006() |
| @@ -137,7 +137,7 @@ void TestCodeGenNeg::test_Neg_fp32_006() | |||
| 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_006"); | 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_006"); |
| 138 | npu::tile_fwk::CodeGenCtx ctx; | 138 | npu::tile_fwk::CodeGenCtx ctx; |
| 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 140 | - codeGen.GenCode(*function, {}); | 140 | + codeGen.GenCode(*function); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void TestCodeGenNeg::test_Neg_fp16_007() | 143 | void TestCodeGenNeg::test_Neg_fp16_007() |
| @@ -156,7 +156,7 @@ void TestCodeGenNeg::test_Neg_fp16_007() | |||
| 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_007"); | 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_007"); |
| 157 | npu::tile_fwk::CodeGenCtx ctx; | 157 | npu::tile_fwk::CodeGenCtx ctx; |
| 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 159 | - codeGen.GenCode(*function, {}); | 159 | + codeGen.GenCode(*function); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | void TestCodeGenNeg::test_Neg_fp32_008() | 162 | void TestCodeGenNeg::test_Neg_fp32_008() |
| @@ -175,7 +175,7 @@ void TestCodeGenNeg::test_Neg_fp32_008() | |||
| 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_008"); | 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_008"); |
| 176 | npu::tile_fwk::CodeGenCtx ctx; | 176 | npu::tile_fwk::CodeGenCtx ctx; |
| 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 178 | - codeGen.GenCode(*function, {}); | 178 | + codeGen.GenCode(*function); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void TestCodeGenNeg::test_Neg_fp16_009() | 181 | void TestCodeGenNeg::test_Neg_fp16_009() |
| @@ -194,7 +194,7 @@ void TestCodeGenNeg::test_Neg_fp16_009() | |||
| 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_009"); | 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_009"); |
| 195 | npu::tile_fwk::CodeGenCtx ctx; | 195 | npu::tile_fwk::CodeGenCtx ctx; |
| 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 197 | - codeGen.GenCode(*function, {}); | 197 | + codeGen.GenCode(*function); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void TestCodeGenNeg::test_Neg_fp32_010() | 200 | void TestCodeGenNeg::test_Neg_fp32_010() |
| @@ -213,7 +213,7 @@ void TestCodeGenNeg::test_Neg_fp32_010() | |||
| 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_010"); | 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_010"); |
| 214 | npu::tile_fwk::CodeGenCtx ctx; | 214 | npu::tile_fwk::CodeGenCtx ctx; |
| 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 216 | - codeGen.GenCode(*function, {}); | 216 | + codeGen.GenCode(*function); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void TestCodeGenNeg::test_Neg_fp16_011() | 219 | void TestCodeGenNeg::test_Neg_fp16_011() |
| @@ -232,7 +232,7 @@ void TestCodeGenNeg::test_Neg_fp16_011() | |||
| 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_011"); | 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_011"); |
| 233 | npu::tile_fwk::CodeGenCtx ctx; | 233 | npu::tile_fwk::CodeGenCtx ctx; |
| 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 235 | - codeGen.GenCode(*function, {}); | 235 | + codeGen.GenCode(*function); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void TestCodeGenNeg::test_Neg_fp32_012() | 238 | void TestCodeGenNeg::test_Neg_fp32_012() |
| @@ -251,7 +251,7 @@ void TestCodeGenNeg::test_Neg_fp32_012() | |||
| 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_012"); | 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_012"); |
| 252 | npu::tile_fwk::CodeGenCtx ctx; | 252 | npu::tile_fwk::CodeGenCtx ctx; |
| 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 254 | - codeGen.GenCode(*function, {}); | 254 | + codeGen.GenCode(*function); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void TestCodeGenNeg::test_Neg_fp16_013() | 257 | void TestCodeGenNeg::test_Neg_fp16_013() |
| @@ -270,7 +270,7 @@ void TestCodeGenNeg::test_Neg_fp16_013() | |||
| 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_013"); | 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_013"); |
| 271 | npu::tile_fwk::CodeGenCtx ctx; | 271 | npu::tile_fwk::CodeGenCtx ctx; |
| 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 273 | - codeGen.GenCode(*function, {}); | 273 | + codeGen.GenCode(*function); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void TestCodeGenNeg::test_Neg_fp32_014() | 276 | void TestCodeGenNeg::test_Neg_fp32_014() |
| @@ -289,7 +289,7 @@ void TestCodeGenNeg::test_Neg_fp32_014() | |||
| 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_014"); | 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp32_014"); |
| 290 | npu::tile_fwk::CodeGenCtx ctx; | 290 | npu::tile_fwk::CodeGenCtx ctx; |
| 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 292 | - codeGen.GenCode(*function, {}); | 292 | + codeGen.GenCode(*function); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void TestCodeGenNeg::test_Neg_fp16_015() | 295 | void TestCodeGenNeg::test_Neg_fp16_015() |
| @@ -308,7 +308,7 @@ void TestCodeGenNeg::test_Neg_fp16_015() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_015"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_fp16_015"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenNeg::test_Neg_int16_016() | 314 | void TestCodeGenNeg::test_Neg_int16_016() |
| @@ -327,7 +327,7 @@ void TestCodeGenNeg::test_Neg_int16_016() | |||
| 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_int16_016"); | 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_int16_016"); |
| 328 | npu::tile_fwk::CodeGenCtx ctx; | 328 | npu::tile_fwk::CodeGenCtx ctx; |
| 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 330 | - codeGen.GenCode(*function, {}); | 330 | + codeGen.GenCode(*function); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | void TestCodeGenNeg::test_Neg_int32_017() | 333 | void TestCodeGenNeg::test_Neg_int32_017() |
| @@ -346,5 +346,5 @@ void TestCodeGenNeg::test_Neg_int32_017() | |||
| 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_int32_017"); | 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Neg_int32_017"); |
| 347 | npu::tile_fwk::CodeGenCtx ctx; | 347 | npu::tile_fwk::CodeGenCtx ctx; |
| 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 349 | - codeGen.GenCode(*function, {}); | 349 | + codeGen.GenCode(*function); |
| 350 | } | 350 | } |
| @@ -42,7 +42,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp16_001() | |||
| 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_001"); | 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_001"); |
| 43 | npu::tile_fwk::CodeGenCtx ctx; | 43 | npu::tile_fwk::CodeGenCtx ctx; |
| 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 45 | - codeGen.GenCode(*function, {}); | 45 | + codeGen.GenCode(*function); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void TestCodeGenReciprocal::test_Reciprocal_fp16_002() | 48 | void TestCodeGenReciprocal::test_Reciprocal_fp16_002() |
| @@ -61,7 +61,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp16_002() | |||
| 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_002"); | 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_002"); |
| 62 | npu::tile_fwk::CodeGenCtx ctx; | 62 | npu::tile_fwk::CodeGenCtx ctx; |
| 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 64 | - codeGen.GenCode(*function, {}); | 64 | + codeGen.GenCode(*function); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void TestCodeGenReciprocal::test_Reciprocal_fp32_003() | 67 | void TestCodeGenReciprocal::test_Reciprocal_fp32_003() |
| @@ -80,7 +80,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp32_003() | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_003"); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_003"); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void TestCodeGenReciprocal::test_Reciprocal_fp32_004() | 86 | void TestCodeGenReciprocal::test_Reciprocal_fp32_004() |
| @@ -99,7 +99,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp32_004() | |||
| 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_004"); | 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_004"); |
| 100 | npu::tile_fwk::CodeGenCtx ctx; | 100 | npu::tile_fwk::CodeGenCtx ctx; |
| 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 102 | - codeGen.GenCode(*function, {}); | 102 | + codeGen.GenCode(*function); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void TestCodeGenReciprocal::test_Reciprocal_fp16_005() | 105 | void TestCodeGenReciprocal::test_Reciprocal_fp16_005() |
| @@ -118,7 +118,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp16_005() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_005"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_005"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenReciprocal::test_Reciprocal_fp32_006() | 124 | void TestCodeGenReciprocal::test_Reciprocal_fp32_006() |
| @@ -137,7 +137,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp32_006() | |||
| 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_006"); | 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_006"); |
| 138 | npu::tile_fwk::CodeGenCtx ctx; | 138 | npu::tile_fwk::CodeGenCtx ctx; |
| 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 140 | - codeGen.GenCode(*function, {}); | 140 | + codeGen.GenCode(*function); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void TestCodeGenReciprocal::test_Reciprocal_fp16_007() | 143 | void TestCodeGenReciprocal::test_Reciprocal_fp16_007() |
| @@ -156,7 +156,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp16_007() | |||
| 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_007"); | 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_007"); |
| 157 | npu::tile_fwk::CodeGenCtx ctx; | 157 | npu::tile_fwk::CodeGenCtx ctx; |
| 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 159 | - codeGen.GenCode(*function, {}); | 159 | + codeGen.GenCode(*function); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | void TestCodeGenReciprocal::test_Reciprocal_fp32_008() | 162 | void TestCodeGenReciprocal::test_Reciprocal_fp32_008() |
| @@ -175,7 +175,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp32_008() | |||
| 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_008"); | 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_008"); |
| 176 | npu::tile_fwk::CodeGenCtx ctx; | 176 | npu::tile_fwk::CodeGenCtx ctx; |
| 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 178 | - codeGen.GenCode(*function, {}); | 178 | + codeGen.GenCode(*function); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void TestCodeGenReciprocal::test_Reciprocal_fp16_009() | 181 | void TestCodeGenReciprocal::test_Reciprocal_fp16_009() |
| @@ -194,7 +194,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp16_009() | |||
| 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_009"); | 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_009"); |
| 195 | npu::tile_fwk::CodeGenCtx ctx; | 195 | npu::tile_fwk::CodeGenCtx ctx; |
| 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 197 | - codeGen.GenCode(*function, {}); | 197 | + codeGen.GenCode(*function); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void TestCodeGenReciprocal::test_Reciprocal_fp32_010() | 200 | void TestCodeGenReciprocal::test_Reciprocal_fp32_010() |
| @@ -213,7 +213,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp32_010() | |||
| 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_010"); | 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_010"); |
| 214 | npu::tile_fwk::CodeGenCtx ctx; | 214 | npu::tile_fwk::CodeGenCtx ctx; |
| 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 216 | - codeGen.GenCode(*function, {}); | 216 | + codeGen.GenCode(*function); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void TestCodeGenReciprocal::test_Reciprocal_fp16_011() | 219 | void TestCodeGenReciprocal::test_Reciprocal_fp16_011() |
| @@ -232,7 +232,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp16_011() | |||
| 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_011"); | 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_011"); |
| 233 | npu::tile_fwk::CodeGenCtx ctx; | 233 | npu::tile_fwk::CodeGenCtx ctx; |
| 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 235 | - codeGen.GenCode(*function, {}); | 235 | + codeGen.GenCode(*function); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void TestCodeGenReciprocal::test_Reciprocal_fp32_012() | 238 | void TestCodeGenReciprocal::test_Reciprocal_fp32_012() |
| @@ -251,7 +251,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp32_012() | |||
| 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_012"); | 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_012"); |
| 252 | npu::tile_fwk::CodeGenCtx ctx; | 252 | npu::tile_fwk::CodeGenCtx ctx; |
| 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 254 | - codeGen.GenCode(*function, {}); | 254 | + codeGen.GenCode(*function); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void TestCodeGenReciprocal::test_Reciprocal_fp16_013() | 257 | void TestCodeGenReciprocal::test_Reciprocal_fp16_013() |
| @@ -270,7 +270,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp16_013() | |||
| 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_013"); | 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_013"); |
| 271 | npu::tile_fwk::CodeGenCtx ctx; | 271 | npu::tile_fwk::CodeGenCtx ctx; |
| 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 273 | - codeGen.GenCode(*function, {}); | 273 | + codeGen.GenCode(*function); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void TestCodeGenReciprocal::test_Reciprocal_fp32_014() | 276 | void TestCodeGenReciprocal::test_Reciprocal_fp32_014() |
| @@ -289,7 +289,7 @@ void TestCodeGenReciprocal::test_Reciprocal_fp32_014() | |||
| 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_014"); | 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp32_014"); |
| 290 | npu::tile_fwk::CodeGenCtx ctx; | 290 | npu::tile_fwk::CodeGenCtx ctx; |
| 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 292 | - codeGen.GenCode(*function, {}); | 292 | + codeGen.GenCode(*function); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void TestCodeGenReciprocal::test_Reciprocal_fp16_015() | 295 | void TestCodeGenReciprocal::test_Reciprocal_fp16_015() |
| @@ -308,5 +308,5 @@ void TestCodeGenReciprocal::test_Reciprocal_fp16_015() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_015"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Reciprocal_fp16_015"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| @@ -38,7 +38,7 @@ void TestCodeGenReshape::test_reshape_fp16_001() | |||
| 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_001"); | 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_001"); |
| 39 | npu::tile_fwk::CodeGenCtx ctx; | 39 | npu::tile_fwk::CodeGenCtx ctx; |
| 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 41 | - codeGen.GenCode(*function, {}); | 41 | + codeGen.GenCode(*function); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | void TestCodeGenReshape::test_reshape_fp16_002() | 44 | void TestCodeGenReshape::test_reshape_fp16_002() |
| @@ -53,7 +53,7 @@ void TestCodeGenReshape::test_reshape_fp16_002() | |||
| 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_002"); | 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_002"); |
| 54 | npu::tile_fwk::CodeGenCtx ctx; | 54 | npu::tile_fwk::CodeGenCtx ctx; |
| 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 56 | - codeGen.GenCode(*function, {}); | 56 | + codeGen.GenCode(*function); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void TestCodeGenReshape::test_reshape_fp16_003() | 59 | void TestCodeGenReshape::test_reshape_fp16_003() |
| @@ -68,7 +68,7 @@ void TestCodeGenReshape::test_reshape_fp16_003() | |||
| 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_003"); | 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_003"); |
| 69 | npu::tile_fwk::CodeGenCtx ctx; | 69 | npu::tile_fwk::CodeGenCtx ctx; |
| 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 71 | - codeGen.GenCode(*function, {}); | 71 | + codeGen.GenCode(*function); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void TestCodeGenReshape::test_reshape_fp16_004() | 74 | void TestCodeGenReshape::test_reshape_fp16_004() |
| @@ -83,7 +83,7 @@ void TestCodeGenReshape::test_reshape_fp16_004() | |||
| 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_004"); | 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_004"); |
| 84 | npu::tile_fwk::CodeGenCtx ctx; | 84 | npu::tile_fwk::CodeGenCtx ctx; |
| 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 86 | - codeGen.GenCode(*function, {}); | 86 | + codeGen.GenCode(*function); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | void TestCodeGenReshape::test_reshape_fp16_005() | 89 | void TestCodeGenReshape::test_reshape_fp16_005() |
| @@ -98,7 +98,7 @@ void TestCodeGenReshape::test_reshape_fp16_005() | |||
| 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_005"); | 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_005"); |
| 99 | npu::tile_fwk::CodeGenCtx ctx; | 99 | npu::tile_fwk::CodeGenCtx ctx; |
| 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 101 | - codeGen.GenCode(*function, {}); | 101 | + codeGen.GenCode(*function); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | void TestCodeGenReshape::test_reshape_fp16_006() | 104 | void TestCodeGenReshape::test_reshape_fp16_006() |
| @@ -113,7 +113,7 @@ void TestCodeGenReshape::test_reshape_fp16_006() | |||
| 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_006"); | 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_006"); |
| 114 | npu::tile_fwk::CodeGenCtx ctx; | 114 | npu::tile_fwk::CodeGenCtx ctx; |
| 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 116 | - codeGen.GenCode(*function, {}); | 116 | + codeGen.GenCode(*function); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | void TestCodeGenReshape::test_reshape_fp16_007() | 119 | void TestCodeGenReshape::test_reshape_fp16_007() |
| @@ -128,7 +128,7 @@ void TestCodeGenReshape::test_reshape_fp16_007() | |||
| 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_007"); | 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_007"); |
| 129 | npu::tile_fwk::CodeGenCtx ctx; | 129 | npu::tile_fwk::CodeGenCtx ctx; |
| 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 131 | - codeGen.GenCode(*function, {}); | 131 | + codeGen.GenCode(*function); |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | void TestCodeGenReshape::test_reshape_fp16_008() | 134 | void TestCodeGenReshape::test_reshape_fp16_008() |
| @@ -143,7 +143,7 @@ void TestCodeGenReshape::test_reshape_fp16_008() | |||
| 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_008"); | 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_008"); |
| 144 | npu::tile_fwk::CodeGenCtx ctx; | 144 | npu::tile_fwk::CodeGenCtx ctx; |
| 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 146 | - codeGen.GenCode(*function, {}); | 146 | + codeGen.GenCode(*function); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | void TestCodeGenReshape::test_reshape_fp16_009() | 149 | void TestCodeGenReshape::test_reshape_fp16_009() |
| @@ -158,7 +158,7 @@ void TestCodeGenReshape::test_reshape_fp16_009() | |||
| 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_009"); | 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_009"); |
| 159 | npu::tile_fwk::CodeGenCtx ctx; | 159 | npu::tile_fwk::CodeGenCtx ctx; |
| 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 161 | - codeGen.GenCode(*function, {}); | 161 | + codeGen.GenCode(*function); |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | void TestCodeGenReshape::test_reshape_fp16_010() | 164 | void TestCodeGenReshape::test_reshape_fp16_010() |
| @@ -173,7 +173,7 @@ void TestCodeGenReshape::test_reshape_fp16_010() | |||
| 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_010"); | 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP16_010"); |
| 174 | npu::tile_fwk::CodeGenCtx ctx; | 174 | npu::tile_fwk::CodeGenCtx ctx; |
| 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 176 | - codeGen.GenCode(*function, {}); | 176 | + codeGen.GenCode(*function); |
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | void TestCodeGenReshape::test_reshape_fp32_001() | 179 | void TestCodeGenReshape::test_reshape_fp32_001() |
| @@ -188,7 +188,7 @@ void TestCodeGenReshape::test_reshape_fp32_001() | |||
| 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_001"); | 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_001"); |
| 189 | npu::tile_fwk::CodeGenCtx ctx; | 189 | npu::tile_fwk::CodeGenCtx ctx; |
| 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 191 | - codeGen.GenCode(*function, {}); | 191 | + codeGen.GenCode(*function); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | void TestCodeGenReshape::test_reshape_fp32_002() | 194 | void TestCodeGenReshape::test_reshape_fp32_002() |
| @@ -203,7 +203,7 @@ void TestCodeGenReshape::test_reshape_fp32_002() | |||
| 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_002"); | 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_002"); |
| 204 | npu::tile_fwk::CodeGenCtx ctx; | 204 | npu::tile_fwk::CodeGenCtx ctx; |
| 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 206 | - codeGen.GenCode(*function, {}); | 206 | + codeGen.GenCode(*function); |
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | void TestCodeGenReshape::test_reshape_fp32_003() | 209 | void TestCodeGenReshape::test_reshape_fp32_003() |
| @@ -218,7 +218,7 @@ void TestCodeGenReshape::test_reshape_fp32_003() | |||
| 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_003"); | 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_003"); |
| 219 | npu::tile_fwk::CodeGenCtx ctx; | 219 | npu::tile_fwk::CodeGenCtx ctx; |
| 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 221 | - codeGen.GenCode(*function, {}); | 221 | + codeGen.GenCode(*function); |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | void TestCodeGenReshape::test_reshape_fp32_004() | 224 | void TestCodeGenReshape::test_reshape_fp32_004() |
| @@ -233,7 +233,7 @@ void TestCodeGenReshape::test_reshape_fp32_004() | |||
| 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_004"); | 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_004"); |
| 234 | npu::tile_fwk::CodeGenCtx ctx; | 234 | npu::tile_fwk::CodeGenCtx ctx; |
| 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 236 | - codeGen.GenCode(*function, {}); | 236 | + codeGen.GenCode(*function); |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | void TestCodeGenReshape::test_reshape_fp32_005() | 239 | void TestCodeGenReshape::test_reshape_fp32_005() |
| @@ -248,7 +248,7 @@ void TestCodeGenReshape::test_reshape_fp32_005() | |||
| 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_005"); | 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_005"); |
| 249 | npu::tile_fwk::CodeGenCtx ctx; | 249 | npu::tile_fwk::CodeGenCtx ctx; |
| 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 251 | - codeGen.GenCode(*function, {}); | 251 | + codeGen.GenCode(*function); |
| 252 | } | 252 | } |
| 253 | 253 | ||
| 254 | void TestCodeGenReshape::test_reshape_fp32_006() | 254 | void TestCodeGenReshape::test_reshape_fp32_006() |
| @@ -263,7 +263,7 @@ void TestCodeGenReshape::test_reshape_fp32_006() | |||
| 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_006"); | 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_006"); |
| 264 | npu::tile_fwk::CodeGenCtx ctx; | 264 | npu::tile_fwk::CodeGenCtx ctx; |
| 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 266 | - codeGen.GenCode(*function, {}); | 266 | + codeGen.GenCode(*function); |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | void TestCodeGenReshape::test_reshape_fp32_007() | 269 | void TestCodeGenReshape::test_reshape_fp32_007() |
| @@ -278,7 +278,7 @@ void TestCodeGenReshape::test_reshape_fp32_007() | |||
| 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_007"); | 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_007"); |
| 279 | npu::tile_fwk::CodeGenCtx ctx; | 279 | npu::tile_fwk::CodeGenCtx ctx; |
| 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 281 | - codeGen.GenCode(*function, {}); | 281 | + codeGen.GenCode(*function); |
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | void TestCodeGenReshape::test_reshape_fp32_008() | 284 | void TestCodeGenReshape::test_reshape_fp32_008() |
| @@ -293,7 +293,7 @@ void TestCodeGenReshape::test_reshape_fp32_008() | |||
| 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_008"); | 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_008"); |
| 294 | npu::tile_fwk::CodeGenCtx ctx; | 294 | npu::tile_fwk::CodeGenCtx ctx; |
| 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 296 | - codeGen.GenCode(*function, {}); | 296 | + codeGen.GenCode(*function); |
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | void TestCodeGenReshape::test_reshape_fp32_009() | 299 | void TestCodeGenReshape::test_reshape_fp32_009() |
| @@ -308,7 +308,7 @@ void TestCodeGenReshape::test_reshape_fp32_009() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_009"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_009"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenReshape::test_reshape_fp32_010() | 314 | void TestCodeGenReshape::test_reshape_fp32_010() |
| @@ -323,7 +323,7 @@ void TestCodeGenReshape::test_reshape_fp32_010() | |||
| 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_010"); | 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_FP32_010"); |
| 324 | npu::tile_fwk::CodeGenCtx ctx; | 324 | npu::tile_fwk::CodeGenCtx ctx; |
| 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 326 | - codeGen.GenCode(*function, {}); | 326 | + codeGen.GenCode(*function); |
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | void TestCodeGenReshape::test_reshape_inplace_fp32_001() | 329 | void TestCodeGenReshape::test_reshape_inplace_fp32_001() |
| @@ -338,7 +338,7 @@ void TestCodeGenReshape::test_reshape_inplace_fp32_001() | |||
| 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INPLACE_FP32_001"); | 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INPLACE_FP32_001"); |
| 339 | npu::tile_fwk::CodeGenCtx ctx; | 339 | npu::tile_fwk::CodeGenCtx ctx; |
| 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 341 | - codeGen.GenCode(*function, {}); | 341 | + codeGen.GenCode(*function); |
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | void TestCodeGenReshape::test_reshape_inplace_fp32_002() | 344 | void TestCodeGenReshape::test_reshape_inplace_fp32_002() |
| @@ -353,7 +353,7 @@ void TestCodeGenReshape::test_reshape_inplace_fp32_002() | |||
| 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INPLACE_FP32_002"); | 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INPLACE_FP32_002"); |
| 354 | npu::tile_fwk::CodeGenCtx ctx; | 354 | npu::tile_fwk::CodeGenCtx ctx; |
| 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 356 | - codeGen.GenCode(*function, {}); | 356 | + codeGen.GenCode(*function); |
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | void TestCodeGenReshape::test_reshape_inplace_fp32_003() | 359 | void TestCodeGenReshape::test_reshape_inplace_fp32_003() |
| @@ -368,7 +368,7 @@ void TestCodeGenReshape::test_reshape_inplace_fp32_003() | |||
| 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INPLACE_FP32_003"); | 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INPLACE_FP32_003"); |
| 369 | npu::tile_fwk::CodeGenCtx ctx; | 369 | npu::tile_fwk::CodeGenCtx ctx; |
| 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 371 | - codeGen.GenCode(*function, {}); | 371 | + codeGen.GenCode(*function); |
| 372 | } | 372 | } |
| 373 | 373 | ||
| 374 | void TestCodeGenReshape::test_reshape_inplace_fp32_004() | 374 | void TestCodeGenReshape::test_reshape_inplace_fp32_004() |
| @@ -383,7 +383,7 @@ void TestCodeGenReshape::test_reshape_inplace_fp32_004() | |||
| 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INPLACE_FP32_004"); | 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INPLACE_FP32_004"); |
| 384 | npu::tile_fwk::CodeGenCtx ctx; | 384 | npu::tile_fwk::CodeGenCtx ctx; |
| 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 386 | - codeGen.GenCode(*function, {}); | 386 | + codeGen.GenCode(*function); |
| 387 | } | 387 | } |
| 388 | 388 | ||
| 389 | void TestCodeGenReshape::test_reshape_inplace_fp32_005() | 389 | void TestCodeGenReshape::test_reshape_inplace_fp32_005() |
| @@ -398,7 +398,7 @@ void TestCodeGenReshape::test_reshape_inplace_fp32_005() | |||
| 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INPLACE_FP32_005"); | 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INPLACE_FP32_005"); |
| 399 | npu::tile_fwk::CodeGenCtx ctx; | 399 | npu::tile_fwk::CodeGenCtx ctx; |
| 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 401 | - codeGen.GenCode(*function, {}); | 401 | + codeGen.GenCode(*function); |
| 402 | } | 402 | } |
| 403 | 403 | ||
| 404 | void TestCodeGenReshape::test_reshape_int8_001() | 404 | void TestCodeGenReshape::test_reshape_int8_001() |
| @@ -413,7 +413,7 @@ void TestCodeGenReshape::test_reshape_int8_001() | |||
| 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT8_001"); | 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT8_001"); |
| 414 | npu::tile_fwk::CodeGenCtx ctx; | 414 | npu::tile_fwk::CodeGenCtx ctx; |
| 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 416 | - codeGen.GenCode(*function, {}); | 416 | + codeGen.GenCode(*function); |
| 417 | } | 417 | } |
| 418 | 418 | ||
| 419 | void TestCodeGenReshape::test_reshape_int8_002() | 419 | void TestCodeGenReshape::test_reshape_int8_002() |
| @@ -428,7 +428,7 @@ void TestCodeGenReshape::test_reshape_int8_002() | |||
| 428 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT8_002"); | 428 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT8_002"); |
| 429 | npu::tile_fwk::CodeGenCtx ctx; | 429 | npu::tile_fwk::CodeGenCtx ctx; |
| 430 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 430 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 431 | - codeGen.GenCode(*function, {}); | 431 | + codeGen.GenCode(*function); |
| 432 | } | 432 | } |
| 433 | 433 | ||
| 434 | void TestCodeGenReshape::test_reshape_int8_003() | 434 | void TestCodeGenReshape::test_reshape_int8_003() |
| @@ -443,7 +443,7 @@ void TestCodeGenReshape::test_reshape_int8_003() | |||
| 443 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT8_003"); | 443 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT8_003"); |
| 444 | npu::tile_fwk::CodeGenCtx ctx; | 444 | npu::tile_fwk::CodeGenCtx ctx; |
| 445 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 445 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 446 | - codeGen.GenCode(*function, {}); | 446 | + codeGen.GenCode(*function); |
| 447 | } | 447 | } |
| 448 | 448 | ||
| 449 | void TestCodeGenReshape::test_reshape_int8_004() | 449 | void TestCodeGenReshape::test_reshape_int8_004() |
| @@ -458,7 +458,7 @@ void TestCodeGenReshape::test_reshape_int8_004() | |||
| 458 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT8_004"); | 458 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT8_004"); |
| 459 | npu::tile_fwk::CodeGenCtx ctx; | 459 | npu::tile_fwk::CodeGenCtx ctx; |
| 460 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 460 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 461 | - codeGen.GenCode(*function, {}); | 461 | + codeGen.GenCode(*function); |
| 462 | } | 462 | } |
| 463 | 463 | ||
| 464 | void TestCodeGenReshape::test_reshape_int8_005() | 464 | void TestCodeGenReshape::test_reshape_int8_005() |
| @@ -473,7 +473,7 @@ void TestCodeGenReshape::test_reshape_int8_005() | |||
| 473 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT8_005"); | 473 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT8_005"); |
| 474 | npu::tile_fwk::CodeGenCtx ctx; | 474 | npu::tile_fwk::CodeGenCtx ctx; |
| 475 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 475 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 476 | - codeGen.GenCode(*function, {}); | 476 | + codeGen.GenCode(*function); |
| 477 | } | 477 | } |
| 478 | 478 | ||
| 479 | void TestCodeGenReshape::test_reshape_int16_001() | 479 | void TestCodeGenReshape::test_reshape_int16_001() |
| @@ -488,7 +488,7 @@ void TestCodeGenReshape::test_reshape_int16_001() | |||
| 488 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT16_001"); | 488 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT16_001"); |
| 489 | npu::tile_fwk::CodeGenCtx ctx; | 489 | npu::tile_fwk::CodeGenCtx ctx; |
| 490 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 490 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 491 | - codeGen.GenCode(*function, {}); | 491 | + codeGen.GenCode(*function); |
| 492 | } | 492 | } |
| 493 | 493 | ||
| 494 | void TestCodeGenReshape::test_reshape_int16_002() | 494 | void TestCodeGenReshape::test_reshape_int16_002() |
| @@ -503,7 +503,7 @@ void TestCodeGenReshape::test_reshape_int16_002() | |||
| 503 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT16_002"); | 503 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT16_002"); |
| 504 | npu::tile_fwk::CodeGenCtx ctx; | 504 | npu::tile_fwk::CodeGenCtx ctx; |
| 505 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 505 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 506 | - codeGen.GenCode(*function, {}); | 506 | + codeGen.GenCode(*function); |
| 507 | } | 507 | } |
| 508 | 508 | ||
| 509 | void TestCodeGenReshape::test_reshape_int16_003() | 509 | void TestCodeGenReshape::test_reshape_int16_003() |
| @@ -518,7 +518,7 @@ void TestCodeGenReshape::test_reshape_int16_003() | |||
| 518 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT16_003"); | 518 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT16_003"); |
| 519 | npu::tile_fwk::CodeGenCtx ctx; | 519 | npu::tile_fwk::CodeGenCtx ctx; |
| 520 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 520 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 521 | - codeGen.GenCode(*function, {}); | 521 | + codeGen.GenCode(*function); |
| 522 | } | 522 | } |
| 523 | 523 | ||
| 524 | void TestCodeGenReshape::test_reshape_int16_004() | 524 | void TestCodeGenReshape::test_reshape_int16_004() |
| @@ -533,7 +533,7 @@ void TestCodeGenReshape::test_reshape_int16_004() | |||
| 533 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT16_004"); | 533 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT16_004"); |
| 534 | npu::tile_fwk::CodeGenCtx ctx; | 534 | npu::tile_fwk::CodeGenCtx ctx; |
| 535 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 535 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 536 | - codeGen.GenCode(*function, {}); | 536 | + codeGen.GenCode(*function); |
| 537 | } | 537 | } |
| 538 | 538 | ||
| 539 | void TestCodeGenReshape::test_reshape_int16_005() | 539 | void TestCodeGenReshape::test_reshape_int16_005() |
| @@ -548,7 +548,7 @@ void TestCodeGenReshape::test_reshape_int16_005() | |||
| 548 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT16_005"); | 548 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT16_005"); |
| 549 | npu::tile_fwk::CodeGenCtx ctx; | 549 | npu::tile_fwk::CodeGenCtx ctx; |
| 550 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 550 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 551 | - codeGen.GenCode(*function, {}); | 551 | + codeGen.GenCode(*function); |
| 552 | } | 552 | } |
| 553 | 553 | ||
| 554 | void TestCodeGenReshape::test_reshape_int32_001() | 554 | void TestCodeGenReshape::test_reshape_int32_001() |
| @@ -563,7 +563,7 @@ void TestCodeGenReshape::test_reshape_int32_001() | |||
| 563 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT32_001"); | 563 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT32_001"); |
| 564 | npu::tile_fwk::CodeGenCtx ctx; | 564 | npu::tile_fwk::CodeGenCtx ctx; |
| 565 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 565 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 566 | - codeGen.GenCode(*function, {}); | 566 | + codeGen.GenCode(*function); |
| 567 | } | 567 | } |
| 568 | 568 | ||
| 569 | void TestCodeGenReshape::test_reshape_int32_002() | 569 | void TestCodeGenReshape::test_reshape_int32_002() |
| @@ -578,7 +578,7 @@ void TestCodeGenReshape::test_reshape_int32_002() | |||
| 578 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT32_002"); | 578 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT32_002"); |
| 579 | npu::tile_fwk::CodeGenCtx ctx; | 579 | npu::tile_fwk::CodeGenCtx ctx; |
| 580 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 580 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 581 | - codeGen.GenCode(*function, {}); | 581 | + codeGen.GenCode(*function); |
| 582 | } | 582 | } |
| 583 | 583 | ||
| 584 | void TestCodeGenReshape::test_reshape_int32_003() | 584 | void TestCodeGenReshape::test_reshape_int32_003() |
| @@ -593,7 +593,7 @@ void TestCodeGenReshape::test_reshape_int32_003() | |||
| 593 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT32_003"); | 593 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT32_003"); |
| 594 | npu::tile_fwk::CodeGenCtx ctx; | 594 | npu::tile_fwk::CodeGenCtx ctx; |
| 595 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 595 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 596 | - codeGen.GenCode(*function, {}); | 596 | + codeGen.GenCode(*function); |
| 597 | } | 597 | } |
| 598 | 598 | ||
| 599 | void TestCodeGenReshape::test_reshape_int32_004() | 599 | void TestCodeGenReshape::test_reshape_int32_004() |
| @@ -608,7 +608,7 @@ void TestCodeGenReshape::test_reshape_int32_004() | |||
| 608 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT32_004"); | 608 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT32_004"); |
| 609 | npu::tile_fwk::CodeGenCtx ctx; | 609 | npu::tile_fwk::CodeGenCtx ctx; |
| 610 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 610 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 611 | - codeGen.GenCode(*function, {}); | 611 | + codeGen.GenCode(*function); |
| 612 | } | 612 | } |
| 613 | 613 | ||
| 614 | void TestCodeGenReshape::test_reshape_int32_005() | 614 | void TestCodeGenReshape::test_reshape_int32_005() |
| @@ -623,5 +623,5 @@ void TestCodeGenReshape::test_reshape_int32_005() | |||
| 623 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT32_005"); | 623 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "RESHAPE_INT32_005"); |
| 624 | npu::tile_fwk::CodeGenCtx ctx; | 624 | npu::tile_fwk::CodeGenCtx ctx; |
| 625 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 625 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 626 | - codeGen.GenCode(*function, {}); | 626 | + codeGen.GenCode(*function); |
| 627 | } | 627 | } |
| @@ -42,7 +42,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp16_001() | |||
| 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_001"); | 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_001"); |
| 43 | npu::tile_fwk::CodeGenCtx ctx; | 43 | npu::tile_fwk::CodeGenCtx ctx; |
| 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 45 | - codeGen.GenCode(*function, {}); | 45 | + codeGen.GenCode(*function); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void TestCodeGenRsqrt::test_Rsqrt_fp16_002() | 48 | void TestCodeGenRsqrt::test_Rsqrt_fp16_002() |
| @@ -61,7 +61,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp16_002() | |||
| 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_002"); | 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_002"); |
| 62 | npu::tile_fwk::CodeGenCtx ctx; | 62 | npu::tile_fwk::CodeGenCtx ctx; |
| 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 64 | - codeGen.GenCode(*function, {}); | 64 | + codeGen.GenCode(*function); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void TestCodeGenRsqrt::test_Rsqrt_fp32_003() | 67 | void TestCodeGenRsqrt::test_Rsqrt_fp32_003() |
| @@ -80,7 +80,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp32_003() | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_003"); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_003"); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void TestCodeGenRsqrt::test_Rsqrt_fp32_004() | 86 | void TestCodeGenRsqrt::test_Rsqrt_fp32_004() |
| @@ -99,7 +99,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp32_004() | |||
| 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_004"); | 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_004"); |
| 100 | npu::tile_fwk::CodeGenCtx ctx; | 100 | npu::tile_fwk::CodeGenCtx ctx; |
| 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 102 | - codeGen.GenCode(*function, {}); | 102 | + codeGen.GenCode(*function); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void TestCodeGenRsqrt::test_Rsqrt_fp16_005() | 105 | void TestCodeGenRsqrt::test_Rsqrt_fp16_005() |
| @@ -118,7 +118,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp16_005() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_005"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_005"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenRsqrt::test_Rsqrt_fp32_006() | 124 | void TestCodeGenRsqrt::test_Rsqrt_fp32_006() |
| @@ -137,7 +137,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp32_006() | |||
| 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_006"); | 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_006"); |
| 138 | npu::tile_fwk::CodeGenCtx ctx; | 138 | npu::tile_fwk::CodeGenCtx ctx; |
| 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 140 | - codeGen.GenCode(*function, {}); | 140 | + codeGen.GenCode(*function); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void TestCodeGenRsqrt::test_Rsqrt_fp16_007() | 143 | void TestCodeGenRsqrt::test_Rsqrt_fp16_007() |
| @@ -156,7 +156,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp16_007() | |||
| 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_007"); | 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_007"); |
| 157 | npu::tile_fwk::CodeGenCtx ctx; | 157 | npu::tile_fwk::CodeGenCtx ctx; |
| 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 159 | - codeGen.GenCode(*function, {}); | 159 | + codeGen.GenCode(*function); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | void TestCodeGenRsqrt::test_Rsqrt_fp32_008() | 162 | void TestCodeGenRsqrt::test_Rsqrt_fp32_008() |
| @@ -175,7 +175,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp32_008() | |||
| 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_008"); | 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_008"); |
| 176 | npu::tile_fwk::CodeGenCtx ctx; | 176 | npu::tile_fwk::CodeGenCtx ctx; |
| 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 178 | - codeGen.GenCode(*function, {}); | 178 | + codeGen.GenCode(*function); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void TestCodeGenRsqrt::test_Rsqrt_fp16_009() | 181 | void TestCodeGenRsqrt::test_Rsqrt_fp16_009() |
| @@ -194,7 +194,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp16_009() | |||
| 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_009"); | 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_009"); |
| 195 | npu::tile_fwk::CodeGenCtx ctx; | 195 | npu::tile_fwk::CodeGenCtx ctx; |
| 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 197 | - codeGen.GenCode(*function, {}); | 197 | + codeGen.GenCode(*function); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void TestCodeGenRsqrt::test_Rsqrt_fp32_010() | 200 | void TestCodeGenRsqrt::test_Rsqrt_fp32_010() |
| @@ -213,7 +213,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp32_010() | |||
| 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_010"); | 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_010"); |
| 214 | npu::tile_fwk::CodeGenCtx ctx; | 214 | npu::tile_fwk::CodeGenCtx ctx; |
| 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 216 | - codeGen.GenCode(*function, {}); | 216 | + codeGen.GenCode(*function); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void TestCodeGenRsqrt::test_Rsqrt_fp16_011() | 219 | void TestCodeGenRsqrt::test_Rsqrt_fp16_011() |
| @@ -232,7 +232,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp16_011() | |||
| 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_011"); | 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_011"); |
| 233 | npu::tile_fwk::CodeGenCtx ctx; | 233 | npu::tile_fwk::CodeGenCtx ctx; |
| 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 235 | - codeGen.GenCode(*function, {}); | 235 | + codeGen.GenCode(*function); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void TestCodeGenRsqrt::test_Rsqrt_fp32_012() | 238 | void TestCodeGenRsqrt::test_Rsqrt_fp32_012() |
| @@ -251,7 +251,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp32_012() | |||
| 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_012"); | 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_012"); |
| 252 | npu::tile_fwk::CodeGenCtx ctx; | 252 | npu::tile_fwk::CodeGenCtx ctx; |
| 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 254 | - codeGen.GenCode(*function, {}); | 254 | + codeGen.GenCode(*function); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void TestCodeGenRsqrt::test_Rsqrt_fp16_013() | 257 | void TestCodeGenRsqrt::test_Rsqrt_fp16_013() |
| @@ -270,7 +270,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp16_013() | |||
| 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_013"); | 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_013"); |
| 271 | npu::tile_fwk::CodeGenCtx ctx; | 271 | npu::tile_fwk::CodeGenCtx ctx; |
| 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 273 | - codeGen.GenCode(*function, {}); | 273 | + codeGen.GenCode(*function); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void TestCodeGenRsqrt::test_Rsqrt_fp32_014() | 276 | void TestCodeGenRsqrt::test_Rsqrt_fp32_014() |
| @@ -289,7 +289,7 @@ void TestCodeGenRsqrt::test_Rsqrt_fp32_014() | |||
| 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_014"); | 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp32_014"); |
| 290 | npu::tile_fwk::CodeGenCtx ctx; | 290 | npu::tile_fwk::CodeGenCtx ctx; |
| 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 292 | - codeGen.GenCode(*function, {}); | 292 | + codeGen.GenCode(*function); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void TestCodeGenRsqrt::test_Rsqrt_fp16_015() | 295 | void TestCodeGenRsqrt::test_Rsqrt_fp16_015() |
| @@ -308,5 +308,5 @@ void TestCodeGenRsqrt::test_Rsqrt_fp16_015() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_015"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Rsqrt_fp16_015"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| @@ -42,7 +42,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_001() | |||
| 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_001"); | 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_001"); |
| 43 | npu::tile_fwk::CodeGenCtx ctx; | 43 | npu::tile_fwk::CodeGenCtx ctx; |
| 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 45 | - codeGen.GenCode(*function, {}); | 45 | + codeGen.GenCode(*function); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void TestCodeGenSigmoid::test_sigmoid_002() | 48 | void TestCodeGenSigmoid::test_sigmoid_002() |
| @@ -61,7 +61,7 @@ void TestCodeGenSigmoid::test_sigmoid_002() | |||
| 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_002"); | 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_002"); |
| 62 | npu::tile_fwk::CodeGenCtx ctx; | 62 | npu::tile_fwk::CodeGenCtx ctx; |
| 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 64 | - codeGen.GenCode(*function, {}); | 64 | + codeGen.GenCode(*function); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void TestCodeGenSigmoid::test_sigmoid_fp16_003() | 67 | void TestCodeGenSigmoid::test_sigmoid_fp16_003() |
| @@ -80,7 +80,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_003() | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_003"); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_003"); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void TestCodeGenSigmoid::test_sigmoid_fp16_004() | 86 | void TestCodeGenSigmoid::test_sigmoid_fp16_004() |
| @@ -99,7 +99,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_004() | |||
| 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_004"); | 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_004"); |
| 100 | npu::tile_fwk::CodeGenCtx ctx; | 100 | npu::tile_fwk::CodeGenCtx ctx; |
| 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 102 | - codeGen.GenCode(*function, {}); | 102 | + codeGen.GenCode(*function); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void TestCodeGenSigmoid::test_sigmoid_fp16_005() | 105 | void TestCodeGenSigmoid::test_sigmoid_fp16_005() |
| @@ -118,7 +118,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_005() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_005"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_005"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenSigmoid::test_sigmoid_fp16_006() | 124 | void TestCodeGenSigmoid::test_sigmoid_fp16_006() |
| @@ -137,7 +137,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_006() | |||
| 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_006"); | 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_006"); |
| 138 | npu::tile_fwk::CodeGenCtx ctx; | 138 | npu::tile_fwk::CodeGenCtx ctx; |
| 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 140 | - codeGen.GenCode(*function, {}); | 140 | + codeGen.GenCode(*function); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void TestCodeGenSigmoid::test_sigmoid_fp16_007() | 143 | void TestCodeGenSigmoid::test_sigmoid_fp16_007() |
| @@ -156,7 +156,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_007() | |||
| 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_007"); | 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_007"); |
| 157 | npu::tile_fwk::CodeGenCtx ctx; | 157 | npu::tile_fwk::CodeGenCtx ctx; |
| 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 159 | - codeGen.GenCode(*function, {}); | 159 | + codeGen.GenCode(*function); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | void TestCodeGenSigmoid::test_sigmoid_fp16_008() | 162 | void TestCodeGenSigmoid::test_sigmoid_fp16_008() |
| @@ -175,7 +175,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_008() | |||
| 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_008"); | 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_008"); |
| 176 | npu::tile_fwk::CodeGenCtx ctx; | 176 | npu::tile_fwk::CodeGenCtx ctx; |
| 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 178 | - codeGen.GenCode(*function, {}); | 178 | + codeGen.GenCode(*function); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void TestCodeGenSigmoid::test_sigmoid_fp16_009() | 181 | void TestCodeGenSigmoid::test_sigmoid_fp16_009() |
| @@ -194,7 +194,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_009() | |||
| 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_009"); | 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_009"); |
| 195 | npu::tile_fwk::CodeGenCtx ctx; | 195 | npu::tile_fwk::CodeGenCtx ctx; |
| 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 197 | - codeGen.GenCode(*function, {}); | 197 | + codeGen.GenCode(*function); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void TestCodeGenSigmoid::test_sigmoid_fp16_010() | 200 | void TestCodeGenSigmoid::test_sigmoid_fp16_010() |
| @@ -213,7 +213,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_010() | |||
| 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_010"); | 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_010"); |
| 214 | npu::tile_fwk::CodeGenCtx ctx; | 214 | npu::tile_fwk::CodeGenCtx ctx; |
| 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 216 | - codeGen.GenCode(*function, {}); | 216 | + codeGen.GenCode(*function); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void TestCodeGenSigmoid::test_sigmoid_fp16_011() | 219 | void TestCodeGenSigmoid::test_sigmoid_fp16_011() |
| @@ -232,7 +232,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_011() | |||
| 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_011"); | 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_011"); |
| 233 | npu::tile_fwk::CodeGenCtx ctx; | 233 | npu::tile_fwk::CodeGenCtx ctx; |
| 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 235 | - codeGen.GenCode(*function, {}); | 235 | + codeGen.GenCode(*function); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void TestCodeGenSigmoid::test_sigmoid_fp16_012() | 238 | void TestCodeGenSigmoid::test_sigmoid_fp16_012() |
| @@ -251,7 +251,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_012() | |||
| 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_012"); | 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_012"); |
| 252 | npu::tile_fwk::CodeGenCtx ctx; | 252 | npu::tile_fwk::CodeGenCtx ctx; |
| 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 254 | - codeGen.GenCode(*function, {}); | 254 | + codeGen.GenCode(*function); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void TestCodeGenSigmoid::test_sigmoid_fp16_013() | 257 | void TestCodeGenSigmoid::test_sigmoid_fp16_013() |
| @@ -270,7 +270,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_013() | |||
| 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_013"); | 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_013"); |
| 271 | npu::tile_fwk::CodeGenCtx ctx; | 271 | npu::tile_fwk::CodeGenCtx ctx; |
| 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 273 | - codeGen.GenCode(*function, {}); | 273 | + codeGen.GenCode(*function); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void TestCodeGenSigmoid::test_sigmoid_fp16_014() | 276 | void TestCodeGenSigmoid::test_sigmoid_fp16_014() |
| @@ -289,7 +289,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_014() | |||
| 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_014"); | 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_014"); |
| 290 | npu::tile_fwk::CodeGenCtx ctx; | 290 | npu::tile_fwk::CodeGenCtx ctx; |
| 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 292 | - codeGen.GenCode(*function, {}); | 292 | + codeGen.GenCode(*function); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void TestCodeGenSigmoid::test_sigmoid_fp16_015() | 295 | void TestCodeGenSigmoid::test_sigmoid_fp16_015() |
| @@ -308,7 +308,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp16_015() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_015"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP16_015"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenSigmoid::test_sigmoid_fp32_001() | 314 | void TestCodeGenSigmoid::test_sigmoid_fp32_001() |
| @@ -327,7 +327,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_001() | |||
| 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_001"); | 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_001"); |
| 328 | npu::tile_fwk::CodeGenCtx ctx; | 328 | npu::tile_fwk::CodeGenCtx ctx; |
| 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 330 | - codeGen.GenCode(*function, {}); | 330 | + codeGen.GenCode(*function); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | void TestCodeGenSigmoid::test_sigmoid_fp32_002() | 333 | void TestCodeGenSigmoid::test_sigmoid_fp32_002() |
| @@ -346,7 +346,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_002() | |||
| 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_002"); | 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_002"); |
| 347 | npu::tile_fwk::CodeGenCtx ctx; | 347 | npu::tile_fwk::CodeGenCtx ctx; |
| 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 349 | - codeGen.GenCode(*function, {}); | 349 | + codeGen.GenCode(*function); |
| 350 | } | 350 | } |
| 351 | 351 | ||
| 352 | void TestCodeGenSigmoid::test_sigmoid_fp32_003() | 352 | void TestCodeGenSigmoid::test_sigmoid_fp32_003() |
| @@ -365,7 +365,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_003() | |||
| 365 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_003"); | 365 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_003"); |
| 366 | npu::tile_fwk::CodeGenCtx ctx; | 366 | npu::tile_fwk::CodeGenCtx ctx; |
| 367 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 367 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 368 | - codeGen.GenCode(*function, {}); | 368 | + codeGen.GenCode(*function); |
| 369 | } | 369 | } |
| 370 | 370 | ||
| 371 | void TestCodeGenSigmoid::test_sigmoid_fp32_004() | 371 | void TestCodeGenSigmoid::test_sigmoid_fp32_004() |
| @@ -384,7 +384,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_004() | |||
| 384 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_004"); | 384 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_004"); |
| 385 | npu::tile_fwk::CodeGenCtx ctx; | 385 | npu::tile_fwk::CodeGenCtx ctx; |
| 386 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 386 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 387 | - codeGen.GenCode(*function, {}); | 387 | + codeGen.GenCode(*function); |
| 388 | } | 388 | } |
| 389 | 389 | ||
| 390 | void TestCodeGenSigmoid::test_sigmoid_fp32_005() | 390 | void TestCodeGenSigmoid::test_sigmoid_fp32_005() |
| @@ -403,7 +403,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_005() | |||
| 403 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_005"); | 403 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_005"); |
| 404 | npu::tile_fwk::CodeGenCtx ctx; | 404 | npu::tile_fwk::CodeGenCtx ctx; |
| 405 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 405 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 406 | - codeGen.GenCode(*function, {}); | 406 | + codeGen.GenCode(*function); |
| 407 | } | 407 | } |
| 408 | 408 | ||
| 409 | void TestCodeGenSigmoid::test_sigmoid_fp32_006() | 409 | void TestCodeGenSigmoid::test_sigmoid_fp32_006() |
| @@ -422,7 +422,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_006() | |||
| 422 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_006"); | 422 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_006"); |
| 423 | npu::tile_fwk::CodeGenCtx ctx; | 423 | npu::tile_fwk::CodeGenCtx ctx; |
| 424 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 424 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 425 | - codeGen.GenCode(*function, {}); | 425 | + codeGen.GenCode(*function); |
| 426 | } | 426 | } |
| 427 | 427 | ||
| 428 | void TestCodeGenSigmoid::test_sigmoid_fp32_007() | 428 | void TestCodeGenSigmoid::test_sigmoid_fp32_007() |
| @@ -441,7 +441,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_007() | |||
| 441 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_007"); | 441 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_007"); |
| 442 | npu::tile_fwk::CodeGenCtx ctx; | 442 | npu::tile_fwk::CodeGenCtx ctx; |
| 443 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 443 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 444 | - codeGen.GenCode(*function, {}); | 444 | + codeGen.GenCode(*function); |
| 445 | } | 445 | } |
| 446 | 446 | ||
| 447 | void TestCodeGenSigmoid::test_sigmoid_fp32_008() | 447 | void TestCodeGenSigmoid::test_sigmoid_fp32_008() |
| @@ -460,7 +460,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_008() | |||
| 460 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_008"); | 460 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_008"); |
| 461 | npu::tile_fwk::CodeGenCtx ctx; | 461 | npu::tile_fwk::CodeGenCtx ctx; |
| 462 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 462 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 463 | - codeGen.GenCode(*function, {}); | 463 | + codeGen.GenCode(*function); |
| 464 | } | 464 | } |
| 465 | 465 | ||
| 466 | void TestCodeGenSigmoid::test_sigmoid_fp32_009() | 466 | void TestCodeGenSigmoid::test_sigmoid_fp32_009() |
| @@ -479,7 +479,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_009() | |||
| 479 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_009"); | 479 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_009"); |
| 480 | npu::tile_fwk::CodeGenCtx ctx; | 480 | npu::tile_fwk::CodeGenCtx ctx; |
| 481 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 481 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 482 | - codeGen.GenCode(*function, {}); | 482 | + codeGen.GenCode(*function); |
| 483 | } | 483 | } |
| 484 | 484 | ||
| 485 | void TestCodeGenSigmoid::test_sigmoid_fp32_010() | 485 | void TestCodeGenSigmoid::test_sigmoid_fp32_010() |
| @@ -498,7 +498,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_010() | |||
| 498 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_010"); | 498 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_010"); |
| 499 | npu::tile_fwk::CodeGenCtx ctx; | 499 | npu::tile_fwk::CodeGenCtx ctx; |
| 500 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 500 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 501 | - codeGen.GenCode(*function, {}); | 501 | + codeGen.GenCode(*function); |
| 502 | } | 502 | } |
| 503 | 503 | ||
| 504 | void TestCodeGenSigmoid::test_sigmoid_fp32_011() | 504 | void TestCodeGenSigmoid::test_sigmoid_fp32_011() |
| @@ -517,7 +517,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_011() | |||
| 517 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_011"); | 517 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_011"); |
| 518 | npu::tile_fwk::CodeGenCtx ctx; | 518 | npu::tile_fwk::CodeGenCtx ctx; |
| 519 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 519 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 520 | - codeGen.GenCode(*function, {}); | 520 | + codeGen.GenCode(*function); |
| 521 | } | 521 | } |
| 522 | 522 | ||
| 523 | void TestCodeGenSigmoid::test_sigmoid_fp32_012() | 523 | void TestCodeGenSigmoid::test_sigmoid_fp32_012() |
| @@ -536,7 +536,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_012() | |||
| 536 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_012"); | 536 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_012"); |
| 537 | npu::tile_fwk::CodeGenCtx ctx; | 537 | npu::tile_fwk::CodeGenCtx ctx; |
| 538 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 538 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 539 | - codeGen.GenCode(*function, {}); | 539 | + codeGen.GenCode(*function); |
| 540 | } | 540 | } |
| 541 | 541 | ||
| 542 | void TestCodeGenSigmoid::test_sigmoid_fp32_013() | 542 | void TestCodeGenSigmoid::test_sigmoid_fp32_013() |
| @@ -555,7 +555,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_013() | |||
| 555 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_013"); | 555 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_013"); |
| 556 | npu::tile_fwk::CodeGenCtx ctx; | 556 | npu::tile_fwk::CodeGenCtx ctx; |
| 557 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 557 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 558 | - codeGen.GenCode(*function, {}); | 558 | + codeGen.GenCode(*function); |
| 559 | } | 559 | } |
| 560 | 560 | ||
| 561 | void TestCodeGenSigmoid::test_sigmoid_fp32_014() | 561 | void TestCodeGenSigmoid::test_sigmoid_fp32_014() |
| @@ -574,7 +574,7 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_014() | |||
| 574 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_014"); | 574 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_014"); |
| 575 | npu::tile_fwk::CodeGenCtx ctx; | 575 | npu::tile_fwk::CodeGenCtx ctx; |
| 576 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 576 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 577 | - codeGen.GenCode(*function, {}); | 577 | + codeGen.GenCode(*function); |
| 578 | } | 578 | } |
| 579 | 579 | ||
| 580 | void TestCodeGenSigmoid::test_sigmoid_fp32_015() | 580 | void TestCodeGenSigmoid::test_sigmoid_fp32_015() |
| @@ -593,5 +593,5 @@ void TestCodeGenSigmoid::test_sigmoid_fp32_015() | |||
| 593 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_015"); | 593 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SIGMOID_FP32_015"); |
| 594 | npu::tile_fwk::CodeGenCtx ctx; | 594 | npu::tile_fwk::CodeGenCtx ctx; |
| 595 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 595 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 596 | - codeGen.GenCode(*function, {}); | 596 | + codeGen.GenCode(*function); |
| 597 | } | 597 | } |
| @@ -42,7 +42,7 @@ void TestCodeGenSqrt::test_Sqrt_fp16_001() | |||
| 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_001"); | 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_001"); |
| 43 | npu::tile_fwk::CodeGenCtx ctx; | 43 | npu::tile_fwk::CodeGenCtx ctx; |
| 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 45 | - codeGen.GenCode(*function, {}); | 45 | + codeGen.GenCode(*function); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void TestCodeGenSqrt::test_Sqrt_fp16_002() | 48 | void TestCodeGenSqrt::test_Sqrt_fp16_002() |
| @@ -61,7 +61,7 @@ void TestCodeGenSqrt::test_Sqrt_fp16_002() | |||
| 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_002"); | 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_002"); |
| 62 | npu::tile_fwk::CodeGenCtx ctx; | 62 | npu::tile_fwk::CodeGenCtx ctx; |
| 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 64 | - codeGen.GenCode(*function, {}); | 64 | + codeGen.GenCode(*function); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void TestCodeGenSqrt::test_Sqrt_fp32_003() | 67 | void TestCodeGenSqrt::test_Sqrt_fp32_003() |
| @@ -80,7 +80,7 @@ void TestCodeGenSqrt::test_Sqrt_fp32_003() | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_003"); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_003"); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void TestCodeGenSqrt::test_Sqrt_fp32_004() | 86 | void TestCodeGenSqrt::test_Sqrt_fp32_004() |
| @@ -99,7 +99,7 @@ void TestCodeGenSqrt::test_Sqrt_fp32_004() | |||
| 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_004"); | 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_004"); |
| 100 | npu::tile_fwk::CodeGenCtx ctx; | 100 | npu::tile_fwk::CodeGenCtx ctx; |
| 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 102 | - codeGen.GenCode(*function, {}); | 102 | + codeGen.GenCode(*function); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void TestCodeGenSqrt::test_Sqrt_fp16_005() | 105 | void TestCodeGenSqrt::test_Sqrt_fp16_005() |
| @@ -118,7 +118,7 @@ void TestCodeGenSqrt::test_Sqrt_fp16_005() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_005"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_005"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenSqrt::test_Sqrt_fp32_006() | 124 | void TestCodeGenSqrt::test_Sqrt_fp32_006() |
| @@ -137,7 +137,7 @@ void TestCodeGenSqrt::test_Sqrt_fp32_006() | |||
| 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_006"); | 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_006"); |
| 138 | npu::tile_fwk::CodeGenCtx ctx; | 138 | npu::tile_fwk::CodeGenCtx ctx; |
| 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 140 | - codeGen.GenCode(*function, {}); | 140 | + codeGen.GenCode(*function); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void TestCodeGenSqrt::test_Sqrt_fp16_007() | 143 | void TestCodeGenSqrt::test_Sqrt_fp16_007() |
| @@ -156,7 +156,7 @@ void TestCodeGenSqrt::test_Sqrt_fp16_007() | |||
| 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_007"); | 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_007"); |
| 157 | npu::tile_fwk::CodeGenCtx ctx; | 157 | npu::tile_fwk::CodeGenCtx ctx; |
| 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 159 | - codeGen.GenCode(*function, {}); | 159 | + codeGen.GenCode(*function); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | void TestCodeGenSqrt::test_Sqrt_fp32_008() | 162 | void TestCodeGenSqrt::test_Sqrt_fp32_008() |
| @@ -175,7 +175,7 @@ void TestCodeGenSqrt::test_Sqrt_fp32_008() | |||
| 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_008"); | 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_008"); |
| 176 | npu::tile_fwk::CodeGenCtx ctx; | 176 | npu::tile_fwk::CodeGenCtx ctx; |
| 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 178 | - codeGen.GenCode(*function, {}); | 178 | + codeGen.GenCode(*function); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void TestCodeGenSqrt::test_Sqrt_fp16_009() | 181 | void TestCodeGenSqrt::test_Sqrt_fp16_009() |
| @@ -194,7 +194,7 @@ void TestCodeGenSqrt::test_Sqrt_fp16_009() | |||
| 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_009"); | 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_009"); |
| 195 | npu::tile_fwk::CodeGenCtx ctx; | 195 | npu::tile_fwk::CodeGenCtx ctx; |
| 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 197 | - codeGen.GenCode(*function, {}); | 197 | + codeGen.GenCode(*function); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void TestCodeGenSqrt::test_Sqrt_fp32_010() | 200 | void TestCodeGenSqrt::test_Sqrt_fp32_010() |
| @@ -213,7 +213,7 @@ void TestCodeGenSqrt::test_Sqrt_fp32_010() | |||
| 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_010"); | 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_010"); |
| 214 | npu::tile_fwk::CodeGenCtx ctx; | 214 | npu::tile_fwk::CodeGenCtx ctx; |
| 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 216 | - codeGen.GenCode(*function, {}); | 216 | + codeGen.GenCode(*function); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void TestCodeGenSqrt::test_Sqrt_fp16_011() | 219 | void TestCodeGenSqrt::test_Sqrt_fp16_011() |
| @@ -232,7 +232,7 @@ void TestCodeGenSqrt::test_Sqrt_fp16_011() | |||
| 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_011"); | 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_011"); |
| 233 | npu::tile_fwk::CodeGenCtx ctx; | 233 | npu::tile_fwk::CodeGenCtx ctx; |
| 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 235 | - codeGen.GenCode(*function, {}); | 235 | + codeGen.GenCode(*function); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void TestCodeGenSqrt::test_Sqrt_fp32_012() | 238 | void TestCodeGenSqrt::test_Sqrt_fp32_012() |
| @@ -251,7 +251,7 @@ void TestCodeGenSqrt::test_Sqrt_fp32_012() | |||
| 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_012"); | 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_012"); |
| 252 | npu::tile_fwk::CodeGenCtx ctx; | 252 | npu::tile_fwk::CodeGenCtx ctx; |
| 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 254 | - codeGen.GenCode(*function, {}); | 254 | + codeGen.GenCode(*function); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void TestCodeGenSqrt::test_Sqrt_fp16_013() | 257 | void TestCodeGenSqrt::test_Sqrt_fp16_013() |
| @@ -270,7 +270,7 @@ void TestCodeGenSqrt::test_Sqrt_fp16_013() | |||
| 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_013"); | 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_013"); |
| 271 | npu::tile_fwk::CodeGenCtx ctx; | 271 | npu::tile_fwk::CodeGenCtx ctx; |
| 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 273 | - codeGen.GenCode(*function, {}); | 273 | + codeGen.GenCode(*function); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void TestCodeGenSqrt::test_Sqrt_fp32_014() | 276 | void TestCodeGenSqrt::test_Sqrt_fp32_014() |
| @@ -289,7 +289,7 @@ void TestCodeGenSqrt::test_Sqrt_fp32_014() | |||
| 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_014"); | 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp32_014"); |
| 290 | npu::tile_fwk::CodeGenCtx ctx; | 290 | npu::tile_fwk::CodeGenCtx ctx; |
| 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 292 | - codeGen.GenCode(*function, {}); | 292 | + codeGen.GenCode(*function); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void TestCodeGenSqrt::test_Sqrt_fp16_015() | 295 | void TestCodeGenSqrt::test_Sqrt_fp16_015() |
| @@ -308,5 +308,5 @@ void TestCodeGenSqrt::test_Sqrt_fp16_015() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_015"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "Sqrt_fp16_015"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| @@ -42,7 +42,7 @@ void TestCodeGenSub::test_sub_001() | |||
| 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_001"); | 42 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_001"); |
| 43 | npu::tile_fwk::CodeGenCtx ctx; | 43 | npu::tile_fwk::CodeGenCtx ctx; |
| 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 44 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 45 | - codeGen.GenCode(*function, {}); | 45 | + codeGen.GenCode(*function); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | void TestCodeGenSub::test_sub_002() | 48 | void TestCodeGenSub::test_sub_002() |
| @@ -61,7 +61,7 @@ void TestCodeGenSub::test_sub_002() | |||
| 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_002"); | 61 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_002"); |
| 62 | npu::tile_fwk::CodeGenCtx ctx; | 62 | npu::tile_fwk::CodeGenCtx ctx; |
| 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 63 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 64 | - codeGen.GenCode(*function, {}); | 64 | + codeGen.GenCode(*function); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | void TestCodeGenSub::test_sub_003() | 67 | void TestCodeGenSub::test_sub_003() |
| @@ -80,7 +80,7 @@ void TestCodeGenSub::test_sub_003() | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_003"); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_003"); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | void TestCodeGenSub::test_sub_004() | 86 | void TestCodeGenSub::test_sub_004() |
| @@ -99,7 +99,7 @@ void TestCodeGenSub::test_sub_004() | |||
| 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_004"); | 99 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_004"); |
| 100 | npu::tile_fwk::CodeGenCtx ctx; | 100 | npu::tile_fwk::CodeGenCtx ctx; |
| 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 101 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 102 | - codeGen.GenCode(*function, {}); | 102 | + codeGen.GenCode(*function); |
| 103 | } | 103 | } |
| 104 | 104 | ||
| 105 | void TestCodeGenSub::test_sub_005() | 105 | void TestCodeGenSub::test_sub_005() |
| @@ -118,7 +118,7 @@ void TestCodeGenSub::test_sub_005() | |||
| 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_005"); | 118 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_005"); |
| 119 | npu::tile_fwk::CodeGenCtx ctx; | 119 | npu::tile_fwk::CodeGenCtx ctx; |
| 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 120 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 121 | - codeGen.GenCode(*function, {}); | 121 | + codeGen.GenCode(*function); |
| 122 | } | 122 | } |
| 123 | 123 | ||
| 124 | void TestCodeGenSub::test_sub_006() | 124 | void TestCodeGenSub::test_sub_006() |
| @@ -137,7 +137,7 @@ void TestCodeGenSub::test_sub_006() | |||
| 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_006"); | 137 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_006"); |
| 138 | npu::tile_fwk::CodeGenCtx ctx; | 138 | npu::tile_fwk::CodeGenCtx ctx; |
| 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 139 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 140 | - codeGen.GenCode(*function, {}); | 140 | + codeGen.GenCode(*function); |
| 141 | } | 141 | } |
| 142 | 142 | ||
| 143 | void TestCodeGenSub::test_sub_007() | 143 | void TestCodeGenSub::test_sub_007() |
| @@ -156,7 +156,7 @@ void TestCodeGenSub::test_sub_007() | |||
| 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_007"); | 156 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_007"); |
| 157 | npu::tile_fwk::CodeGenCtx ctx; | 157 | npu::tile_fwk::CodeGenCtx ctx; |
| 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 158 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 159 | - codeGen.GenCode(*function, {}); | 159 | + codeGen.GenCode(*function); |
| 160 | } | 160 | } |
| 161 | 161 | ||
| 162 | void TestCodeGenSub::test_sub_008() | 162 | void TestCodeGenSub::test_sub_008() |
| @@ -175,7 +175,7 @@ void TestCodeGenSub::test_sub_008() | |||
| 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_008"); | 175 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_008"); |
| 176 | npu::tile_fwk::CodeGenCtx ctx; | 176 | npu::tile_fwk::CodeGenCtx ctx; |
| 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 177 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 178 | - codeGen.GenCode(*function, {}); | 178 | + codeGen.GenCode(*function); |
| 179 | } | 179 | } |
| 180 | 180 | ||
| 181 | void TestCodeGenSub::test_sub_009() | 181 | void TestCodeGenSub::test_sub_009() |
| @@ -194,7 +194,7 @@ void TestCodeGenSub::test_sub_009() | |||
| 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_009"); | 194 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_009"); |
| 195 | npu::tile_fwk::CodeGenCtx ctx; | 195 | npu::tile_fwk::CodeGenCtx ctx; |
| 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 196 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 197 | - codeGen.GenCode(*function, {}); | 197 | + codeGen.GenCode(*function); |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | void TestCodeGenSub::test_sub_010() | 200 | void TestCodeGenSub::test_sub_010() |
| @@ -213,7 +213,7 @@ void TestCodeGenSub::test_sub_010() | |||
| 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_010"); | 213 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_010"); |
| 214 | npu::tile_fwk::CodeGenCtx ctx; | 214 | npu::tile_fwk::CodeGenCtx ctx; |
| 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 215 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 216 | - codeGen.GenCode(*function, {}); | 216 | + codeGen.GenCode(*function); |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void TestCodeGenSub::test_sub_011() | 219 | void TestCodeGenSub::test_sub_011() |
| @@ -232,7 +232,7 @@ void TestCodeGenSub::test_sub_011() | |||
| 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_011"); | 232 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_011"); |
| 233 | npu::tile_fwk::CodeGenCtx ctx; | 233 | npu::tile_fwk::CodeGenCtx ctx; |
| 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 234 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 235 | - codeGen.GenCode(*function, {}); | 235 | + codeGen.GenCode(*function); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | void TestCodeGenSub::test_sub_012() | 238 | void TestCodeGenSub::test_sub_012() |
| @@ -251,7 +251,7 @@ void TestCodeGenSub::test_sub_012() | |||
| 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_012"); | 251 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_012"); |
| 252 | npu::tile_fwk::CodeGenCtx ctx; | 252 | npu::tile_fwk::CodeGenCtx ctx; |
| 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 253 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 254 | - codeGen.GenCode(*function, {}); | 254 | + codeGen.GenCode(*function); |
| 255 | } | 255 | } |
| 256 | 256 | ||
| 257 | void TestCodeGenSub::test_sub_013() | 257 | void TestCodeGenSub::test_sub_013() |
| @@ -270,7 +270,7 @@ void TestCodeGenSub::test_sub_013() | |||
| 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_013"); | 270 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_013"); |
| 271 | npu::tile_fwk::CodeGenCtx ctx; | 271 | npu::tile_fwk::CodeGenCtx ctx; |
| 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 272 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 273 | - codeGen.GenCode(*function, {}); | 273 | + codeGen.GenCode(*function); |
| 274 | } | 274 | } |
| 275 | 275 | ||
| 276 | void TestCodeGenSub::test_sub_014() | 276 | void TestCodeGenSub::test_sub_014() |
| @@ -289,7 +289,7 @@ void TestCodeGenSub::test_sub_014() | |||
| 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_014"); | 289 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_014"); |
| 290 | npu::tile_fwk::CodeGenCtx ctx; | 290 | npu::tile_fwk::CodeGenCtx ctx; |
| 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 291 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 292 | - codeGen.GenCode(*function, {}); | 292 | + codeGen.GenCode(*function); |
| 293 | } | 293 | } |
| 294 | 294 | ||
| 295 | void TestCodeGenSub::test_sub_015() | 295 | void TestCodeGenSub::test_sub_015() |
| @@ -308,7 +308,7 @@ void TestCodeGenSub::test_sub_015() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_015"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_015"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenSub::test_sub_016() | 314 | void TestCodeGenSub::test_sub_016() |
| @@ -327,7 +327,7 @@ void TestCodeGenSub::test_sub_016() | |||
| 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_016"); | 327 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_016"); |
| 328 | npu::tile_fwk::CodeGenCtx ctx; | 328 | npu::tile_fwk::CodeGenCtx ctx; |
| 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 329 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 330 | - codeGen.GenCode(*function, {}); | 330 | + codeGen.GenCode(*function); |
| 331 | } | 331 | } |
| 332 | 332 | ||
| 333 | void TestCodeGenSub::test_sub_017() | 333 | void TestCodeGenSub::test_sub_017() |
| @@ -346,7 +346,7 @@ void TestCodeGenSub::test_sub_017() | |||
| 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_017"); | 346 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_017"); |
| 347 | npu::tile_fwk::CodeGenCtx ctx; | 347 | npu::tile_fwk::CodeGenCtx ctx; |
| 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 348 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 349 | - codeGen.GenCode(*function, {}); | 349 | + codeGen.GenCode(*function); |
| 350 | } | 350 | } |
| 351 | 351 | ||
| 352 | void TestCodeGenSub::test_sub_018() | 352 | void TestCodeGenSub::test_sub_018() |
| @@ -365,7 +365,7 @@ void TestCodeGenSub::test_sub_018() | |||
| 365 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_018"); | 365 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_018"); |
| 366 | npu::tile_fwk::CodeGenCtx ctx; | 366 | npu::tile_fwk::CodeGenCtx ctx; |
| 367 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 367 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 368 | - codeGen.GenCode(*function, {}); | 368 | + codeGen.GenCode(*function); |
| 369 | } | 369 | } |
| 370 | 370 | ||
| 371 | void TestCodeGenSub::test_sub_019() | 371 | void TestCodeGenSub::test_sub_019() |
| @@ -384,7 +384,7 @@ void TestCodeGenSub::test_sub_019() | |||
| 384 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_019"); | 384 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_019"); |
| 385 | npu::tile_fwk::CodeGenCtx ctx; | 385 | npu::tile_fwk::CodeGenCtx ctx; |
| 386 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 386 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 387 | - codeGen.GenCode(*function, {}); | 387 | + codeGen.GenCode(*function); |
| 388 | } | 388 | } |
| 389 | 389 | ||
| 390 | void TestCodeGenSub::test_sub_020() | 390 | void TestCodeGenSub::test_sub_020() |
| @@ -403,7 +403,7 @@ void TestCodeGenSub::test_sub_020() | |||
| 403 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_020"); | 403 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_020"); |
| 404 | npu::tile_fwk::CodeGenCtx ctx; | 404 | npu::tile_fwk::CodeGenCtx ctx; |
| 405 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 405 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 406 | - codeGen.GenCode(*function, {}); | 406 | + codeGen.GenCode(*function); |
| 407 | } | 407 | } |
| 408 | 408 | ||
| 409 | void TestCodeGenSub::test_sub_021() | 409 | void TestCodeGenSub::test_sub_021() |
| @@ -422,7 +422,7 @@ void TestCodeGenSub::test_sub_021() | |||
| 422 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_021"); | 422 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_021"); |
| 423 | npu::tile_fwk::CodeGenCtx ctx; | 423 | npu::tile_fwk::CodeGenCtx ctx; |
| 424 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 424 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 425 | - codeGen.GenCode(*function, {}); | 425 | + codeGen.GenCode(*function); |
| 426 | } | 426 | } |
| 427 | 427 | ||
| 428 | void TestCodeGenSub::test_sub_022() | 428 | void TestCodeGenSub::test_sub_022() |
| @@ -441,7 +441,7 @@ void TestCodeGenSub::test_sub_022() | |||
| 441 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_022"); | 441 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_022"); |
| 442 | npu::tile_fwk::CodeGenCtx ctx; | 442 | npu::tile_fwk::CodeGenCtx ctx; |
| 443 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 443 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 444 | - codeGen.GenCode(*function, {}); | 444 | + codeGen.GenCode(*function); |
| 445 | } | 445 | } |
| 446 | 446 | ||
| 447 | void TestCodeGenSub::test_sub_023() | 447 | void TestCodeGenSub::test_sub_023() |
| @@ -460,7 +460,7 @@ void TestCodeGenSub::test_sub_023() | |||
| 460 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_023"); | 460 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_023"); |
| 461 | npu::tile_fwk::CodeGenCtx ctx; | 461 | npu::tile_fwk::CodeGenCtx ctx; |
| 462 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 462 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 463 | - codeGen.GenCode(*function, {}); | 463 | + codeGen.GenCode(*function); |
| 464 | } | 464 | } |
| 465 | 465 | ||
| 466 | void TestCodeGenSub::test_sub_024() | 466 | void TestCodeGenSub::test_sub_024() |
| @@ -479,7 +479,7 @@ void TestCodeGenSub::test_sub_024() | |||
| 479 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_024"); | 479 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_024"); |
| 480 | npu::tile_fwk::CodeGenCtx ctx; | 480 | npu::tile_fwk::CodeGenCtx ctx; |
| 481 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 481 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 482 | - codeGen.GenCode(*function, {}); | 482 | + codeGen.GenCode(*function); |
| 483 | } | 483 | } |
| 484 | 484 | ||
| 485 | void TestCodeGenSub::test_sub_025() | 485 | void TestCodeGenSub::test_sub_025() |
| @@ -498,7 +498,7 @@ void TestCodeGenSub::test_sub_025() | |||
| 498 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_025"); | 498 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_025"); |
| 499 | npu::tile_fwk::CodeGenCtx ctx; | 499 | npu::tile_fwk::CodeGenCtx ctx; |
| 500 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 500 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 501 | - codeGen.GenCode(*function, {}); | 501 | + codeGen.GenCode(*function); |
| 502 | } | 502 | } |
| 503 | 503 | ||
| 504 | void TestCodeGenSub::test_sub_026() | 504 | void TestCodeGenSub::test_sub_026() |
| @@ -517,7 +517,7 @@ void TestCodeGenSub::test_sub_026() | |||
| 517 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_026"); | 517 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_026"); |
| 518 | npu::tile_fwk::CodeGenCtx ctx; | 518 | npu::tile_fwk::CodeGenCtx ctx; |
| 519 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 519 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 520 | - codeGen.GenCode(*function, {}); | 520 | + codeGen.GenCode(*function); |
| 521 | } | 521 | } |
| 522 | 522 | ||
| 523 | void TestCodeGenSub::test_sub_027() | 523 | void TestCodeGenSub::test_sub_027() |
| @@ -536,7 +536,7 @@ void TestCodeGenSub::test_sub_027() | |||
| 536 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_027"); | 536 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_027"); |
| 537 | npu::tile_fwk::CodeGenCtx ctx; | 537 | npu::tile_fwk::CodeGenCtx ctx; |
| 538 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 538 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 539 | - codeGen.GenCode(*function, {}); | 539 | + codeGen.GenCode(*function); |
| 540 | } | 540 | } |
| 541 | 541 | ||
| 542 | void TestCodeGenSub::test_sub_028() | 542 | void TestCodeGenSub::test_sub_028() |
| @@ -555,7 +555,7 @@ void TestCodeGenSub::test_sub_028() | |||
| 555 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_028"); | 555 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_028"); |
| 556 | npu::tile_fwk::CodeGenCtx ctx; | 556 | npu::tile_fwk::CodeGenCtx ctx; |
| 557 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 557 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 558 | - codeGen.GenCode(*function, {}); | 558 | + codeGen.GenCode(*function); |
| 559 | } | 559 | } |
| 560 | 560 | ||
| 561 | void TestCodeGenSub::test_sub_029() | 561 | void TestCodeGenSub::test_sub_029() |
| @@ -574,7 +574,7 @@ void TestCodeGenSub::test_sub_029() | |||
| 574 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_029"); | 574 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_029"); |
| 575 | npu::tile_fwk::CodeGenCtx ctx; | 575 | npu::tile_fwk::CodeGenCtx ctx; |
| 576 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 576 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 577 | - codeGen.GenCode(*function, {}); | 577 | + codeGen.GenCode(*function); |
| 578 | } | 578 | } |
| 579 | 579 | ||
| 580 | void TestCodeGenSub::test_sub_030() | 580 | void TestCodeGenSub::test_sub_030() |
| @@ -593,7 +593,7 @@ void TestCodeGenSub::test_sub_030() | |||
| 593 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_030"); | 593 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_030"); |
| 594 | npu::tile_fwk::CodeGenCtx ctx; | 594 | npu::tile_fwk::CodeGenCtx ctx; |
| 595 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 595 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 596 | - codeGen.GenCode(*function, {}); | 596 | + codeGen.GenCode(*function); |
| 597 | } | 597 | } |
| 598 | 598 | ||
| 599 | void TestCodeGenSub::test_sub_031() | 599 | void TestCodeGenSub::test_sub_031() |
| @@ -612,7 +612,7 @@ void TestCodeGenSub::test_sub_031() | |||
| 612 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_031"); | 612 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_031"); |
| 613 | npu::tile_fwk::CodeGenCtx ctx; | 613 | npu::tile_fwk::CodeGenCtx ctx; |
| 614 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 614 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 615 | - codeGen.GenCode(*function, {}); | 615 | + codeGen.GenCode(*function); |
| 616 | } | 616 | } |
| 617 | 617 | ||
| 618 | void TestCodeGenSub::test_sub_032() | 618 | void TestCodeGenSub::test_sub_032() |
| @@ -631,7 +631,7 @@ void TestCodeGenSub::test_sub_032() | |||
| 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_032"); | 631 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_032"); |
| 632 | npu::tile_fwk::CodeGenCtx ctx; | 632 | npu::tile_fwk::CodeGenCtx ctx; |
| 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 633 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 634 | - codeGen.GenCode(*function, {}); | 634 | + codeGen.GenCode(*function); |
| 635 | } | 635 | } |
| 636 | 636 | ||
| 637 | void TestCodeGenSub::test_sub_033() | 637 | void TestCodeGenSub::test_sub_033() |
| @@ -650,7 +650,7 @@ void TestCodeGenSub::test_sub_033() | |||
| 650 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_033"); | 650 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_033"); |
| 651 | npu::tile_fwk::CodeGenCtx ctx; | 651 | npu::tile_fwk::CodeGenCtx ctx; |
| 652 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 652 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 653 | - codeGen.GenCode(*function, {}); | 653 | + codeGen.GenCode(*function); |
| 654 | } | 654 | } |
| 655 | 655 | ||
| 656 | void TestCodeGenSub::test_sub_034() | 656 | void TestCodeGenSub::test_sub_034() |
| @@ -669,7 +669,7 @@ void TestCodeGenSub::test_sub_034() | |||
| 669 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_034"); | 669 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_034"); |
| 670 | npu::tile_fwk::CodeGenCtx ctx; | 670 | npu::tile_fwk::CodeGenCtx ctx; |
| 671 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 671 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 672 | - codeGen.GenCode(*function, {}); | 672 | + codeGen.GenCode(*function); |
| 673 | } | 673 | } |
| 674 | 674 | ||
| 675 | void TestCodeGenSub::test_sub_035() | 675 | void TestCodeGenSub::test_sub_035() |
| @@ -688,7 +688,7 @@ void TestCodeGenSub::test_sub_035() | |||
| 688 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_035"); | 688 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_035"); |
| 689 | npu::tile_fwk::CodeGenCtx ctx; | 689 | npu::tile_fwk::CodeGenCtx ctx; |
| 690 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 690 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 691 | - codeGen.GenCode(*function, {}); | 691 | + codeGen.GenCode(*function); |
| 692 | } | 692 | } |
| 693 | 693 | ||
| 694 | void TestCodeGenSub::test_sub_036() | 694 | void TestCodeGenSub::test_sub_036() |
| @@ -707,7 +707,7 @@ void TestCodeGenSub::test_sub_036() | |||
| 707 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_036"); | 707 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_036"); |
| 708 | npu::tile_fwk::CodeGenCtx ctx; | 708 | npu::tile_fwk::CodeGenCtx ctx; |
| 709 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 709 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 710 | - codeGen.GenCode(*function, {}); | 710 | + codeGen.GenCode(*function); |
| 711 | } | 711 | } |
| 712 | 712 | ||
| 713 | void TestCodeGenSub::test_sub_037() | 713 | void TestCodeGenSub::test_sub_037() |
| @@ -726,7 +726,7 @@ void TestCodeGenSub::test_sub_037() | |||
| 726 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_037"); | 726 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_037"); |
| 727 | npu::tile_fwk::CodeGenCtx ctx; | 727 | npu::tile_fwk::CodeGenCtx ctx; |
| 728 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 728 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 729 | - codeGen.GenCode(*function, {}); | 729 | + codeGen.GenCode(*function); |
| 730 | } | 730 | } |
| 731 | 731 | ||
| 732 | void TestCodeGenSub::test_sub_038() | 732 | void TestCodeGenSub::test_sub_038() |
| @@ -745,7 +745,7 @@ void TestCodeGenSub::test_sub_038() | |||
| 745 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_038"); | 745 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_038"); |
| 746 | npu::tile_fwk::CodeGenCtx ctx; | 746 | npu::tile_fwk::CodeGenCtx ctx; |
| 747 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 747 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 748 | - codeGen.GenCode(*function, {}); | 748 | + codeGen.GenCode(*function); |
| 749 | } | 749 | } |
| 750 | 750 | ||
| 751 | void TestCodeGenSub::test_sub_039() | 751 | void TestCodeGenSub::test_sub_039() |
| @@ -764,7 +764,7 @@ void TestCodeGenSub::test_sub_039() | |||
| 764 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_039"); | 764 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_039"); |
| 765 | npu::tile_fwk::CodeGenCtx ctx; | 765 | npu::tile_fwk::CodeGenCtx ctx; |
| 766 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 766 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 767 | - codeGen.GenCode(*function, {}); | 767 | + codeGen.GenCode(*function); |
| 768 | } | 768 | } |
| 769 | 769 | ||
| 770 | void TestCodeGenSub::test_sub_040() | 770 | void TestCodeGenSub::test_sub_040() |
| @@ -783,7 +783,7 @@ void TestCodeGenSub::test_sub_040() | |||
| 783 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_040"); | 783 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_040"); |
| 784 | npu::tile_fwk::CodeGenCtx ctx; | 784 | npu::tile_fwk::CodeGenCtx ctx; |
| 785 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 785 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 786 | - codeGen.GenCode(*function, {}); | 786 | + codeGen.GenCode(*function); |
| 787 | } | 787 | } |
| 788 | 788 | ||
| 789 | void TestCodeGenSub::test_sub_041() | 789 | void TestCodeGenSub::test_sub_041() |
| @@ -802,7 +802,7 @@ void TestCodeGenSub::test_sub_041() | |||
| 802 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_041"); | 802 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_041"); |
| 803 | npu::tile_fwk::CodeGenCtx ctx; | 803 | npu::tile_fwk::CodeGenCtx ctx; |
| 804 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 804 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 805 | - codeGen.GenCode(*function, {}); | 805 | + codeGen.GenCode(*function); |
| 806 | } | 806 | } |
| 807 | 807 | ||
| 808 | void TestCodeGenSub::test_sub_042() | 808 | void TestCodeGenSub::test_sub_042() |
| @@ -821,7 +821,7 @@ void TestCodeGenSub::test_sub_042() | |||
| 821 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_042"); | 821 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_042"); |
| 822 | npu::tile_fwk::CodeGenCtx ctx; | 822 | npu::tile_fwk::CodeGenCtx ctx; |
| 823 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 823 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 824 | - codeGen.GenCode(*function, {}); | 824 | + codeGen.GenCode(*function); |
| 825 | } | 825 | } |
| 826 | 826 | ||
| 827 | void TestCodeGenSub::test_sub_043() | 827 | void TestCodeGenSub::test_sub_043() |
| @@ -840,7 +840,7 @@ void TestCodeGenSub::test_sub_043() | |||
| 840 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_043"); | 840 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_043"); |
| 841 | npu::tile_fwk::CodeGenCtx ctx; | 841 | npu::tile_fwk::CodeGenCtx ctx; |
| 842 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 842 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 843 | - codeGen.GenCode(*function, {}); | 843 | + codeGen.GenCode(*function); |
| 844 | } | 844 | } |
| 845 | 845 | ||
| 846 | void TestCodeGenSub::test_sub_044() | 846 | void TestCodeGenSub::test_sub_044() |
| @@ -859,7 +859,7 @@ void TestCodeGenSub::test_sub_044() | |||
| 859 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_044"); | 859 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_044"); |
| 860 | npu::tile_fwk::CodeGenCtx ctx; | 860 | npu::tile_fwk::CodeGenCtx ctx; |
| 861 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 861 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 862 | - codeGen.GenCode(*function, {}); | 862 | + codeGen.GenCode(*function); |
| 863 | } | 863 | } |
| 864 | 864 | ||
| 865 | void TestCodeGenSub::test_sub_045() | 865 | void TestCodeGenSub::test_sub_045() |
| @@ -878,7 +878,7 @@ void TestCodeGenSub::test_sub_045() | |||
| 878 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_045"); | 878 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_045"); |
| 879 | npu::tile_fwk::CodeGenCtx ctx; | 879 | npu::tile_fwk::CodeGenCtx ctx; |
| 880 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 880 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 881 | - codeGen.GenCode(*function, {}); | 881 | + codeGen.GenCode(*function); |
| 882 | } | 882 | } |
| 883 | 883 | ||
| 884 | void TestCodeGenSub::test_sub_046() | 884 | void TestCodeGenSub::test_sub_046() |
| @@ -897,7 +897,7 @@ void TestCodeGenSub::test_sub_046() | |||
| 897 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_046"); | 897 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_046"); |
| 898 | npu::tile_fwk::CodeGenCtx ctx; | 898 | npu::tile_fwk::CodeGenCtx ctx; |
| 899 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 899 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 900 | - codeGen.GenCode(*function, {}); | 900 | + codeGen.GenCode(*function); |
| 901 | } | 901 | } |
| 902 | 902 | ||
| 903 | void TestCodeGenSub::test_sub_047() | 903 | void TestCodeGenSub::test_sub_047() |
| @@ -916,7 +916,7 @@ void TestCodeGenSub::test_sub_047() | |||
| 916 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_047"); | 916 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_047"); |
| 917 | npu::tile_fwk::CodeGenCtx ctx; | 917 | npu::tile_fwk::CodeGenCtx ctx; |
| 918 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 918 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 919 | - codeGen.GenCode(*function, {}); | 919 | + codeGen.GenCode(*function); |
| 920 | } | 920 | } |
| 921 | 921 | ||
| 922 | void TestCodeGenSub::test_sub_048() | 922 | void TestCodeGenSub::test_sub_048() |
| @@ -935,5 +935,5 @@ void TestCodeGenSub::test_sub_048() | |||
| 935 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_048"); | 935 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUB_048"); |
| 936 | npu::tile_fwk::CodeGenCtx ctx; | 936 | npu::tile_fwk::CodeGenCtx ctx; |
| 937 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 937 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 938 | - codeGen.GenCode(*function, {}); | 938 | + codeGen.GenCode(*function); |
| 939 | } | 939 | } |
| @@ -38,7 +38,7 @@ void TestCodeGenSum::test_sum_fp32_003() | |||
| 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_003"); | 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_003"); |
| 39 | npu::tile_fwk::CodeGenCtx ctx; | 39 | npu::tile_fwk::CodeGenCtx ctx; |
| 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 41 | - codeGen.GenCode(*function, {}); | 41 | + codeGen.GenCode(*function); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | void TestCodeGenSum::test_sum_fp32_004() | 44 | void TestCodeGenSum::test_sum_fp32_004() |
| @@ -53,7 +53,7 @@ void TestCodeGenSum::test_sum_fp32_004() | |||
| 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_004"); | 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_004"); |
| 54 | npu::tile_fwk::CodeGenCtx ctx; | 54 | npu::tile_fwk::CodeGenCtx ctx; |
| 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 56 | - codeGen.GenCode(*function, {}); | 56 | + codeGen.GenCode(*function); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void TestCodeGenSum::test_sum_fp32_005() | 59 | void TestCodeGenSum::test_sum_fp32_005() |
| @@ -68,7 +68,7 @@ void TestCodeGenSum::test_sum_fp32_005() | |||
| 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_005"); | 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_005"); |
| 69 | npu::tile_fwk::CodeGenCtx ctx; | 69 | npu::tile_fwk::CodeGenCtx ctx; |
| 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 71 | - codeGen.GenCode(*function, {}); | 71 | + codeGen.GenCode(*function); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void TestCodeGenSum::test_sum_fp32_006() | 74 | void TestCodeGenSum::test_sum_fp32_006() |
| @@ -83,7 +83,7 @@ void TestCodeGenSum::test_sum_fp32_006() | |||
| 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_006"); | 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_006"); |
| 84 | npu::tile_fwk::CodeGenCtx ctx; | 84 | npu::tile_fwk::CodeGenCtx ctx; |
| 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 86 | - codeGen.GenCode(*function, {}); | 86 | + codeGen.GenCode(*function); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | void TestCodeGenSum::test_sum_fp32_007() | 89 | void TestCodeGenSum::test_sum_fp32_007() |
| @@ -98,7 +98,7 @@ void TestCodeGenSum::test_sum_fp32_007() | |||
| 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_007"); | 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_007"); |
| 99 | npu::tile_fwk::CodeGenCtx ctx; | 99 | npu::tile_fwk::CodeGenCtx ctx; |
| 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 101 | - codeGen.GenCode(*function, {}); | 101 | + codeGen.GenCode(*function); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | void TestCodeGenSum::test_sum_fp32_008() | 104 | void TestCodeGenSum::test_sum_fp32_008() |
| @@ -113,7 +113,7 @@ void TestCodeGenSum::test_sum_fp32_008() | |||
| 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_008"); | 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_008"); |
| 114 | npu::tile_fwk::CodeGenCtx ctx; | 114 | npu::tile_fwk::CodeGenCtx ctx; |
| 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 116 | - codeGen.GenCode(*function, {}); | 116 | + codeGen.GenCode(*function); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | void TestCodeGenSum::test_sum_fp32_009() | 119 | void TestCodeGenSum::test_sum_fp32_009() |
| @@ -128,7 +128,7 @@ void TestCodeGenSum::test_sum_fp32_009() | |||
| 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_009"); | 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_009"); |
| 129 | npu::tile_fwk::CodeGenCtx ctx; | 129 | npu::tile_fwk::CodeGenCtx ctx; |
| 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 131 | - codeGen.GenCode(*function, {}); | 131 | + codeGen.GenCode(*function); |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | void TestCodeGenSum::test_sum_fp32_010() | 134 | void TestCodeGenSum::test_sum_fp32_010() |
| @@ -143,7 +143,7 @@ void TestCodeGenSum::test_sum_fp32_010() | |||
| 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_010"); | 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_010"); |
| 144 | npu::tile_fwk::CodeGenCtx ctx; | 144 | npu::tile_fwk::CodeGenCtx ctx; |
| 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 146 | - codeGen.GenCode(*function, {}); | 146 | + codeGen.GenCode(*function); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | void TestCodeGenSum::test_sum_fp32_011() | 149 | void TestCodeGenSum::test_sum_fp32_011() |
| @@ -158,7 +158,7 @@ void TestCodeGenSum::test_sum_fp32_011() | |||
| 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_011"); | 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_011"); |
| 159 | npu::tile_fwk::CodeGenCtx ctx; | 159 | npu::tile_fwk::CodeGenCtx ctx; |
| 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 161 | - codeGen.GenCode(*function, {}); | 161 | + codeGen.GenCode(*function); |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | void TestCodeGenSum::test_sum_fp32_012() | 164 | void TestCodeGenSum::test_sum_fp32_012() |
| @@ -173,7 +173,7 @@ void TestCodeGenSum::test_sum_fp32_012() | |||
| 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_012"); | 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_012"); |
| 174 | npu::tile_fwk::CodeGenCtx ctx; | 174 | npu::tile_fwk::CodeGenCtx ctx; |
| 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 176 | - codeGen.GenCode(*function, {}); | 176 | + codeGen.GenCode(*function); |
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | void TestCodeGenSum::test_sum_fp32_013() | 179 | void TestCodeGenSum::test_sum_fp32_013() |
| @@ -188,7 +188,7 @@ void TestCodeGenSum::test_sum_fp32_013() | |||
| 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_013"); | 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_013"); |
| 189 | npu::tile_fwk::CodeGenCtx ctx; | 189 | npu::tile_fwk::CodeGenCtx ctx; |
| 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 191 | - codeGen.GenCode(*function, {}); | 191 | + codeGen.GenCode(*function); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | void TestCodeGenSum::test_sum_fp32_014() | 194 | void TestCodeGenSum::test_sum_fp32_014() |
| @@ -203,7 +203,7 @@ void TestCodeGenSum::test_sum_fp32_014() | |||
| 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_014"); | 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_014"); |
| 204 | npu::tile_fwk::CodeGenCtx ctx; | 204 | npu::tile_fwk::CodeGenCtx ctx; |
| 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 206 | - codeGen.GenCode(*function, {}); | 206 | + codeGen.GenCode(*function); |
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | void TestCodeGenSum::test_sum_fp32_015() | 209 | void TestCodeGenSum::test_sum_fp32_015() |
| @@ -218,7 +218,7 @@ void TestCodeGenSum::test_sum_fp32_015() | |||
| 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_015"); | 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_FP32_015"); |
| 219 | npu::tile_fwk::CodeGenCtx ctx; | 219 | npu::tile_fwk::CodeGenCtx ctx; |
| 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 221 | - codeGen.GenCode(*function, {}); | 221 | + codeGen.GenCode(*function); |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | void TestCodeGenSum::test_sum_int32_003() | 224 | void TestCodeGenSum::test_sum_int32_003() |
| @@ -233,7 +233,7 @@ void TestCodeGenSum::test_sum_int32_003() | |||
| 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_003"); | 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_003"); |
| 234 | npu::tile_fwk::CodeGenCtx ctx; | 234 | npu::tile_fwk::CodeGenCtx ctx; |
| 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 236 | - codeGen.GenCode(*function, {}); | 236 | + codeGen.GenCode(*function); |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | void TestCodeGenSum::test_sum_int32_004() | 239 | void TestCodeGenSum::test_sum_int32_004() |
| @@ -248,7 +248,7 @@ void TestCodeGenSum::test_sum_int32_004() | |||
| 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_004"); | 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_004"); |
| 249 | npu::tile_fwk::CodeGenCtx ctx; | 249 | npu::tile_fwk::CodeGenCtx ctx; |
| 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 251 | - codeGen.GenCode(*function, {}); | 251 | + codeGen.GenCode(*function); |
| 252 | } | 252 | } |
| 253 | 253 | ||
| 254 | void TestCodeGenSum::test_sum_int32_005() | 254 | void TestCodeGenSum::test_sum_int32_005() |
| @@ -263,7 +263,7 @@ void TestCodeGenSum::test_sum_int32_005() | |||
| 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_005"); | 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_005"); |
| 264 | npu::tile_fwk::CodeGenCtx ctx; | 264 | npu::tile_fwk::CodeGenCtx ctx; |
| 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 266 | - codeGen.GenCode(*function, {}); | 266 | + codeGen.GenCode(*function); |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | void TestCodeGenSum::test_sum_int32_006() | 269 | void TestCodeGenSum::test_sum_int32_006() |
| @@ -278,7 +278,7 @@ void TestCodeGenSum::test_sum_int32_006() | |||
| 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_006"); | 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_006"); |
| 279 | npu::tile_fwk::CodeGenCtx ctx; | 279 | npu::tile_fwk::CodeGenCtx ctx; |
| 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 281 | - codeGen.GenCode(*function, {}); | 281 | + codeGen.GenCode(*function); |
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | void TestCodeGenSum::test_sum_int32_007() | 284 | void TestCodeGenSum::test_sum_int32_007() |
| @@ -293,7 +293,7 @@ void TestCodeGenSum::test_sum_int32_007() | |||
| 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_007"); | 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_007"); |
| 294 | npu::tile_fwk::CodeGenCtx ctx; | 294 | npu::tile_fwk::CodeGenCtx ctx; |
| 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 296 | - codeGen.GenCode(*function, {}); | 296 | + codeGen.GenCode(*function); |
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | void TestCodeGenSum::test_sum_int32_008() | 299 | void TestCodeGenSum::test_sum_int32_008() |
| @@ -308,7 +308,7 @@ void TestCodeGenSum::test_sum_int32_008() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_008"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_008"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenSum::test_sum_int32_009() | 314 | void TestCodeGenSum::test_sum_int32_009() |
| @@ -323,7 +323,7 @@ void TestCodeGenSum::test_sum_int32_009() | |||
| 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_009"); | 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_009"); |
| 324 | npu::tile_fwk::CodeGenCtx ctx; | 324 | npu::tile_fwk::CodeGenCtx ctx; |
| 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 326 | - codeGen.GenCode(*function, {}); | 326 | + codeGen.GenCode(*function); |
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | void TestCodeGenSum::test_sum_int32_010() | 329 | void TestCodeGenSum::test_sum_int32_010() |
| @@ -338,7 +338,7 @@ void TestCodeGenSum::test_sum_int32_010() | |||
| 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_010"); | 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_010"); |
| 339 | npu::tile_fwk::CodeGenCtx ctx; | 339 | npu::tile_fwk::CodeGenCtx ctx; |
| 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 341 | - codeGen.GenCode(*function, {}); | 341 | + codeGen.GenCode(*function); |
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | void TestCodeGenSum::test_sum_int32_011() | 344 | void TestCodeGenSum::test_sum_int32_011() |
| @@ -353,7 +353,7 @@ void TestCodeGenSum::test_sum_int32_011() | |||
| 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_011"); | 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_011"); |
| 354 | npu::tile_fwk::CodeGenCtx ctx; | 354 | npu::tile_fwk::CodeGenCtx ctx; |
| 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 356 | - codeGen.GenCode(*function, {}); | 356 | + codeGen.GenCode(*function); |
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | void TestCodeGenSum::test_sum_int32_012() | 359 | void TestCodeGenSum::test_sum_int32_012() |
| @@ -368,7 +368,7 @@ void TestCodeGenSum::test_sum_int32_012() | |||
| 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_012"); | 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_012"); |
| 369 | npu::tile_fwk::CodeGenCtx ctx; | 369 | npu::tile_fwk::CodeGenCtx ctx; |
| 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 371 | - codeGen.GenCode(*function, {}); | 371 | + codeGen.GenCode(*function); |
| 372 | } | 372 | } |
| 373 | 373 | ||
| 374 | void TestCodeGenSum::test_sum_int32_013() | 374 | void TestCodeGenSum::test_sum_int32_013() |
| @@ -383,7 +383,7 @@ void TestCodeGenSum::test_sum_int32_013() | |||
| 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_013"); | 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_013"); |
| 384 | npu::tile_fwk::CodeGenCtx ctx; | 384 | npu::tile_fwk::CodeGenCtx ctx; |
| 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 386 | - codeGen.GenCode(*function, {}); | 386 | + codeGen.GenCode(*function); |
| 387 | } | 387 | } |
| 388 | 388 | ||
| 389 | void TestCodeGenSum::test_sum_int32_014() | 389 | void TestCodeGenSum::test_sum_int32_014() |
| @@ -398,7 +398,7 @@ void TestCodeGenSum::test_sum_int32_014() | |||
| 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_014"); | 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_014"); |
| 399 | npu::tile_fwk::CodeGenCtx ctx; | 399 | npu::tile_fwk::CodeGenCtx ctx; |
| 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 401 | - codeGen.GenCode(*function, {}); | 401 | + codeGen.GenCode(*function); |
| 402 | } | 402 | } |
| 403 | 403 | ||
| 404 | void TestCodeGenSum::test_sum_int32_015() | 404 | void TestCodeGenSum::test_sum_int32_015() |
| @@ -413,5 +413,5 @@ void TestCodeGenSum::test_sum_int32_015() | |||
| 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_015"); | 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "SUM_INT32_015"); |
| 414 | npu::tile_fwk::CodeGenCtx ctx; | 414 | npu::tile_fwk::CodeGenCtx ctx; |
| 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 416 | - codeGen.GenCode(*function, {}); | 416 | + codeGen.GenCode(*function); |
| 417 | } | 417 | } |
| @@ -38,7 +38,7 @@ void TestCodeGenTranspose::test_transpose_fp16_001() | |||
| 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_001"); | 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_001"); |
| 39 | npu::tile_fwk::CodeGenCtx ctx; | 39 | npu::tile_fwk::CodeGenCtx ctx; |
| 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 41 | - codeGen.GenCode(*function, {}); | 41 | + codeGen.GenCode(*function); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | void TestCodeGenTranspose::test_transpose_fp16_002() | 44 | void TestCodeGenTranspose::test_transpose_fp16_002() |
| @@ -53,7 +53,7 @@ void TestCodeGenTranspose::test_transpose_fp16_002() | |||
| 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_002"); | 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_002"); |
| 54 | npu::tile_fwk::CodeGenCtx ctx; | 54 | npu::tile_fwk::CodeGenCtx ctx; |
| 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 56 | - codeGen.GenCode(*function, {}); | 56 | + codeGen.GenCode(*function); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void TestCodeGenTranspose::test_transpose_fp16_003() | 59 | void TestCodeGenTranspose::test_transpose_fp16_003() |
| @@ -68,7 +68,7 @@ void TestCodeGenTranspose::test_transpose_fp16_003() | |||
| 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_003"); | 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_003"); |
| 69 | npu::tile_fwk::CodeGenCtx ctx; | 69 | npu::tile_fwk::CodeGenCtx ctx; |
| 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 71 | - codeGen.GenCode(*function, {}); | 71 | + codeGen.GenCode(*function); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void TestCodeGenTranspose::test_transpose_fp16_004() | 74 | void TestCodeGenTranspose::test_transpose_fp16_004() |
| @@ -83,7 +83,7 @@ void TestCodeGenTranspose::test_transpose_fp16_004() | |||
| 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_004"); | 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_004"); |
| 84 | npu::tile_fwk::CodeGenCtx ctx; | 84 | npu::tile_fwk::CodeGenCtx ctx; |
| 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 86 | - codeGen.GenCode(*function, {}); | 86 | + codeGen.GenCode(*function); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | void TestCodeGenTranspose::test_transpose_fp16_005() | 89 | void TestCodeGenTranspose::test_transpose_fp16_005() |
| @@ -98,7 +98,7 @@ void TestCodeGenTranspose::test_transpose_fp16_005() | |||
| 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_005"); | 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_005"); |
| 99 | npu::tile_fwk::CodeGenCtx ctx; | 99 | npu::tile_fwk::CodeGenCtx ctx; |
| 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 101 | - codeGen.GenCode(*function, {}); | 101 | + codeGen.GenCode(*function); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | void TestCodeGenTranspose::test_transpose_fp16_006() | 104 | void TestCodeGenTranspose::test_transpose_fp16_006() |
| @@ -113,7 +113,7 @@ void TestCodeGenTranspose::test_transpose_fp16_006() | |||
| 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_006"); | 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_006"); |
| 114 | npu::tile_fwk::CodeGenCtx ctx; | 114 | npu::tile_fwk::CodeGenCtx ctx; |
| 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 116 | - codeGen.GenCode(*function, {}); | 116 | + codeGen.GenCode(*function); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | void TestCodeGenTranspose::test_transpose_fp16_007() | 119 | void TestCodeGenTranspose::test_transpose_fp16_007() |
| @@ -128,7 +128,7 @@ void TestCodeGenTranspose::test_transpose_fp16_007() | |||
| 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_007"); | 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_007"); |
| 129 | npu::tile_fwk::CodeGenCtx ctx; | 129 | npu::tile_fwk::CodeGenCtx ctx; |
| 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 131 | - codeGen.GenCode(*function, {}); | 131 | + codeGen.GenCode(*function); |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | void TestCodeGenTranspose::test_transpose_fp16_008() | 134 | void TestCodeGenTranspose::test_transpose_fp16_008() |
| @@ -143,7 +143,7 @@ void TestCodeGenTranspose::test_transpose_fp16_008() | |||
| 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_008"); | 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_008"); |
| 144 | npu::tile_fwk::CodeGenCtx ctx; | 144 | npu::tile_fwk::CodeGenCtx ctx; |
| 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 146 | - codeGen.GenCode(*function, {}); | 146 | + codeGen.GenCode(*function); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | void TestCodeGenTranspose::test_transpose_fp16_009() | 149 | void TestCodeGenTranspose::test_transpose_fp16_009() |
| @@ -158,7 +158,7 @@ void TestCodeGenTranspose::test_transpose_fp16_009() | |||
| 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_009"); | 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_009"); |
| 159 | npu::tile_fwk::CodeGenCtx ctx; | 159 | npu::tile_fwk::CodeGenCtx ctx; |
| 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 161 | - codeGen.GenCode(*function, {}); | 161 | + codeGen.GenCode(*function); |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | void TestCodeGenTranspose::test_transpose_fp16_010() | 164 | void TestCodeGenTranspose::test_transpose_fp16_010() |
| @@ -173,7 +173,7 @@ void TestCodeGenTranspose::test_transpose_fp16_010() | |||
| 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_010"); | 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP16_010"); |
| 174 | npu::tile_fwk::CodeGenCtx ctx; | 174 | npu::tile_fwk::CodeGenCtx ctx; |
| 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 176 | - codeGen.GenCode(*function, {}); | 176 | + codeGen.GenCode(*function); |
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | void TestCodeGenTranspose::test_transpose_fp32_001() | 179 | void TestCodeGenTranspose::test_transpose_fp32_001() |
| @@ -188,7 +188,7 @@ void TestCodeGenTranspose::test_transpose_fp32_001() | |||
| 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_001"); | 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_001"); |
| 189 | npu::tile_fwk::CodeGenCtx ctx; | 189 | npu::tile_fwk::CodeGenCtx ctx; |
| 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 191 | - codeGen.GenCode(*function, {}); | 191 | + codeGen.GenCode(*function); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | void TestCodeGenTranspose::test_transpose_fp32_002() | 194 | void TestCodeGenTranspose::test_transpose_fp32_002() |
| @@ -203,7 +203,7 @@ void TestCodeGenTranspose::test_transpose_fp32_002() | |||
| 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_002"); | 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_002"); |
| 204 | npu::tile_fwk::CodeGenCtx ctx; | 204 | npu::tile_fwk::CodeGenCtx ctx; |
| 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 206 | - codeGen.GenCode(*function, {}); | 206 | + codeGen.GenCode(*function); |
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | void TestCodeGenTranspose::test_transpose_fp32_003() | 209 | void TestCodeGenTranspose::test_transpose_fp32_003() |
| @@ -218,7 +218,7 @@ void TestCodeGenTranspose::test_transpose_fp32_003() | |||
| 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_003"); | 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_003"); |
| 219 | npu::tile_fwk::CodeGenCtx ctx; | 219 | npu::tile_fwk::CodeGenCtx ctx; |
| 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 221 | - codeGen.GenCode(*function, {}); | 221 | + codeGen.GenCode(*function); |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | void TestCodeGenTranspose::test_transpose_fp32_004() | 224 | void TestCodeGenTranspose::test_transpose_fp32_004() |
| @@ -233,7 +233,7 @@ void TestCodeGenTranspose::test_transpose_fp32_004() | |||
| 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_004"); | 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_004"); |
| 234 | npu::tile_fwk::CodeGenCtx ctx; | 234 | npu::tile_fwk::CodeGenCtx ctx; |
| 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 236 | - codeGen.GenCode(*function, {}); | 236 | + codeGen.GenCode(*function); |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | void TestCodeGenTranspose::test_transpose_fp32_005() | 239 | void TestCodeGenTranspose::test_transpose_fp32_005() |
| @@ -248,7 +248,7 @@ void TestCodeGenTranspose::test_transpose_fp32_005() | |||
| 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_005"); | 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_005"); |
| 249 | npu::tile_fwk::CodeGenCtx ctx; | 249 | npu::tile_fwk::CodeGenCtx ctx; |
| 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 251 | - codeGen.GenCode(*function, {}); | 251 | + codeGen.GenCode(*function); |
| 252 | } | 252 | } |
| 253 | 253 | ||
| 254 | void TestCodeGenTranspose::test_transpose_fp32_006() | 254 | void TestCodeGenTranspose::test_transpose_fp32_006() |
| @@ -263,7 +263,7 @@ void TestCodeGenTranspose::test_transpose_fp32_006() | |||
| 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_006"); | 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_006"); |
| 264 | npu::tile_fwk::CodeGenCtx ctx; | 264 | npu::tile_fwk::CodeGenCtx ctx; |
| 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 266 | - codeGen.GenCode(*function, {}); | 266 | + codeGen.GenCode(*function); |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | void TestCodeGenTranspose::test_transpose_fp32_007() | 269 | void TestCodeGenTranspose::test_transpose_fp32_007() |
| @@ -278,7 +278,7 @@ void TestCodeGenTranspose::test_transpose_fp32_007() | |||
| 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_007"); | 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_007"); |
| 279 | npu::tile_fwk::CodeGenCtx ctx; | 279 | npu::tile_fwk::CodeGenCtx ctx; |
| 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 281 | - codeGen.GenCode(*function, {}); | 281 | + codeGen.GenCode(*function); |
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | void TestCodeGenTranspose::test_transpose_fp32_008() | 284 | void TestCodeGenTranspose::test_transpose_fp32_008() |
| @@ -293,7 +293,7 @@ void TestCodeGenTranspose::test_transpose_fp32_008() | |||
| 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_008"); | 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_008"); |
| 294 | npu::tile_fwk::CodeGenCtx ctx; | 294 | npu::tile_fwk::CodeGenCtx ctx; |
| 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 296 | - codeGen.GenCode(*function, {}); | 296 | + codeGen.GenCode(*function); |
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | void TestCodeGenTranspose::test_transpose_fp32_009() | 299 | void TestCodeGenTranspose::test_transpose_fp32_009() |
| @@ -308,7 +308,7 @@ void TestCodeGenTranspose::test_transpose_fp32_009() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_009"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_009"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenTranspose::test_transpose_fp32_010() | 314 | void TestCodeGenTranspose::test_transpose_fp32_010() |
| @@ -323,7 +323,7 @@ void TestCodeGenTranspose::test_transpose_fp32_010() | |||
| 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_010"); | 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_FP32_010"); |
| 324 | npu::tile_fwk::CodeGenCtx ctx; | 324 | npu::tile_fwk::CodeGenCtx ctx; |
| 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 326 | - codeGen.GenCode(*function, {}); | 326 | + codeGen.GenCode(*function); |
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | void TestCodeGenTranspose::test_transpose_int32_001() | 329 | void TestCodeGenTranspose::test_transpose_int32_001() |
| @@ -338,7 +338,7 @@ void TestCodeGenTranspose::test_transpose_int32_001() | |||
| 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT32_001"); | 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT32_001"); |
| 339 | npu::tile_fwk::CodeGenCtx ctx; | 339 | npu::tile_fwk::CodeGenCtx ctx; |
| 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 341 | - codeGen.GenCode(*function, {}); | 341 | + codeGen.GenCode(*function); |
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | void TestCodeGenTranspose::test_transpose_int32_002() | 344 | void TestCodeGenTranspose::test_transpose_int32_002() |
| @@ -353,7 +353,7 @@ void TestCodeGenTranspose::test_transpose_int32_002() | |||
| 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT32_002"); | 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT32_002"); |
| 354 | npu::tile_fwk::CodeGenCtx ctx; | 354 | npu::tile_fwk::CodeGenCtx ctx; |
| 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 356 | - codeGen.GenCode(*function, {}); | 356 | + codeGen.GenCode(*function); |
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | void TestCodeGenTranspose::test_transpose_int32_003() | 359 | void TestCodeGenTranspose::test_transpose_int32_003() |
| @@ -368,7 +368,7 @@ void TestCodeGenTranspose::test_transpose_int32_003() | |||
| 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT32_003"); | 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT32_003"); |
| 369 | npu::tile_fwk::CodeGenCtx ctx; | 369 | npu::tile_fwk::CodeGenCtx ctx; |
| 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 371 | - codeGen.GenCode(*function, {}); | 371 | + codeGen.GenCode(*function); |
| 372 | } | 372 | } |
| 373 | 373 | ||
| 374 | void TestCodeGenTranspose::test_transpose_int32_004() | 374 | void TestCodeGenTranspose::test_transpose_int32_004() |
| @@ -383,7 +383,7 @@ void TestCodeGenTranspose::test_transpose_int32_004() | |||
| 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT32_004"); | 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT32_004"); |
| 384 | npu::tile_fwk::CodeGenCtx ctx; | 384 | npu::tile_fwk::CodeGenCtx ctx; |
| 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 386 | - codeGen.GenCode(*function, {}); | 386 | + codeGen.GenCode(*function); |
| 387 | } | 387 | } |
| 388 | 388 | ||
| 389 | void TestCodeGenTranspose::test_transpose_int32_005() | 389 | void TestCodeGenTranspose::test_transpose_int32_005() |
| @@ -398,7 +398,7 @@ void TestCodeGenTranspose::test_transpose_int32_005() | |||
| 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT32_005"); | 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT32_005"); |
| 399 | npu::tile_fwk::CodeGenCtx ctx; | 399 | npu::tile_fwk::CodeGenCtx ctx; |
| 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 401 | - codeGen.GenCode(*function, {}); | 401 | + codeGen.GenCode(*function); |
| 402 | } | 402 | } |
| 403 | 403 | ||
| 404 | void TestCodeGenTranspose::test_transpose_int16_001() | 404 | void TestCodeGenTranspose::test_transpose_int16_001() |
| @@ -413,7 +413,7 @@ void TestCodeGenTranspose::test_transpose_int16_001() | |||
| 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_001"); | 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_001"); |
| 414 | npu::tile_fwk::CodeGenCtx ctx; | 414 | npu::tile_fwk::CodeGenCtx ctx; |
| 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 416 | - codeGen.GenCode(*function, {}); | 416 | + codeGen.GenCode(*function); |
| 417 | } | 417 | } |
| 418 | 418 | ||
| 419 | void TestCodeGenTranspose::test_transpose_int16_002() | 419 | void TestCodeGenTranspose::test_transpose_int16_002() |
| @@ -428,7 +428,7 @@ void TestCodeGenTranspose::test_transpose_int16_002() | |||
| 428 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_002"); | 428 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_002"); |
| 429 | npu::tile_fwk::CodeGenCtx ctx; | 429 | npu::tile_fwk::CodeGenCtx ctx; |
| 430 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 430 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 431 | - codeGen.GenCode(*function, {}); | 431 | + codeGen.GenCode(*function); |
| 432 | } | 432 | } |
| 433 | 433 | ||
| 434 | void TestCodeGenTranspose::test_transpose_int16_003() | 434 | void TestCodeGenTranspose::test_transpose_int16_003() |
| @@ -443,7 +443,7 @@ void TestCodeGenTranspose::test_transpose_int16_003() | |||
| 443 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_003"); | 443 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_003"); |
| 444 | npu::tile_fwk::CodeGenCtx ctx; | 444 | npu::tile_fwk::CodeGenCtx ctx; |
| 445 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 445 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 446 | - codeGen.GenCode(*function, {}); | 446 | + codeGen.GenCode(*function); |
| 447 | } | 447 | } |
| 448 | 448 | ||
| 449 | void TestCodeGenTranspose::test_transpose_int16_004() | 449 | void TestCodeGenTranspose::test_transpose_int16_004() |
| @@ -458,7 +458,7 @@ void TestCodeGenTranspose::test_transpose_int16_004() | |||
| 458 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_004"); | 458 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_004"); |
| 459 | npu::tile_fwk::CodeGenCtx ctx; | 459 | npu::tile_fwk::CodeGenCtx ctx; |
| 460 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 460 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 461 | - codeGen.GenCode(*function, {}); | 461 | + codeGen.GenCode(*function); |
| 462 | } | 462 | } |
| 463 | 463 | ||
| 464 | void TestCodeGenTranspose::test_transpose_int16_005() | 464 | void TestCodeGenTranspose::test_transpose_int16_005() |
| @@ -473,7 +473,7 @@ void TestCodeGenTranspose::test_transpose_int16_005() | |||
| 473 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_005"); | 473 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_005"); |
| 474 | npu::tile_fwk::CodeGenCtx ctx; | 474 | npu::tile_fwk::CodeGenCtx ctx; |
| 475 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 475 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 476 | - codeGen.GenCode(*function, {}); | 476 | + codeGen.GenCode(*function); |
| 477 | } | 477 | } |
| 478 | 478 | ||
| 479 | void TestCodeGenTranspose::test_transpose_int16_006() | 479 | void TestCodeGenTranspose::test_transpose_int16_006() |
| @@ -488,7 +488,7 @@ void TestCodeGenTranspose::test_transpose_int16_006() | |||
| 488 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_006"); | 488 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_006"); |
| 489 | npu::tile_fwk::CodeGenCtx ctx; | 489 | npu::tile_fwk::CodeGenCtx ctx; |
| 490 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 490 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 491 | - codeGen.GenCode(*function, {}); | 491 | + codeGen.GenCode(*function); |
| 492 | } | 492 | } |
| 493 | 493 | ||
| 494 | void TestCodeGenTranspose::test_transpose_int16_007() | 494 | void TestCodeGenTranspose::test_transpose_int16_007() |
| @@ -503,7 +503,7 @@ void TestCodeGenTranspose::test_transpose_int16_007() | |||
| 503 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_007"); | 503 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_007"); |
| 504 | npu::tile_fwk::CodeGenCtx ctx; | 504 | npu::tile_fwk::CodeGenCtx ctx; |
| 505 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 505 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 506 | - codeGen.GenCode(*function, {}); | 506 | + codeGen.GenCode(*function); |
| 507 | } | 507 | } |
| 508 | 508 | ||
| 509 | void TestCodeGenTranspose::test_transpose_int16_008() | 509 | void TestCodeGenTranspose::test_transpose_int16_008() |
| @@ -518,7 +518,7 @@ void TestCodeGenTranspose::test_transpose_int16_008() | |||
| 518 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_008"); | 518 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_008"); |
| 519 | npu::tile_fwk::CodeGenCtx ctx; | 519 | npu::tile_fwk::CodeGenCtx ctx; |
| 520 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 520 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 521 | - codeGen.GenCode(*function, {}); | 521 | + codeGen.GenCode(*function); |
| 522 | } | 522 | } |
| 523 | 523 | ||
| 524 | void TestCodeGenTranspose::test_transpose_int16_009() | 524 | void TestCodeGenTranspose::test_transpose_int16_009() |
| @@ -533,7 +533,7 @@ void TestCodeGenTranspose::test_transpose_int16_009() | |||
| 533 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_009"); | 533 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_009"); |
| 534 | npu::tile_fwk::CodeGenCtx ctx; | 534 | npu::tile_fwk::CodeGenCtx ctx; |
| 535 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 535 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 536 | - codeGen.GenCode(*function, {}); | 536 | + codeGen.GenCode(*function); |
| 537 | } | 537 | } |
| 538 | 538 | ||
| 539 | void TestCodeGenTranspose::test_transpose_int16_010() | 539 | void TestCodeGenTranspose::test_transpose_int16_010() |
| @@ -548,7 +548,7 @@ void TestCodeGenTranspose::test_transpose_int16_010() | |||
| 548 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_010"); | 548 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_010"); |
| 549 | npu::tile_fwk::CodeGenCtx ctx; | 549 | npu::tile_fwk::CodeGenCtx ctx; |
| 550 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 550 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 551 | - codeGen.GenCode(*function, {}); | 551 | + codeGen.GenCode(*function); |
| 552 | } | 552 | } |
| 553 | 553 | ||
| 554 | void TestCodeGenTranspose::test_transpose_int16_011() | 554 | void TestCodeGenTranspose::test_transpose_int16_011() |
| @@ -563,5 +563,5 @@ void TestCodeGenTranspose::test_transpose_int16_011() | |||
| 563 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_011"); | 563 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "TRANSPOSE_INT16_011"); |
| 564 | npu::tile_fwk::CodeGenCtx ctx; | 564 | npu::tile_fwk::CodeGenCtx ctx; |
| 565 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 565 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 566 | - codeGen.GenCode(*function, {}); | 566 | + codeGen.GenCode(*function); |
| 567 | } | 567 | } |
| @@ -38,7 +38,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp16_001() | |||
| 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_001"); | 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_001"); |
| 39 | npu::tile_fwk::CodeGenCtx ctx; | 39 | npu::tile_fwk::CodeGenCtx ctx; |
| 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 41 | - codeGen.GenCode(*function, {}); | 41 | + codeGen.GenCode(*function); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_002() | 44 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_002() |
| @@ -53,7 +53,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp16_002() | |||
| 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_002"); | 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_002"); |
| 54 | npu::tile_fwk::CodeGenCtx ctx; | 54 | npu::tile_fwk::CodeGenCtx ctx; |
| 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 56 | - codeGen.GenCode(*function, {}); | 56 | + codeGen.GenCode(*function); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_003() | 59 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_003() |
| @@ -68,7 +68,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp16_003() | |||
| 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_003"); | 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_003"); |
| 69 | npu::tile_fwk::CodeGenCtx ctx; | 69 | npu::tile_fwk::CodeGenCtx ctx; |
| 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 71 | - codeGen.GenCode(*function, {}); | 71 | + codeGen.GenCode(*function); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_004() | 74 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_004() |
| @@ -83,7 +83,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp16_004() | |||
| 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_004"); | 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_004"); |
| 84 | npu::tile_fwk::CodeGenCtx ctx; | 84 | npu::tile_fwk::CodeGenCtx ctx; |
| 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 86 | - codeGen.GenCode(*function, {}); | 86 | + codeGen.GenCode(*function); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_005() | 89 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_005() |
| @@ -98,7 +98,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp16_005() | |||
| 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_005"); | 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_005"); |
| 99 | npu::tile_fwk::CodeGenCtx ctx; | 99 | npu::tile_fwk::CodeGenCtx ctx; |
| 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 101 | - codeGen.GenCode(*function, {}); | 101 | + codeGen.GenCode(*function); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_006() | 104 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_006() |
| @@ -113,7 +113,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp16_006() | |||
| 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_006"); | 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_006"); |
| 114 | npu::tile_fwk::CodeGenCtx ctx; | 114 | npu::tile_fwk::CodeGenCtx ctx; |
| 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 116 | - codeGen.GenCode(*function, {}); | 116 | + codeGen.GenCode(*function); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_007() | 119 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_007() |
| @@ -128,7 +128,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp16_007() | |||
| 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_007"); | 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_007"); |
| 129 | npu::tile_fwk::CodeGenCtx ctx; | 129 | npu::tile_fwk::CodeGenCtx ctx; |
| 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 131 | - codeGen.GenCode(*function, {}); | 131 | + codeGen.GenCode(*function); |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_008() | 134 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_008() |
| @@ -143,7 +143,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp16_008() | |||
| 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_008"); | 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_008"); |
| 144 | npu::tile_fwk::CodeGenCtx ctx; | 144 | npu::tile_fwk::CodeGenCtx ctx; |
| 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 146 | - codeGen.GenCode(*function, {}); | 146 | + codeGen.GenCode(*function); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_010() | 149 | void TestCodeGenUnsqueeze::test_unsqueeze_fp16_010() |
| @@ -158,7 +158,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp16_010() | |||
| 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_010"); | 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP16_010"); |
| 159 | npu::tile_fwk::CodeGenCtx ctx; | 159 | npu::tile_fwk::CodeGenCtx ctx; |
| 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 161 | - codeGen.GenCode(*function, {}); | 161 | + codeGen.GenCode(*function); |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_001() | 164 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_001() |
| @@ -173,7 +173,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp32_001() | |||
| 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_001"); | 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_001"); |
| 174 | npu::tile_fwk::CodeGenCtx ctx; | 174 | npu::tile_fwk::CodeGenCtx ctx; |
| 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 176 | - codeGen.GenCode(*function, {}); | 176 | + codeGen.GenCode(*function); |
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_002() | 179 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_002() |
| @@ -188,7 +188,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp32_002() | |||
| 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_002"); | 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_002"); |
| 189 | npu::tile_fwk::CodeGenCtx ctx; | 189 | npu::tile_fwk::CodeGenCtx ctx; |
| 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 191 | - codeGen.GenCode(*function, {}); | 191 | + codeGen.GenCode(*function); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_003() | 194 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_003() |
| @@ -203,7 +203,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp32_003() | |||
| 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_003"); | 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_003"); |
| 204 | npu::tile_fwk::CodeGenCtx ctx; | 204 | npu::tile_fwk::CodeGenCtx ctx; |
| 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 206 | - codeGen.GenCode(*function, {}); | 206 | + codeGen.GenCode(*function); |
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_004() | 209 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_004() |
| @@ -218,7 +218,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp32_004() | |||
| 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_004"); | 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_004"); |
| 219 | npu::tile_fwk::CodeGenCtx ctx; | 219 | npu::tile_fwk::CodeGenCtx ctx; |
| 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 221 | - codeGen.GenCode(*function, {}); | 221 | + codeGen.GenCode(*function); |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_005() | 224 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_005() |
| @@ -233,7 +233,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp32_005() | |||
| 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_005"); | 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_005"); |
| 234 | npu::tile_fwk::CodeGenCtx ctx; | 234 | npu::tile_fwk::CodeGenCtx ctx; |
| 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 236 | - codeGen.GenCode(*function, {}); | 236 | + codeGen.GenCode(*function); |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_006() | 239 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_006() |
| @@ -248,7 +248,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp32_006() | |||
| 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_006"); | 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_006"); |
| 249 | npu::tile_fwk::CodeGenCtx ctx; | 249 | npu::tile_fwk::CodeGenCtx ctx; |
| 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 251 | - codeGen.GenCode(*function, {}); | 251 | + codeGen.GenCode(*function); |
| 252 | } | 252 | } |
| 253 | 253 | ||
| 254 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_007() | 254 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_007() |
| @@ -263,7 +263,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp32_007() | |||
| 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_007"); | 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_007"); |
| 264 | npu::tile_fwk::CodeGenCtx ctx; | 264 | npu::tile_fwk::CodeGenCtx ctx; |
| 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 266 | - codeGen.GenCode(*function, {}); | 266 | + codeGen.GenCode(*function); |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_008() | 269 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_008() |
| @@ -278,7 +278,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp32_008() | |||
| 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_008"); | 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_008"); |
| 279 | npu::tile_fwk::CodeGenCtx ctx; | 279 | npu::tile_fwk::CodeGenCtx ctx; |
| 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 281 | - codeGen.GenCode(*function, {}); | 281 | + codeGen.GenCode(*function); |
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_010() | 284 | void TestCodeGenUnsqueeze::test_unsqueeze_fp32_010() |
| @@ -293,7 +293,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_fp32_010() | |||
| 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_010"); | 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_FP32_010"); |
| 294 | npu::tile_fwk::CodeGenCtx ctx; | 294 | npu::tile_fwk::CodeGenCtx ctx; |
| 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 296 | - codeGen.GenCode(*function, {}); | 296 | + codeGen.GenCode(*function); |
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | void TestCodeGenUnsqueeze::test_unsqueeze_int8_001() | 299 | void TestCodeGenUnsqueeze::test_unsqueeze_int8_001() |
| @@ -308,7 +308,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int8_001() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT8_001"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT8_001"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenUnsqueeze::test_unsqueeze_int8_002() | 314 | void TestCodeGenUnsqueeze::test_unsqueeze_int8_002() |
| @@ -323,7 +323,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int8_002() | |||
| 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT8_002"); | 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT8_002"); |
| 324 | npu::tile_fwk::CodeGenCtx ctx; | 324 | npu::tile_fwk::CodeGenCtx ctx; |
| 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 326 | - codeGen.GenCode(*function, {}); | 326 | + codeGen.GenCode(*function); |
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | void TestCodeGenUnsqueeze::test_unsqueeze_int8_003() | 329 | void TestCodeGenUnsqueeze::test_unsqueeze_int8_003() |
| @@ -338,7 +338,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int8_003() | |||
| 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT8_003"); | 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT8_003"); |
| 339 | npu::tile_fwk::CodeGenCtx ctx; | 339 | npu::tile_fwk::CodeGenCtx ctx; |
| 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 341 | - codeGen.GenCode(*function, {}); | 341 | + codeGen.GenCode(*function); |
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | void TestCodeGenUnsqueeze::test_unsqueeze_int8_004() | 344 | void TestCodeGenUnsqueeze::test_unsqueeze_int8_004() |
| @@ -353,7 +353,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int8_004() | |||
| 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT8_004"); | 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT8_004"); |
| 354 | npu::tile_fwk::CodeGenCtx ctx; | 354 | npu::tile_fwk::CodeGenCtx ctx; |
| 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 356 | - codeGen.GenCode(*function, {}); | 356 | + codeGen.GenCode(*function); |
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | void TestCodeGenUnsqueeze::test_unsqueeze_int8_005() | 359 | void TestCodeGenUnsqueeze::test_unsqueeze_int8_005() |
| @@ -368,7 +368,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int8_005() | |||
| 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT8_005"); | 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT8_005"); |
| 369 | npu::tile_fwk::CodeGenCtx ctx; | 369 | npu::tile_fwk::CodeGenCtx ctx; |
| 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 371 | - codeGen.GenCode(*function, {}); | 371 | + codeGen.GenCode(*function); |
| 372 | } | 372 | } |
| 373 | 373 | ||
| 374 | void TestCodeGenUnsqueeze::test_unsqueeze_int16_001() | 374 | void TestCodeGenUnsqueeze::test_unsqueeze_int16_001() |
| @@ -383,7 +383,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int16_001() | |||
| 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT16_001"); | 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT16_001"); |
| 384 | npu::tile_fwk::CodeGenCtx ctx; | 384 | npu::tile_fwk::CodeGenCtx ctx; |
| 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 386 | - codeGen.GenCode(*function, {}); | 386 | + codeGen.GenCode(*function); |
| 387 | } | 387 | } |
| 388 | 388 | ||
| 389 | void TestCodeGenUnsqueeze::test_unsqueeze_int16_002() | 389 | void TestCodeGenUnsqueeze::test_unsqueeze_int16_002() |
| @@ -398,7 +398,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int16_002() | |||
| 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT16_002"); | 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT16_002"); |
| 399 | npu::tile_fwk::CodeGenCtx ctx; | 399 | npu::tile_fwk::CodeGenCtx ctx; |
| 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 401 | - codeGen.GenCode(*function, {}); | 401 | + codeGen.GenCode(*function); |
| 402 | } | 402 | } |
| 403 | 403 | ||
| 404 | void TestCodeGenUnsqueeze::test_unsqueeze_int16_003() | 404 | void TestCodeGenUnsqueeze::test_unsqueeze_int16_003() |
| @@ -413,7 +413,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int16_003() | |||
| 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT16_003"); | 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT16_003"); |
| 414 | npu::tile_fwk::CodeGenCtx ctx; | 414 | npu::tile_fwk::CodeGenCtx ctx; |
| 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 416 | - codeGen.GenCode(*function, {}); | 416 | + codeGen.GenCode(*function); |
| 417 | } | 417 | } |
| 418 | 418 | ||
| 419 | void TestCodeGenUnsqueeze::test_unsqueeze_int16_004() | 419 | void TestCodeGenUnsqueeze::test_unsqueeze_int16_004() |
| @@ -428,7 +428,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int16_004() | |||
| 428 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT16_004"); | 428 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT16_004"); |
| 429 | npu::tile_fwk::CodeGenCtx ctx; | 429 | npu::tile_fwk::CodeGenCtx ctx; |
| 430 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 430 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 431 | - codeGen.GenCode(*function, {}); | 431 | + codeGen.GenCode(*function); |
| 432 | } | 432 | } |
| 433 | 433 | ||
| 434 | void TestCodeGenUnsqueeze::test_unsqueeze_int16_005() | 434 | void TestCodeGenUnsqueeze::test_unsqueeze_int16_005() |
| @@ -443,7 +443,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int16_005() | |||
| 443 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT16_005"); | 443 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT16_005"); |
| 444 | npu::tile_fwk::CodeGenCtx ctx; | 444 | npu::tile_fwk::CodeGenCtx ctx; |
| 445 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 445 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 446 | - codeGen.GenCode(*function, {}); | 446 | + codeGen.GenCode(*function); |
| 447 | } | 447 | } |
| 448 | 448 | ||
| 449 | void TestCodeGenUnsqueeze::test_unsqueeze_int32_001() | 449 | void TestCodeGenUnsqueeze::test_unsqueeze_int32_001() |
| @@ -458,7 +458,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int32_001() | |||
| 458 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT32_001"); | 458 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT32_001"); |
| 459 | npu::tile_fwk::CodeGenCtx ctx; | 459 | npu::tile_fwk::CodeGenCtx ctx; |
| 460 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 460 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 461 | - codeGen.GenCode(*function, {}); | 461 | + codeGen.GenCode(*function); |
| 462 | } | 462 | } |
| 463 | 463 | ||
| 464 | void TestCodeGenUnsqueeze::test_unsqueeze_int32_002() | 464 | void TestCodeGenUnsqueeze::test_unsqueeze_int32_002() |
| @@ -473,7 +473,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int32_002() | |||
| 473 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT32_002"); | 473 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT32_002"); |
| 474 | npu::tile_fwk::CodeGenCtx ctx; | 474 | npu::tile_fwk::CodeGenCtx ctx; |
| 475 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 475 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 476 | - codeGen.GenCode(*function, {}); | 476 | + codeGen.GenCode(*function); |
| 477 | } | 477 | } |
| 478 | 478 | ||
| 479 | void TestCodeGenUnsqueeze::test_unsqueeze_int32_003() | 479 | void TestCodeGenUnsqueeze::test_unsqueeze_int32_003() |
| @@ -488,7 +488,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int32_003() | |||
| 488 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT32_003"); | 488 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT32_003"); |
| 489 | npu::tile_fwk::CodeGenCtx ctx; | 489 | npu::tile_fwk::CodeGenCtx ctx; |
| 490 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 490 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 491 | - codeGen.GenCode(*function, {}); | 491 | + codeGen.GenCode(*function); |
| 492 | } | 492 | } |
| 493 | 493 | ||
| 494 | void TestCodeGenUnsqueeze::test_unsqueeze_int32_004() | 494 | void TestCodeGenUnsqueeze::test_unsqueeze_int32_004() |
| @@ -503,7 +503,7 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int32_004() | |||
| 503 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT32_004"); | 503 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT32_004"); |
| 504 | npu::tile_fwk::CodeGenCtx ctx; | 504 | npu::tile_fwk::CodeGenCtx ctx; |
| 505 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 505 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 506 | - codeGen.GenCode(*function, {}); | 506 | + codeGen.GenCode(*function); |
| 507 | } | 507 | } |
| 508 | 508 | ||
| 509 | void TestCodeGenUnsqueeze::test_unsqueeze_int32_005() | 509 | void TestCodeGenUnsqueeze::test_unsqueeze_int32_005() |
| @@ -518,5 +518,5 @@ void TestCodeGenUnsqueeze::test_unsqueeze_int32_005() | |||
| 518 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT32_005"); | 518 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "UNSQUEEZE_INT32_005"); |
| 519 | npu::tile_fwk::CodeGenCtx ctx; | 519 | npu::tile_fwk::CodeGenCtx ctx; |
| 520 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 520 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 521 | - codeGen.GenCode(*function, {}); | 521 | + codeGen.GenCode(*function); |
| 522 | } | 522 | } |
| @@ -38,7 +38,7 @@ void TestCodeGenView::test_view_fp16_001() | |||
| 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_001"); | 38 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_001"); |
| 39 | npu::tile_fwk::CodeGenCtx ctx; | 39 | npu::tile_fwk::CodeGenCtx ctx; |
| 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 40 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 41 | - codeGen.GenCode(*function, {}); | 41 | + codeGen.GenCode(*function); |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | void TestCodeGenView::test_view_fp16_002() | 44 | void TestCodeGenView::test_view_fp16_002() |
| @@ -53,7 +53,7 @@ void TestCodeGenView::test_view_fp16_002() | |||
| 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_002"); | 53 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_002"); |
| 54 | npu::tile_fwk::CodeGenCtx ctx; | 54 | npu::tile_fwk::CodeGenCtx ctx; |
| 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 55 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 56 | - codeGen.GenCode(*function, {}); | 56 | + codeGen.GenCode(*function); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | void TestCodeGenView::test_view_fp16_003() | 59 | void TestCodeGenView::test_view_fp16_003() |
| @@ -68,7 +68,7 @@ void TestCodeGenView::test_view_fp16_003() | |||
| 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_003"); | 68 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_003"); |
| 69 | npu::tile_fwk::CodeGenCtx ctx; | 69 | npu::tile_fwk::CodeGenCtx ctx; |
| 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 70 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 71 | - codeGen.GenCode(*function, {}); | 71 | + codeGen.GenCode(*function); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | void TestCodeGenView::test_view_fp16_004() | 74 | void TestCodeGenView::test_view_fp16_004() |
| @@ -83,7 +83,7 @@ void TestCodeGenView::test_view_fp16_004() | |||
| 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_004"); | 83 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_004"); |
| 84 | npu::tile_fwk::CodeGenCtx ctx; | 84 | npu::tile_fwk::CodeGenCtx ctx; |
| 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 85 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 86 | - codeGen.GenCode(*function, {}); | 86 | + codeGen.GenCode(*function); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | void TestCodeGenView::test_view_fp16_005() | 89 | void TestCodeGenView::test_view_fp16_005() |
| @@ -98,7 +98,7 @@ void TestCodeGenView::test_view_fp16_005() | |||
| 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_005"); | 98 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_005"); |
| 99 | npu::tile_fwk::CodeGenCtx ctx; | 99 | npu::tile_fwk::CodeGenCtx ctx; |
| 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 100 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 101 | - codeGen.GenCode(*function, {}); | 101 | + codeGen.GenCode(*function); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | void TestCodeGenView::test_view_fp16_006() | 104 | void TestCodeGenView::test_view_fp16_006() |
| @@ -113,7 +113,7 @@ void TestCodeGenView::test_view_fp16_006() | |||
| 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_006"); | 113 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_006"); |
| 114 | npu::tile_fwk::CodeGenCtx ctx; | 114 | npu::tile_fwk::CodeGenCtx ctx; |
| 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 115 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 116 | - codeGen.GenCode(*function, {}); | 116 | + codeGen.GenCode(*function); |
| 117 | } | 117 | } |
| 118 | 118 | ||
| 119 | void TestCodeGenView::test_view_fp16_007() | 119 | void TestCodeGenView::test_view_fp16_007() |
| @@ -128,7 +128,7 @@ void TestCodeGenView::test_view_fp16_007() | |||
| 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_007"); | 128 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_007"); |
| 129 | npu::tile_fwk::CodeGenCtx ctx; | 129 | npu::tile_fwk::CodeGenCtx ctx; |
| 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 130 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 131 | - codeGen.GenCode(*function, {}); | 131 | + codeGen.GenCode(*function); |
| 132 | } | 132 | } |
| 133 | 133 | ||
| 134 | void TestCodeGenView::test_view_fp16_008() | 134 | void TestCodeGenView::test_view_fp16_008() |
| @@ -143,7 +143,7 @@ void TestCodeGenView::test_view_fp16_008() | |||
| 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_008"); | 143 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_008"); |
| 144 | npu::tile_fwk::CodeGenCtx ctx; | 144 | npu::tile_fwk::CodeGenCtx ctx; |
| 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 145 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 146 | - codeGen.GenCode(*function, {}); | 146 | + codeGen.GenCode(*function); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | void TestCodeGenView::test_view_fp16_009() | 149 | void TestCodeGenView::test_view_fp16_009() |
| @@ -158,7 +158,7 @@ void TestCodeGenView::test_view_fp16_009() | |||
| 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_009"); | 158 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_009"); |
| 159 | npu::tile_fwk::CodeGenCtx ctx; | 159 | npu::tile_fwk::CodeGenCtx ctx; |
| 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 160 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 161 | - codeGen.GenCode(*function, {}); | 161 | + codeGen.GenCode(*function); |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | void TestCodeGenView::test_view_fp16_010() | 164 | void TestCodeGenView::test_view_fp16_010() |
| @@ -173,7 +173,7 @@ void TestCodeGenView::test_view_fp16_010() | |||
| 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_010"); | 173 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP16_010"); |
| 174 | npu::tile_fwk::CodeGenCtx ctx; | 174 | npu::tile_fwk::CodeGenCtx ctx; |
| 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 175 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 176 | - codeGen.GenCode(*function, {}); | 176 | + codeGen.GenCode(*function); |
| 177 | } | 177 | } |
| 178 | 178 | ||
| 179 | void TestCodeGenView::test_view_fp32_001() | 179 | void TestCodeGenView::test_view_fp32_001() |
| @@ -188,7 +188,7 @@ void TestCodeGenView::test_view_fp32_001() | |||
| 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_001"); | 188 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_001"); |
| 189 | npu::tile_fwk::CodeGenCtx ctx; | 189 | npu::tile_fwk::CodeGenCtx ctx; |
| 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 190 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 191 | - codeGen.GenCode(*function, {}); | 191 | + codeGen.GenCode(*function); |
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | void TestCodeGenView::test_view_fp32_002() | 194 | void TestCodeGenView::test_view_fp32_002() |
| @@ -203,7 +203,7 @@ void TestCodeGenView::test_view_fp32_002() | |||
| 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_002"); | 203 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_002"); |
| 204 | npu::tile_fwk::CodeGenCtx ctx; | 204 | npu::tile_fwk::CodeGenCtx ctx; |
| 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 205 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 206 | - codeGen.GenCode(*function, {}); | 206 | + codeGen.GenCode(*function); |
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | void TestCodeGenView::test_view_fp32_003() | 209 | void TestCodeGenView::test_view_fp32_003() |
| @@ -218,7 +218,7 @@ void TestCodeGenView::test_view_fp32_003() | |||
| 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_003"); | 218 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_003"); |
| 219 | npu::tile_fwk::CodeGenCtx ctx; | 219 | npu::tile_fwk::CodeGenCtx ctx; |
| 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 220 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 221 | - codeGen.GenCode(*function, {}); | 221 | + codeGen.GenCode(*function); |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | void TestCodeGenView::test_view_fp32_004() | 224 | void TestCodeGenView::test_view_fp32_004() |
| @@ -233,7 +233,7 @@ void TestCodeGenView::test_view_fp32_004() | |||
| 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_004"); | 233 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_004"); |
| 234 | npu::tile_fwk::CodeGenCtx ctx; | 234 | npu::tile_fwk::CodeGenCtx ctx; |
| 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 235 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 236 | - codeGen.GenCode(*function, {}); | 236 | + codeGen.GenCode(*function); |
| 237 | } | 237 | } |
| 238 | 238 | ||
| 239 | void TestCodeGenView::test_view_fp32_005() | 239 | void TestCodeGenView::test_view_fp32_005() |
| @@ -248,7 +248,7 @@ void TestCodeGenView::test_view_fp32_005() | |||
| 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_005"); | 248 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_005"); |
| 249 | npu::tile_fwk::CodeGenCtx ctx; | 249 | npu::tile_fwk::CodeGenCtx ctx; |
| 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 250 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 251 | - codeGen.GenCode(*function, {}); | 251 | + codeGen.GenCode(*function); |
| 252 | } | 252 | } |
| 253 | 253 | ||
| 254 | void TestCodeGenView::test_view_fp32_006() | 254 | void TestCodeGenView::test_view_fp32_006() |
| @@ -263,7 +263,7 @@ void TestCodeGenView::test_view_fp32_006() | |||
| 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_006"); | 263 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_006"); |
| 264 | npu::tile_fwk::CodeGenCtx ctx; | 264 | npu::tile_fwk::CodeGenCtx ctx; |
| 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 265 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 266 | - codeGen.GenCode(*function, {}); | 266 | + codeGen.GenCode(*function); |
| 267 | } | 267 | } |
| 268 | 268 | ||
| 269 | void TestCodeGenView::test_view_fp32_007() | 269 | void TestCodeGenView::test_view_fp32_007() |
| @@ -278,7 +278,7 @@ void TestCodeGenView::test_view_fp32_007() | |||
| 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_007"); | 278 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_007"); |
| 279 | npu::tile_fwk::CodeGenCtx ctx; | 279 | npu::tile_fwk::CodeGenCtx ctx; |
| 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 280 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 281 | - codeGen.GenCode(*function, {}); | 281 | + codeGen.GenCode(*function); |
| 282 | } | 282 | } |
| 283 | 283 | ||
| 284 | void TestCodeGenView::test_view_fp32_008() | 284 | void TestCodeGenView::test_view_fp32_008() |
| @@ -293,7 +293,7 @@ void TestCodeGenView::test_view_fp32_008() | |||
| 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_008"); | 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_008"); |
| 294 | npu::tile_fwk::CodeGenCtx ctx; | 294 | npu::tile_fwk::CodeGenCtx ctx; |
| 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 295 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 296 | - codeGen.GenCode(*function, {}); | 296 | + codeGen.GenCode(*function); |
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | void TestCodeGenView::test_view_fp32_009() | 299 | void TestCodeGenView::test_view_fp32_009() |
| @@ -308,7 +308,7 @@ void TestCodeGenView::test_view_fp32_009() | |||
| 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_009"); | 308 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_009"); |
| 309 | npu::tile_fwk::CodeGenCtx ctx; | 309 | npu::tile_fwk::CodeGenCtx ctx; |
| 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 310 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 311 | - codeGen.GenCode(*function, {}); | 311 | + codeGen.GenCode(*function); |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | void TestCodeGenView::test_view_fp32_010() | 314 | void TestCodeGenView::test_view_fp32_010() |
| @@ -323,7 +323,7 @@ void TestCodeGenView::test_view_fp32_010() | |||
| 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_010"); | 323 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_FP32_010"); |
| 324 | npu::tile_fwk::CodeGenCtx ctx; | 324 | npu::tile_fwk::CodeGenCtx ctx; |
| 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 325 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 326 | - codeGen.GenCode(*function, {}); | 326 | + codeGen.GenCode(*function); |
| 327 | } | 327 | } |
| 328 | 328 | ||
| 329 | void TestCodeGenView::test_view_int8_001() | 329 | void TestCodeGenView::test_view_int8_001() |
| @@ -338,7 +338,7 @@ void TestCodeGenView::test_view_int8_001() | |||
| 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT8_001"); | 338 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT8_001"); |
| 339 | npu::tile_fwk::CodeGenCtx ctx; | 339 | npu::tile_fwk::CodeGenCtx ctx; |
| 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 340 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 341 | - codeGen.GenCode(*function, {}); | 341 | + codeGen.GenCode(*function); |
| 342 | } | 342 | } |
| 343 | 343 | ||
| 344 | void TestCodeGenView::test_view_int8_002() | 344 | void TestCodeGenView::test_view_int8_002() |
| @@ -353,7 +353,7 @@ void TestCodeGenView::test_view_int8_002() | |||
| 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT8_002"); | 353 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT8_002"); |
| 354 | npu::tile_fwk::CodeGenCtx ctx; | 354 | npu::tile_fwk::CodeGenCtx ctx; |
| 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 355 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 356 | - codeGen.GenCode(*function, {}); | 356 | + codeGen.GenCode(*function); |
| 357 | } | 357 | } |
| 358 | 358 | ||
| 359 | void TestCodeGenView::test_view_int8_003() | 359 | void TestCodeGenView::test_view_int8_003() |
| @@ -368,7 +368,7 @@ void TestCodeGenView::test_view_int8_003() | |||
| 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT8_003"); | 368 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT8_003"); |
| 369 | npu::tile_fwk::CodeGenCtx ctx; | 369 | npu::tile_fwk::CodeGenCtx ctx; |
| 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 370 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 371 | - codeGen.GenCode(*function, {}); | 371 | + codeGen.GenCode(*function); |
| 372 | } | 372 | } |
| 373 | 373 | ||
| 374 | void TestCodeGenView::test_view_int16_001() | 374 | void TestCodeGenView::test_view_int16_001() |
| @@ -383,7 +383,7 @@ void TestCodeGenView::test_view_int16_001() | |||
| 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT16_001"); | 383 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT16_001"); |
| 384 | npu::tile_fwk::CodeGenCtx ctx; | 384 | npu::tile_fwk::CodeGenCtx ctx; |
| 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 385 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 386 | - codeGen.GenCode(*function, {}); | 386 | + codeGen.GenCode(*function); |
| 387 | } | 387 | } |
| 388 | 388 | ||
| 389 | void TestCodeGenView::test_view_int16_002() | 389 | void TestCodeGenView::test_view_int16_002() |
| @@ -398,7 +398,7 @@ void TestCodeGenView::test_view_int16_002() | |||
| 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT16_002"); | 398 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT16_002"); |
| 399 | npu::tile_fwk::CodeGenCtx ctx; | 399 | npu::tile_fwk::CodeGenCtx ctx; |
| 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 400 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 401 | - codeGen.GenCode(*function, {}); | 401 | + codeGen.GenCode(*function); |
| 402 | } | 402 | } |
| 403 | 403 | ||
| 404 | void TestCodeGenView::test_view_int16_003() | 404 | void TestCodeGenView::test_view_int16_003() |
| @@ -413,7 +413,7 @@ void TestCodeGenView::test_view_int16_003() | |||
| 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT16_003"); | 413 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT16_003"); |
| 414 | npu::tile_fwk::CodeGenCtx ctx; | 414 | npu::tile_fwk::CodeGenCtx ctx; |
| 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 415 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 416 | - codeGen.GenCode(*function, {}); | 416 | + codeGen.GenCode(*function); |
| 417 | } | 417 | } |
| 418 | 418 | ||
| 419 | void TestCodeGenView::test_view_int32_001() | 419 | void TestCodeGenView::test_view_int32_001() |
| @@ -428,7 +428,7 @@ void TestCodeGenView::test_view_int32_001() | |||
| 428 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT32_001"); | 428 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT32_001"); |
| 429 | npu::tile_fwk::CodeGenCtx ctx; | 429 | npu::tile_fwk::CodeGenCtx ctx; |
| 430 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 430 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 431 | - codeGen.GenCode(*function, {}); | 431 | + codeGen.GenCode(*function); |
| 432 | } | 432 | } |
| 433 | 433 | ||
| 434 | void TestCodeGenView::test_view_int32_002() | 434 | void TestCodeGenView::test_view_int32_002() |
| @@ -443,7 +443,7 @@ void TestCodeGenView::test_view_int32_002() | |||
| 443 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT32_002"); | 443 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT32_002"); |
| 444 | npu::tile_fwk::CodeGenCtx ctx; | 444 | npu::tile_fwk::CodeGenCtx ctx; |
| 445 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 445 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 446 | - codeGen.GenCode(*function, {}); | 446 | + codeGen.GenCode(*function); |
| 447 | } | 447 | } |
| 448 | 448 | ||
| 449 | void TestCodeGenView::test_view_int32_003() | 449 | void TestCodeGenView::test_view_int32_003() |
| @@ -458,5 +458,5 @@ void TestCodeGenView::test_view_int32_003() | |||
| 458 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT32_003"); | 458 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "VIEW_INT32_003"); |
| 459 | npu::tile_fwk::CodeGenCtx ctx; | 459 | npu::tile_fwk::CodeGenCtx ctx; |
| 460 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 460 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 461 | - codeGen.GenCode(*function, {}); | 461 | + codeGen.GenCode(*function); |
| 462 | } | 462 | } |
| @@ -40,7 +40,7 @@ void TestCodeGenWhere::test_where_fp16_001() | |||
| 40 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "WHERE_FP16_001"); | 40 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + "WHERE_FP16_001"); |
| 41 | npu::tile_fwk::CodeGenCtx ctx; | 41 | npu::tile_fwk::CodeGenCtx ctx; |
| 42 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); | 42 | npu::tile_fwk::CodeGenLiteNPU codeGen(ctx); |
| 43 | - codeGen.GenCode(*function, {}); | 43 | + codeGen.GenCode(*function); |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | void TestCodeGenWhere::test_where_fp16_002() | 46 | void TestCodeGenWhere::test_where_fp16_002() |
| @@ -65,7 +65,7 @@ void TestScatterUpdate(std::vector<int64_t> tileShape) | |||
| 65 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 65 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 66 | npu::tile_fwk::CodeGenCtx ctx; | 66 | npu::tile_fwk::CodeGenCtx ctx; |
| 67 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 67 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 68 | - codeGen.GenCode(*function, {}); | 68 | + codeGen.GenCode(*function); |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | TEST_F(TestCodegenScatterUpdate, TestScatterupdateDim2) { TestScatterUpdate({16, 32}); } | 71 | TEST_F(TestCodegenScatterUpdate, TestScatterupdateDim2) { TestScatterUpdate({16, 32}); } |
| @@ -95,7 +95,7 @@ TEST_F(TestCodegenScatterUpdate, TestBatchMatmul) | |||
| 95 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 95 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 96 | npu::tile_fwk::CodeGenCtx ctx; | 96 | npu::tile_fwk::CodeGenCtx ctx; |
| 97 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 97 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 98 | - codeGen.GenCode(*function, {}); | 98 | + codeGen.GenCode(*function); |
| 99 | } | 99 | } |
| 100 | 100 | ||
| 101 | TEST_F(TestCodegenScatterUpdate, TestScatterUpdate) | 101 | TEST_F(TestCodegenScatterUpdate, TestScatterUpdate) |
| @@ -123,6 +123,6 @@ TEST_F(TestCodegenScatterUpdate, TestScatterUpdate) | |||
| 123 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 123 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 124 | npu::tile_fwk::CodeGenCtx ctx; | 124 | npu::tile_fwk::CodeGenCtx ctx; |
| 125 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 125 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 126 | - codeGen.GenCode(*function, {}); | 126 | + codeGen.GenCode(*function); |
| 127 | } | 127 | } |
| 128 | } // namespace npu::tile_fwk | 128 | } // namespace npu::tile_fwk |
| @@ -48,6 +48,6 @@ TEST_F(TestCodegenArgSort, TestArgSort) | |||
| 48 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 48 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 49 | npu::tile_fwk::CodeGenCtx ctx; | 49 | npu::tile_fwk::CodeGenCtx ctx; |
| 50 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 50 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 51 | - codeGen.GenCode(*function, {}); | 51 | + codeGen.GenCode(*function); |
| 52 | } | 52 | } |
| 53 | } // namespace npu::tile_fwk | 53 | } // namespace npu::tile_fwk |
| @@ -52,7 +52,7 @@ void TestAddBody(std::vector<int64_t> shape, std::string name, bool withBrc = fa | |||
| 52 | } | 52 | } |
| 53 | npu::tile_fwk::CodeGenCtx ctx; | 53 | npu::tile_fwk::CodeGenCtx ctx; |
| 54 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 54 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 55 | - codeGen.GenCode(*function, {}); | 55 | + codeGen.GenCode(*function); |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | TEST_F(TestCodegenBinary, TestCodegenAddDim2) { TestAddBody({64, 64}, "ADD_DIM2", true); } | 58 | TEST_F(TestCodegenBinary, TestCodegenAddDim2) { TestAddBody({64, 64}, "ADD_DIM2", true); } |
| @@ -72,7 +72,7 @@ void TestAddSBody(std::vector<int64_t> shape, std::vector<int64_t> tile_shape, s | |||
| 72 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); | 72 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); |
| 73 | npu::tile_fwk::CodeGenCtx ctx; | 73 | npu::tile_fwk::CodeGenCtx ctx; |
| 74 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 74 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 75 | - codeGen.GenCode(*function, {}); | 75 | + codeGen.GenCode(*function); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | TEST_F(TestCodegenBinary, TestCodegenAddSDim2) { TestAddSBody({19, 90}, {8, 128}, "ADD_DIM2"); } | 78 | TEST_F(TestCodegenBinary, TestCodegenAddSDim2) { TestAddSBody({19, 90}, {8, 128}, "ADD_DIM2"); } |
| @@ -28,9 +28,7 @@ namespace npu::tile_fwk { | |||
| 28 | 28 | ||
| 29 | class TestCodegenGather : public CodegenTestBase { | 29 | class TestCodegenGather : public CodegenTestBase { |
| 30 | public: | 30 | public: |
| 31 | - TestCodegenGather() | 31 | + TestCodegenGather() : CodegenTestBase({.compileStage = CS_EXECUTE_GRAPH, .setTileTensor = true}) {} |
| 32 | - : CodegenTestBase({.compileStage = CS_EXECUTE_GRAPH, .setTileTensor = true}) | ||
| 33 | - {} | ||
| 34 | 32 | ||
| 35 | static void TearDownTestCase() { config::SetCodeGenConfig(KEY_CODEGEN_SUPPORT_TILE_TENSOR, true); } | 33 | static void TearDownTestCase() { config::SetCodeGenConfig(KEY_CODEGEN_SUPPORT_TILE_TENSOR, true); } |
| 36 | }; | 34 | }; |
| @@ -69,7 +67,7 @@ Function& testGatherEle(bool isSupportTileTensor, string funcName) | |||
| 69 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 67 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 70 | npu::tile_fwk::CodeGenCtx ctx; | 68 | npu::tile_fwk::CodeGenCtx ctx; |
| 71 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 69 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 72 | - codeGen.GenCode(*function, {}); | 70 | + codeGen.GenCode(*function); |
| 73 | return *function; | 71 | return *function; |
| 74 | } | 72 | } |
| 75 | TEST_F(TestCodegenGather, TestGatherEle) { testGatherEle(false, "GATHER_ELEMET_T"); } | 73 | TEST_F(TestCodegenGather, TestGatherEle) { testGatherEle(false, "GATHER_ELEMET_T"); } |
| @@ -80,7 +80,7 @@ void TestQuant(std::vector<int64_t>& inputShape) | |||
| 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 80 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 81 | npu::tile_fwk::CodeGenCtx ctx; | 81 | npu::tile_fwk::CodeGenCtx ctx; |
| 82 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 82 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 83 | - codeGen.GenCode(*function, {}); | 83 | + codeGen.GenCode(*function); |
| 84 | } | 84 | } |
| 85 | 85 | ||
| 86 | TEST_F(TestCodegenScalar, DISABLED_TestQuant_32_1_7168) | 86 | TEST_F(TestCodegenScalar, DISABLED_TestQuant_32_1_7168) |
| @@ -111,7 +111,7 @@ TEST_F(TestCodegenScalar, TestScalarOp) | |||
| 111 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 111 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 112 | npu::tile_fwk::CodeGenCtx ctx; | 112 | npu::tile_fwk::CodeGenCtx ctx; |
| 113 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 113 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 114 | - codeGen.GenCode(*function, {}); | 114 | + codeGen.GenCode(*function); |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | TEST_F(TestCodegenScalar, TestPipeAll) | 117 | TEST_F(TestCodegenScalar, TestPipeAll) |
| @@ -62,6 +62,6 @@ TEST_F(TestCodegenScatter, TestScatter) | |||
| 62 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 62 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 63 | npu::tile_fwk::CodeGenCtx ctx; | 63 | npu::tile_fwk::CodeGenCtx ctx; |
| 64 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 64 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 65 | - codeGen.GenCode(*function, {}); | 65 | + codeGen.GenCode(*function); |
| 66 | } | 66 | } |
| 67 | } // namespace npu::tile_fwk | 67 | } // namespace npu::tile_fwk |
| @@ -47,7 +47,7 @@ void TestRowMaxSingleBody( | |||
| 47 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); | 47 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); |
| 48 | npu::tile_fwk::CodeGenCtx ctx; | 48 | npu::tile_fwk::CodeGenCtx ctx; |
| 49 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 49 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 50 | - codeGen.GenCode(*function, {}); | 50 | + codeGen.GenCode(*function); |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | TEST_F(TestCodegenUnary, RowMaxSingleDim2) { TestRowMaxSingleBody({8, 128}, {8, 1}, {2, 64}, "ROWMAXSINGLE_DIM2"); } | 53 | TEST_F(TestCodegenUnary, RowMaxSingleDim2) { TestRowMaxSingleBody({8, 128}, {8, 1}, {2, 64}, "ROWMAXSINGLE_DIM2"); } |
| @@ -72,7 +72,7 @@ void TestRowSumSingleBody( | |||
| 72 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); | 72 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); |
| 73 | npu::tile_fwk::CodeGenCtx ctx; | 73 | npu::tile_fwk::CodeGenCtx ctx; |
| 74 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 74 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 75 | - codeGen.GenCode(*function, {}); | 75 | + codeGen.GenCode(*function); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | TEST_F(TestCodegenUnary, RowSumSingleDim2) { TestRowSumSingleBody({8, 128}, {8, 1}, {2, 64}, "ROWSUMSINGLE_DIM2"); } | 78 | TEST_F(TestCodegenUnary, RowSumSingleDim2) { TestRowSumSingleBody({8, 128}, {8, 1}, {2, 64}, "ROWSUMSINGLE_DIM2"); } |
| @@ -101,7 +101,7 @@ void TestTransposeVnchwconvBody( | |||
| 101 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); | 101 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); |
| 102 | npu::tile_fwk::CodeGenCtx ctx; | 102 | npu::tile_fwk::CodeGenCtx ctx; |
| 103 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 103 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 104 | - codeGen.GenCode(*function, {}); | 104 | + codeGen.GenCode(*function); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | TEST_F(TestCodegenUnary, TransposeVnchwconvDim2) | 107 | TEST_F(TestCodegenUnary, TransposeVnchwconvDim2) |
| @@ -140,7 +140,7 @@ Function& TestFullBody( | |||
| 140 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); | 140 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); |
| 141 | npu::tile_fwk::CodeGenCtx ctx; | 141 | npu::tile_fwk::CodeGenCtx ctx; |
| 142 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 142 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 143 | - codeGen.GenCode(*function, {}); | 143 | + codeGen.GenCode(*function); |
| 144 | return *function; | 144 | return *function; |
| 145 | } | 145 | } |
| 146 | 146 | ||
| @@ -166,7 +166,7 @@ Function& TestCastBody( | |||
| 166 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); | 166 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); |
| 167 | npu::tile_fwk::CodeGenCtx ctx; | 167 | npu::tile_fwk::CodeGenCtx ctx; |
| 168 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 168 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 169 | - codeGen.GenCode(*function, {}); | 169 | + codeGen.GenCode(*function); |
| 170 | return *function; | 170 | return *function; |
| 171 | } | 171 | } |
| 172 | 172 | ||
| @@ -198,7 +198,7 @@ Function& TestExpandBody( | |||
| 198 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); | 198 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); |
| 199 | npu::tile_fwk::CodeGenCtx ctx; | 199 | npu::tile_fwk::CodeGenCtx ctx; |
| 200 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 200 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 201 | - codeGen.GenCode(*function, {}); | 201 | + codeGen.GenCode(*function); |
| 202 | return *function; | 202 | return *function; |
| 203 | } | 203 | } |
| 204 | 204 | ||
| @@ -236,7 +236,7 @@ void TestRowSumBody( | |||
| 236 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); | 236 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + name); |
| 237 | npu::tile_fwk::CodeGenCtx ctx; | 237 | npu::tile_fwk::CodeGenCtx ctx; |
| 238 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 238 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 239 | - codeGen.GenCode(*function, {}); | 239 | + codeGen.GenCode(*function); |
| 240 | } | 240 | } |
| 241 | 241 | ||
| 242 | TEST_F(TestCodegenUnary, RowSumDim4Axis2) | 242 | TEST_F(TestCodegenUnary, RowSumDim4Axis2) |
| @@ -261,7 +261,7 @@ TEST_F(TestCodegenUnary, TestVecDup) | |||
| 261 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 261 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 262 | npu::tile_fwk::CodeGenCtx ctx; | 262 | npu::tile_fwk::CodeGenCtx ctx; |
| 263 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 263 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 264 | - codeGen.GenCode(*function, {}); | 264 | + codeGen.GenCode(*function); |
| 265 | } | 265 | } |
| 266 | 266 | ||
| 267 | TEST_F(TestCodegenUnary, TestVecDupUnaligned) | 267 | TEST_F(TestCodegenUnary, TestVecDupUnaligned) |
| @@ -277,7 +277,7 @@ TEST_F(TestCodegenUnary, TestVecDupUnaligned) | |||
| 277 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 277 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 278 | npu::tile_fwk::CodeGenCtx ctx; | 278 | npu::tile_fwk::CodeGenCtx ctx; |
| 279 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 279 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 280 | - codeGen.GenCode(*function, {}); | 280 | + codeGen.GenCode(*function); |
| 281 | } | 281 | } |
| 282 | 282 | ||
| 283 | TEST_F(TestCodegenUnary, TestVecDupInt16) | 283 | TEST_F(TestCodegenUnary, TestVecDupInt16) |
| @@ -293,7 +293,7 @@ TEST_F(TestCodegenUnary, TestVecDupInt16) | |||
| 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 293 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 294 | npu::tile_fwk::CodeGenCtx ctx; | 294 | npu::tile_fwk::CodeGenCtx ctx; |
| 295 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 295 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 296 | - codeGen.GenCode(*function, {}); | 296 | + codeGen.GenCode(*function); |
| 297 | } | 297 | } |
| 298 | 298 | ||
| 299 | TEST_F(TestCodegenUnary, TestVecDupUInt16) | 299 | TEST_F(TestCodegenUnary, TestVecDupUInt16) |
| @@ -309,7 +309,7 @@ TEST_F(TestCodegenUnary, TestVecDupUInt16) | |||
| 309 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 309 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 310 | npu::tile_fwk::CodeGenCtx ctx; | 310 | npu::tile_fwk::CodeGenCtx ctx; |
| 311 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 311 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 312 | - codeGen.GenCode(*function, {}); | 312 | + codeGen.GenCode(*function); |
| 313 | } | 313 | } |
| 314 | 314 | ||
| 315 | TEST_F(TestCodegenUnary, TestVecDupUInt32) | 315 | TEST_F(TestCodegenUnary, TestVecDupUInt32) |
| @@ -325,7 +325,7 @@ TEST_F(TestCodegenUnary, TestVecDupUInt32) | |||
| 325 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); | 325 | auto function = Program::GetInstance().GetFunctionByRawName(FUNCTION_PREFIX + funcName); |
| 326 | npu::tile_fwk::CodeGenCtx ctx; | 326 | npu::tile_fwk::CodeGenCtx ctx; |
| 327 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); | 327 | npu::tile_fwk::CodeGenCloudNPU codeGen(ctx); |
| 328 | - codeGen.GenCode(*function, {}); | 328 | + codeGen.GenCode(*function); |
| 329 | } | 329 | } |
| 330 | 330 | ||
| 331 | TEST_F(TestCodegenUnary, TestRowMaxLine) | 331 | TEST_F(TestCodegenUnary, TestRowMaxLine) |
| @@ -84,7 +84,7 @@ std::string GenCodeByFunction(Function& function) | |||
| 84 | { | 84 | { |
| 85 | CodeGenCtx ctx; | 85 | CodeGenCtx ctx; |
| 86 | CodeGenCloudNPU codeGen(ctx); | 86 | CodeGenCloudNPU codeGen(ctx); |
| 87 | - codeGen.GenCode(function, {}); | 87 | + codeGen.GenCode(function); |
| 88 | return GetResultFromCpp(function); | 88 | return GetResultFromCpp(function); |
| 89 | } | 89 | } |
| 90 | 90 | ||
| @@ -167,8 +167,7 @@ std::string GenOpCodeFromOp(Function& function, const Operation& op, const GenOp | |||
| 167 | CodeGenCtx ctx; | 167 | CodeGenCtx ctx; |
| 168 | CodeGenCloudNPU cga(ctx); | 168 | CodeGenCloudNPU cga(ctx); |
| 169 | cga.GenAllocForLocalBuffer(op, symbolManager); | 169 | cga.GenAllocForLocalBuffer(op, symbolManager); |
| 170 | - CodeGenOpNPUCtx opCtx( | 170 | + CodeGenOpNPUCtx opCtx(symbolManager, function, *function.rootFunc_->programs_[0], op, options.isMainBlk); |
| 171 | - symbolManager, function, *function.rootFunc_->programs_[0], op, options.lto, options.isMainBlk); | ||
| 172 | CodeGenOpCloudNPU cop(opCtx); | 171 | CodeGenOpCloudNPU cop(opCtx); |
| 173 | return cop.GenOpCode(); | 172 | return cop.GenOpCode(); |
| 174 | } | 173 | } |
| @@ -181,8 +180,7 @@ CodeGenOpCloudNPU GenOpCloudNPUFromOp( | |||
| 181 | CodeGenCtx ctx; | 180 | CodeGenCtx ctx; |
| 182 | CodeGenCloudNPU cga(ctx); | 181 | CodeGenCloudNPU cga(ctx); |
| 183 | cga.GenAllocForLocalBuffer(op, outSymbolManager); | 182 | cga.GenAllocForLocalBuffer(op, outSymbolManager); |
| 184 | - CodeGenOpNPUCtx opCtx( | 183 | + CodeGenOpNPUCtx opCtx(outSymbolManager, function, *function.rootFunc_->programs_[0], op, options.isMainBlk); |
| 185 | - outSymbolManager, function, *function.rootFunc_->programs_[0], op, options.lto, options.isMainBlk); | ||
| 186 | return CodeGenOpCloudNPU(opCtx); | 184 | return CodeGenOpCloudNPU(opCtx); |
| 187 | } | 185 | } |
| 188 | 186 | ||