MCPcopy Create free account
hub / github.com/apache/tvm-ffi / run_raise_error

Function run_raise_error

examples/python_packaging/run_example.py:36–42  ·  view source on GitHub ↗

Invoke raise_error from the extension to demonstrate error handling.

()

Source from the content-addressed store, hash-verified

34
35
36def run_raise_error() -> None:
37 """Invoke raise_error from the extension to demonstrate error handling."""
38 print("=========== Example 3: raise_error ===========")
39 try:
40 my_ffi_extension.raise_error("This is an error")
41 except RuntimeError:
42 traceback.print_exc()
43
44
45def run_int_pair() -> None:

Callers 1

run_example.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected