diff options
author | 오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com> | 2019-07-24 13:48:06 +0900 |
---|---|---|
committer | 이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com> | 2019-07-24 13:48:06 +0900 |
commit | 1ae523f92fd51bb48be774d22a5141202a6c40f6 (patch) | |
tree | 80dca6f09c3af0c4b5cfb01f4984508cc8e20fa6 /res | |
parent | c7106322d6ac4791260594e14e49e9ffe2e4d8f3 (diff) | |
download | nnfw-1ae523f92fd51bb48be774d22a5141202a6c40f6.tar.gz nnfw-1ae523f92fd51bb48be774d22a5141202a6c40f6.tar.bz2 nnfw-1ae523f92fd51bb48be774d22a5141202a6c40f6.zip |
Apply python coding style to res (#5816)
Apply python coding style to python scripts in res/
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Diffstat (limited to 'res')
-rw-r--r-- | res/TensorFlowTests/TF_SMALL_NET_0003/test.py | 5 | ||||
-rw-r--r-- | res/TensorFlowTests/TF_SMALL_NET_0004/test.py | 9 |
2 files changed, 8 insertions, 6 deletions
diff --git a/res/TensorFlowTests/TF_SMALL_NET_0003/test.py b/res/TensorFlowTests/TF_SMALL_NET_0003/test.py index 8a8e9c8c3..4a194fb61 100644 --- a/res/TensorFlowTests/TF_SMALL_NET_0003/test.py +++ b/res/TensorFlowTests/TF_SMALL_NET_0003/test.py @@ -1,7 +1,7 @@ # TF_SMALL_NET_0003/test.pbtxt is create with below script # Version info -# - Tensorflow : 1.13.1 +# - Tensorflow : 1.13.1 # - Python : 3.5.2 import tensorflow as tf @@ -9,6 +9,7 @@ import tensorflow as tf input = tf.placeholder(tf.float32, [1, 3, 3, 5]) filter = tf.constant(1.0, shape=[2, 2, 5, 1]) conv = tf.nn.conv2d(input, filter=filter, strides=[1, 1, 1, 1], padding='SAME') -fbn = tf.nn.fused_batch_norm(conv, scale=[1.0], offset=[0.0], mean=[0.0], variance=[1.0], is_training=False) +fbn = tf.nn.fused_batch_norm( + conv, scale=[1.0], offset=[0.0], mean=[0.0], variance=[1.0], is_training=False) print(tf.get_default_graph().as_graph_def()) diff --git a/res/TensorFlowTests/TF_SMALL_NET_0004/test.py b/res/TensorFlowTests/TF_SMALL_NET_0004/test.py index 00ffb2bc7..4fa924a1f 100644 --- a/res/TensorFlowTests/TF_SMALL_NET_0004/test.py +++ b/res/TensorFlowTests/TF_SMALL_NET_0004/test.py @@ -1,15 +1,16 @@ # TF_SMALL_NET_0004/test.pbtxt is create with below script # Version info -# - Tensorflow : 1.13.1 +# - Tensorflow : 1.13.1 # - Python : 3.5.2 import tensorflow as tf input = tf.placeholder(tf.float32, [1, 3, 3, 5]) filter = tf.constant(1.0, shape=[2, 2, 5, 2]) -dconv = tf.nn.depthwise_conv2d(input, filter, [1,1,1,1], 'SAME') -const = tf.constant(2.0,shape=[10]) -fbn = tf.nn.fused_batch_norm(x=dconv,scale=const,offset=const,mean=const,variance=const,is_training=False) +dconv = tf.nn.depthwise_conv2d(input, filter, [1, 1, 1, 1], 'SAME') +const = tf.constant(2.0, shape=[10]) +fbn = tf.nn.fused_batch_norm( + x=dconv, scale=const, offset=const, mean=const, variance=const, is_training=False) print(tf.get_default_graph().as_graph_def()) |