summaryrefslogtreecommitdiff
path: root/res/TensorFlowPythonExamples/examples/negative/__init__.py
blob: 473dc9b970a331bf7bcd181aeddf8bfb3630fcf6 (plain)
1
2
3
4
5
6
import tensorflow as tf

tf.compat.v1.disable_eager_execution()

in_ = tf.compat.v1.placeholder(dtype=tf.float32, shape=(4, 4), name="Hole")
neg_ = tf.math.negative(in_)