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
/
log_softmax_2
/
__init__.py
diff --git
a/res/TensorFlowPythonExamples/examples/log_softmax_2/__init__.py
b/res/TensorFlowPythonExamples/examples/log_softmax_2/__init__.py
index
c3d4589
..
856ebd9
100644
(file)
--- a/
res/TensorFlowPythonExamples/examples/log_softmax_2/__init__.py
+++ b/
res/TensorFlowPythonExamples/examples/log_softmax_2/__init__.py
@@
-1,4
+1,6
@@
import tensorflow as tf
+tf.compat.v1.disable_eager_execution()
+
in_ = tf.compat.v1.placeholder(dtype=tf.float32, shape=(2, 3, 4, 5), name="Hole")
op_ = tf.compat.v1.nn.log_softmax(in_, axis=1)