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: iftensoris not 0-D, of typetf.int32ortf.int64.
tf.contrib.framework.assert_scalar_int(tensor)
Assert tensor is 0-D, of type tf.int32 or tf.int64.
tensor: Tensor to test.tensor, for chaining.
ValueError: if tensor is not 0-D, of type tf.int32 or tf.int64.
Please login to continue.