Function tvm::ffi::RecursiveHash

Function tvm::ffi::RecursiveHash#

Function Documentation#

int64_t tvm::ffi::RecursiveHash(const Any &value)#

Compute a deterministic recursive hash of an ffi::Any value.

Recursively hashes the value and all reachable objects using reflection. Consistent with RecursiveEq: RecursiveEq(a, b) => RecursiveHash(a) == RecursiveHash(b). Custom ffi_hash hooks are supported.

Parameters:

value – The value to hash.

Returns:

The hash as int64_t (for FFI compatibility).