tf.assert_equal

tf.assert_equal

tf.assert_equal

assert_equal(
    x,
    y,
    data=None,
    summarize=None,
    message=None,
    name=None
)

Defined in tensorflow/python/ops/check_ops.py.

See the guide: Asserts and boolean checks

Assert the condition x == y holds element-wise.

Example of adding a dependency to an operation:

登录查看完整内容