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

Function trigger_cpp_side_error

tests/python/test_error.py:134–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132
133 # trigger a C++ side KeyError by accessing a non-existent key
134 def trigger_cpp_side_error() -> None:
135 try:
136 tmp_map: tvm_ffi.Map = tvm_ffi.Map(dict())
137 tmp_map["a"]
138 except KeyError:
139 pass
140
141 def may_create_cyclic_reference() -> weakref.ReferenceType:
142 obj = SampleObject()

Callers 1

Calls 1

MapMethod · 0.45

Tested by

no test coverage detected