[res/TF] Circle rule for SquaredDifference (#9195)
author박천교/On-Device Lab(SR)/Engineer/삼성전자 <ch.bahk@samsung.com>
Tue, 26 Nov 2019 03:45:09 +0000 (12:45 +0900)
committer박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com>
Tue, 26 Nov 2019 03:45:09 +0000 (12:45 +0900)
* [res/TF] Circle rule for SquaredDifference

This commit adds rule file to verify SquaredDifference operation is not
divided in circle file.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* 0 > O

res/TensorFlowTests/UNIT_SquaredDifference_000/circle.rule [new file with mode: 0644]

diff --git a/res/TensorFlowTests/UNIT_SquaredDifference_000/circle.rule b/res/TensorFlowTests/UNIT_SquaredDifference_000/circle.rule
new file mode 100644 (file)
index 0000000..bff2459
--- /dev/null
@@ -0,0 +1,7 @@
+# To check tf2circle's result has Squared Difference Op, not divided into Sub and Div.
+
+RULE    "VERIFY_FILE_FORMAT"      $(verify_file_format) '=' 1
+
+RULE    "SQUARED_DIFF_EXIST"      $(op_count SQUARED_DIFFERENCE) '=' 1
+RULE    "NO_SUB_EXIST"            $(op_count SUB) '=' 0
+RULE    "NO_MUL_EXIST"            $(op_count MUL) '=' 0