MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / fail

Method fail

tensorflow/python/eager/def_function_test.py:401–402  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

399
400 @def_function.function
401 def fail(i):
402 control_flow_ops.Assert(math_ops.equal(i, 0), ['ick'])
403
404 fail(constant_op.constant(0)) # OK
405 with self.assertRaises(errors.InvalidArgumentError):

Callers 15

testTrainingLayerMethod · 0.80
_fnMethod · 0.80
_fn0Method · 0.80
_fn1Method · 0.80
_fn2Method · 0.80
_fn3Method · 0.80
testCapacityMethod · 0.80
testMemoryLimitMethod · 0.80

Calls 1

equalMethod · 0.80

Tested by

no test coverage detected