Skip to main content

ClikaRT::ops::hash_64

function

hash_64()

Tensor hash_64(Tensor x, std::uint64_t seed = 0)

64-bit content hash of x's packed bytes (row-major logical order; strided inputs are materialized internally). A frozen function of (seed, bytes): identical on every platform, backend, and ISA tier, so digests are safe to persist and compare across devices. seed perturbs the key; 0 selects the runtime's fixed content-addressing key.

Returns: a 0-D UInt64 digest.

Throws

  • ClikaRT::Error: when the input's dtype is not served for this operation (the machine-readable reason rides code_name()).

Declared in ClikaRT/compute/ops.h, line 4365