Move how to run guideline into readme file (#3987)
author윤지영/동작제어Lab(SR)/Engineer/삼성전자 <jy910.yun@samsung.com>
Thu, 13 Dec 2018 02:14:31 +0000 (11:14 +0900)
committer오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Thu, 13 Dec 2018 02:14:31 +0000 (11:14 +0900)
This patch moves the how to run guideline into readme file

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
12 files changed:
tools/tensorflow_model_freezer/readme.md
tools/tensorflow_model_freezer/sample/ARGMAX_gen.py
tools/tensorflow_model_freezer/sample/ARGMIN_gen.py
tools/tensorflow_model_freezer/sample/DIV_gen.py
tools/tensorflow_model_freezer/sample/LOGICAL_AND_gen.py
tools/tensorflow_model_freezer/sample/LOGICAL_NOT_gen.py
tools/tensorflow_model_freezer/sample/LOGICAL_OR_gen.py
tools/tensorflow_model_freezer/sample/MUL_gen.py
tools/tensorflow_model_freezer/sample/SQUEEZE_gen.py
tools/tensorflow_model_freezer/sample/STACK_gen.py
tools/tensorflow_model_freezer/sample/TOPK_gen.py
tools/tensorflow_model_freezer/sample/UNSTACK_gen.py

index 348e756..0aabf10 100644 (file)
@@ -26,5 +26,13 @@ By define `Test Cases`, you can easily and quickly generate files for various ra
 - Run `~/nnfw$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ python tools/tensorflow_model_freezer/sample/MUL_gen.py  ~/temp`
   - Files will be generated under `~/temp`
 
+## How to run
+```
+$ chmod +x tools/tensorflow_model_freezer/sample/name_of_this_file.py
+$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ \
+      tools/tensorflow_model_freezer/sample/name_of_this_file.py \
+      ~/temp  # directory where model files are saved
+```
+
 ## Note
 - This tool is tested with Python 2.7 and 3
index 0c5209e..68e2262 100755 (executable)
@@ -83,13 +83,6 @@ class Gen(base.BaseFreezer):
         return (input_list, [output_node])
 
 
-'''
-How to run
-$ chmod +x tools/tensorflow_model_freezer/sample/name_of_this_file.py
-$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ \
-      tools/tensorflow_model_freezer/sample/name_of_this_file.py \
-      ~/temp  # directory where model files are saved
-'''
 # --------
 if __name__ == "__main__":
 
index da4f809..68b3992 100755 (executable)
@@ -83,13 +83,6 @@ class Gen(base.BaseFreezer):
         return (input_list, [output_node])
 
 
-'''
-How to run
-$ chmod +x tools/tensorflow_model_freezer/sample/name_of_this_file.py
-$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ \
-      tools/tensorflow_model_freezer/sample/name_of_this_file.py \
-      ~/temp  # directory where model files are saved
-'''
 # --------
 if __name__ == "__main__":
 
index c4e9cde..d1b794c 100755 (executable)
@@ -124,13 +124,6 @@ class Gen(base.BaseFreezer):
         return (input_list, [output_node])
 
 
-'''
-How to run
-$ chmod +x tools/tensorflow_model_freezer/sample/name_of_this_file.py
-$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ \
-      tools/tensorflow_model_freezer/sample/name_of_this_file.py \
-      ~/temp  # directory where model files are saved
-'''
 # --------
 if __name__ == "__main__":
 
index a8c4f4c..912af65 100755 (executable)
@@ -88,13 +88,6 @@ class Gen(base.BaseFreezer):
         return (input_list, [output_node])
 
 
-'''
-How to run
-$ chmod +x tools/tensorflow_model_freezer/sample/name_of_this_file.py
-$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ \
-      tools/tensorflow_model_freezer/sample/name_of_this_file.py \
-      ~/temp  # directory where model files are saved
-'''
 # --------
 if __name__ == "__main__":
 
index d5a9c0d..34c0994 100755 (executable)
@@ -83,13 +83,6 @@ class Gen(base.BaseFreezer):
         return (input_list, [output_node])
 
 
-'''
-How to run
-$ chmod +x tools/tensorflow_model_freezer/sample/name_of_this_file.py
-$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ \
-      tools/tensorflow_model_freezer/sample/name_of_this_file.py \
-      ~/temp  # directory where model files are saved
-'''
 # --------
 if __name__ == "__main__":
 
index 54938b1..714a52e 100755 (executable)
@@ -87,13 +87,6 @@ class Gen(base.BaseFreezer):
         return (input_list, [output_node])
 
 
-'''
-How to run
-$ chmod +x tools/tensorflow_model_freezer/sample/name_of_this_file.py
-$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ \
-      tools/tensorflow_model_freezer/sample/name_of_this_file.py \
-      ~/temp  # directory where model files are saved
-'''
 # --------
 if __name__ == "__main__":
 
index b85f72e..596898d 100755 (executable)
@@ -104,13 +104,6 @@ class Gen(base.BaseFreezer):
         return (input_list, [output_node])
 
 
-'''
-How to run
-$ chmod +x tools/tensorflow_model_freezer/sample/name_of_this_file.py
-$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ \
-      tools/tensorflow_model_freezer/sample/name_of_this_file.py \
-      ~/temp  # directory where model files are saved
-'''
 # --------
 if __name__ == "__main__":
 
index 88b3dfc..12fb512 100755 (executable)
@@ -103,13 +103,6 @@ class Gen(base.BaseFreezer):
         return (input_list, [output_node])
 
 
-'''
-How to run
-$ chmod +x tools/tensorflow_model_freezer/sample/name_of_this_file.py
-$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ \
-      tools/tensorflow_model_freezer/sample/name_of_this_file.py \
-      ~/temp  # directory where model files are saved
-'''
 # --------
 if __name__ == "__main__":
 
index 6f5b792..2bea406 100755 (executable)
@@ -84,13 +84,6 @@ class Gen(base.BaseFreezer):
         return (input_list, [output_node])
 
 
-'''
-How to run
-$ chmod +x tools/tensorflow_model_freezer/sample/name_of_this_file.py
-$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ \
-      tools/tensorflow_model_freezer/sample/name_of_this_file.py \
-      ~/temp  # directory where model files are saved
-'''
 # --------
 if __name__ == "__main__":
 
index 170472f..8f1882b 100755 (executable)
@@ -98,13 +98,6 @@ class Gen(base.BaseFreezer):
         return (input_list, output_list)
 
 
-'''
-How to run
-$ chmod +x tools/tensorflow_model_freezer/sample/name_of_this_file.py
-$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ \
-      tools/tensorflow_model_freezer/sample/name_of_this_file.py \
-      ~/temp  # directory where model files are saved
-'''
 # --------
 if __name__ == "__main__":
 
index 2ce3297..c5bce0d 100644 (file)
@@ -83,13 +83,6 @@ class Gen(base.BaseFreezer):
         return (input_list, [output_node])
 
 
-'''
-How to run
-$ chmod +x tools/tensorflow_model_freezer/sample/name_of_this_file.py
-$ PYTHONPATH=$PYTHONPATH:./tools/tensorflow_model_freezer/ \
-      tools/tensorflow_model_freezer/sample/name_of_this_file.py \
-      ~/temp  # directory where model files are saved
-'''
 # --------
 if __name__ == "__main__":