summaryrefslogtreecommitdiff
path: root/res/TensorFlowPythonExamples/examples/matrix_band_part/__init__.py
blob: 43d4d875470eb81ace23d33ca8c6cbb477a2ecfc (plain)
1
2
3
4
import tensorflow as tf

in_ = tf.compat.v1.placeholder(dtype=tf.float32, shape=(4, 4), name="Hole")
op_ = tf.compat.v1.matrix_band_part(in_, 1, -1)