tf.contrib.framework.assert_scalar(tensor, name=None)

tf.contrib.framework.assert_scalar(tensor, name=None)

See the guide: Framework (contrib)

Defined in tensorflow/contrib/framework/python/framework/tensor_util.py.