summaryrefslogtreecommitdiff
path: root/res/TensorFlowPythonExamples/examples/top_k/__init__.py
blob: 05c330630f56c7bdfab6db67c369977e4db6faf0 (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], name="Hole")
op_ = tf.compat.v1.math.top_k(in_, k=1)