[moco-tf] Add naming rule as a comment (#8144)
author박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Tue, 15 Oct 2019 00:27:23 +0000 (09:27 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 15 Oct 2019 00:27:23 +0000 (09:27 +0900)
* [moco-tf] Add naming rule as a comment

This will add some comment for naming rule for TF dialect OPCODE and input/output accessor

Signed-off-by: SaeHie Park <saehie.park@samsung.com>
* remove output

compiler/moco-tf/src/Dialect/TFNodes.lst

index f43eff3..c1a1f38 100644 (file)
@@ -5,6 +5,11 @@
 //
 // PLEASE SORT NODE DECLS IN ALPHABETICAL ORDER
 //
+// Naming rule: Follow names in TensorFlow C++ source
+// ex) for AvgPool, tensorflow/core/ops/nn_ops.cc
+//    REGISTER_OP("AvgPool")     <-- OPCODE: AvgPool. Prefix `TF` for CLASS name
+//        .Input("value: T")     <-- Input name is 'value'
+//
 
 // TENSORFLOW_NODE(OPCODE, CLASS)
 TENSORFLOW_NODE(Add, TFAdd)