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

in_ = tf.compat.v1.placeholder(dtype=tf.float32, shape=[4], name="Hole")
op_ = tf.compat.v1.math.top_k(in_, k=1)