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

Method __ffi_hash__

tests/python/test_dataclass_hash.py:995–996  ·  view source on GitHub ↗
(self, fn_hash: _Callable_hash[..., _Any_hash])

Source from the content-addressed store, hash-verified

993 label: str
994
995 def __ffi_hash__(self, fn_hash: _Callable_hash[..., _Any_hash]) -> int:
996 return fn_hash(self.key)
997
998
999def test_py_class_custom_hash_ignores_label() -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected