MCPcopy Create free account
hub / github.com/apache/tvm / check_throws

Function check_throws

tests/python/tirx-base/test_tir_ops.py:24–30  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

22
23
24def check_throws(f):
25 try:
26 f()
27 except RuntimeError:
28 pass
29 else:
30 raise AssertionError("Should have raised an exception but didn't.")
31
32
33def test_const_fold():

Callers 3

test_const_fold3Function · 0.85
verify_callop_float_onlyFunction · 0.85
test_if_then_elseFunction · 0.85

Calls 1

fFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…