Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
24
def
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
33
def
test_const_fold():
Callers
3
test_const_fold3
Function · 0.85
verify_callop_float_only
Function · 0.85
test_if_then_else
Function · 0.85
Calls
1
f
Function · 0.50
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…