Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
_AssertProtoDictEquals
Method · 0.80
testTrainingLayer
Method · 0.80
testMultiClassWithInvalidNClass
Method · 0.80
_fn
Method · 0.80
_fn0
Method · 0.80
_fn1
Method · 0.80
_fn2
Method · 0.80
_fn3
Method · 0.80
_recursive_assert_equal
Method · 0.80
testCapacity
Method · 0.80
testMemoryLimit
Method · 0.80
testPrintTensorsToFile
Method · 0.80
Calls
1
equal
Method · 0.80
Tested by
no test coverage detected