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

Method __tvm_ffi_value__

tests/python/test_tensor.py:177–179  ·  view source on GitHub ↗

Implement __tvm_ffi_value__ protocol.

(self)

Source from the content-addressed store, hash-verified

175 self.b = b
176
177 def __tvm_ffi_value__(self) -> Any:
178 """Implement __tvm_ffi_value__ protocol."""
179 return (self.a, self.b)
180
181 z = fecho(MyCustom(a=y, b=2))
182 assert z[0].__chandle__() == x.__chandle__()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected