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
: iftensor
is not 0-D, of typetf.int32
ortf.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.