[exo-tflite] change TFL node opcode (NOP_CONSTGEN -> CONST) (#7621)
author윤현식/On-Device Lab(SR)/Principal Engineer/삼성전자 <hyunsik.yoon@samsung.com>
Fri, 20 Sep 2019 07:09:17 +0000 (16:09 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Fri, 20 Sep 2019 07:09:17 +0000 (16:09 +0900)
Since use TFLConst (not anything like Nop), I changed the opcode also.

Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
compiler/exo-tflite/src/Dialect/IR/TFLNodes.h
compiler/exo-tflite/src/Dialect/IR/TFLNodes.lst

index f12b62d..b47d427 100644 (file)
@@ -167,7 +167,7 @@ private:
  * @brief Class to build tensor data
  * @note  This will not be exported as a specific op
  */
-class TFLConst final : public FixedArityNode<0, TFLNodeImpl<TFLOpcode::NOP_CONSTGEN>>,
+class TFLConst final : public FixedArityNode<0, TFLNodeImpl<TFLOpcode::CONST>>,
                        public loco::NodeMixin<loco::NodeTrait::DataType>,
                        public loco::NodeMixin<loco::NodeTrait::TensorShape>
 {
index 9e9c410..98f776b 100644 (file)
@@ -8,7 +8,7 @@
 TFL_NODE(ADD, locoex::TFLAdd)
 TFL_NODE(AVERAGE_POOL_2D, locoex::TFLAveragePool2D)
 // TODO TFLConcatenation
-TFL_NODE(NOP_CONSTGEN, locoex::TFLConst)
+TFL_NODE(CONST, locoex::TFLConst)
 // TODO TFLConv2D
 // TODO TFLDepthwiseConv2D
 TFL_NODE(DIV, locoex::TFLDiv)