tf.contrib.framework.assert_scalar_int()

tf.contrib.framework.assert_scalar_int(tensor)

Assert tensor is 0-D, of type tf.int32 or tf.int64.

Args:
  • tensor: Tensor to test.
Returns:

tensor, for chaining.

Raises:
  • ValueError: if tensor is not 0-D, of type tf.int32 or tf.int64.
doc_TensorFlow
2016-10-14 13:04:44
Comments
Leave a Comment

Please login to continue.