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

Method __ffi_hash__

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

Source from the content-addressed store, hash-verified

1308 label: str
1309
1310 def __ffi_hash__(self, fn_hash: _Callable_cmp[..., _Any_cmp]) -> int:
1311 return fn_hash(self.key)
1312
1313 def __ffi_eq__(self, other: _PyCmp, fn_eq: _Callable_cmp[..., _Any_cmp]) -> bool:
1314 return fn_eq(self.key, other.key)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected