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

Method __ffi_hash__

tests/python/test_dataclass_compare.py:1298–1299  ·  view source on GitHub ↗
(self, fn_hash: _Callable_cmp[..., _Any_cmp])

Source from the content-addressed store, hash-verified

1296 label: str
1297
1298 def __ffi_hash__(self, fn_hash: _Callable_cmp[..., _Any_cmp]) -> int:
1299 return fn_hash(self.key)
1300
1301 def __ffi_eq__(self, other: _PyEqHash, fn_eq: _Callable_cmp[..., _Any_cmp]) -> bool:
1302 return fn_eq(self.key, other.key)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected