From: 박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 Date: Mon, 5 Aug 2019 07:12:01 +0000 (+0900) Subject: [moco-tf] Fix comments for Relu, Relu6 (#6202) X-Git-Tag: submit/tizen/20190809.050447~179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2b7cc1e14aafe6985fb25fd6c1a7f823999c71ef;p=platform%2Fcore%2Fml%2Fnnfw.git [moco-tf] Fix comments for Relu, Relu6 (#6202) This will fix comments for Relu and Relu6 nodes Signed-off-by: SaeHie Park --- diff --git a/compiler/moco-tf/src/Op/Relu6.test.cpp b/compiler/moco-tf/src/Op/Relu6.test.cpp index d0a4969..4d68323 100644 --- a/compiler/moco-tf/src/Op/Relu6.test.cpp +++ b/compiler/moco-tf/src/Op/Relu6.test.cpp @@ -101,7 +101,7 @@ TEST(TensorFlowImport, relu6_01) std::unique_ptr graph = importer.import(signature, graph_def); // what to test: - // - there should exist ReLU + // - there should exist ReLU6 // - input node should not be nullptr loco::ReLU6 *relu6_node = moco::tf::test::find_first_node_bytype(graph.get()); diff --git a/compiler/moco-tf/src/Transforms/FixShapeTransform.cpp b/compiler/moco-tf/src/Transforms/FixShapeTransform.cpp index 8649981..491fd25 100644 --- a/compiler/moco-tf/src/Transforms/FixShapeTransform.cpp +++ b/compiler/moco-tf/src/Transforms/FixShapeTransform.cpp @@ -1067,14 +1067,14 @@ bool fix_shape(moco::tf::TFMul *node) bool fix_shape(moco::tf::TFRelu *node) { - // Output shape is same as the input + // Output shape is same as the features auto features = node->features(); return copy_shapedata(features, node); } bool fix_shape(moco::tf::TFRelu6 *node) { - // Output shape is same as the input + // Output shape is same as the features auto features = node->features(); return copy_shapedata(features, node); }