diff options
Diffstat (limited to 'res/TensorFlowPythonExamples/examples/scatter_nd/__init__.py')
-rw-r--r-- | res/TensorFlowPythonExamples/examples/scatter_nd/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/TensorFlowPythonExamples/examples/scatter_nd/__init__.py b/res/TensorFlowPythonExamples/examples/scatter_nd/__init__.py index e094b5705..0158e3ca6 100644 --- a/res/TensorFlowPythonExamples/examples/scatter_nd/__init__.py +++ b/res/TensorFlowPythonExamples/examples/scatter_nd/__init__.py @@ -2,6 +2,8 @@ import tensorflow as tf +tf.compat.v1.disable_eager_execution() + indices = tf.compat.v1.constant([[0], [2]]) updates = tf.compat.v1.constant([[[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]], [[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, |