projects
/
platform
/
core
/
ml
/
nnfw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Imported Upstream version 1.21.0
[platform/core/ml/nnfw.git]
/
res
/
TensorFlowPythonExamples
/
examples
/
conv2d_1
/
__init__.py
diff --git
a/res/TensorFlowPythonExamples/examples/conv2d_1/__init__.py
b/res/TensorFlowPythonExamples/examples/conv2d_1/__init__.py
index
fa4f72f
..
7cf8dee
100644
(file)
--- a/
res/TensorFlowPythonExamples/examples/conv2d_1/__init__.py
+++ b/
res/TensorFlowPythonExamples/examples/conv2d_1/__init__.py
@@
-1,6
+1,8
@@
import tensorflow as tf
import numpy as np
+tf.compat.v1.disable_eager_execution()
+
in_ = tf.compat.v1.placeholder(tf.float32, shape=(1, 32, 32, 3), name="Hole")
filters = np.random.uniform(low=-1., high=1, size=[5, 5, 3, 32]).astype(np.float32)