diff options
Diffstat (limited to 'res/TensorFlowPythonExamples/examples/concat/__init__.py')
-rw-r--r-- | res/TensorFlowPythonExamples/examples/concat/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/TensorFlowPythonExamples/examples/concat/__init__.py b/res/TensorFlowPythonExamples/examples/concat/__init__.py index ec59b242f..c1c7b1aeb 100644 --- a/res/TensorFlowPythonExamples/examples/concat/__init__.py +++ b/res/TensorFlowPythonExamples/examples/concat/__init__.py @@ -1,5 +1,7 @@ import tensorflow as tf +tf.compat.v1.disable_eager_execution() + in1_ = tf.compat.v1.placeholder(dtype=tf.float32, shape=(2, 3, 4), name="Hole1") in2_ = tf.compat.v1.placeholder(dtype=tf.float32, shape=(2, 2, 4), name="Hole2") concat_ = tf.compat.v1.concat([in1_, in2_], axis=-2) |