assert_scalar_equal

tfsnippet.ops.assert_scalar_equal(a, b, message=None, name=None)

Assert 0-d scalar a == b.

Parameters:
  • a – A 0-d tensor.
  • b – A 0-d tensor.
  • message – Message to display when assertion failed.
  • name (str) – Default name of the name scope. If not specified, generate one according to the method name.
Returns:

The TensorFlow assertion operation,

or None if can be statically asserted.

Return type:

tf.Operation or None