Class StructuralHash

Class StructuralHash#

Class Documentation#

class StructuralHash#

Structural hash.

Public Static Functions

static uint64_t Hash(const Any &value, bool map_free_vars = false, bool skip_tensor_content = false)#

Hash an Any value.

Parameters:
  • value – The Any value to hash.

  • map_free_vars – Whether to map free variables.

  • skip_tensor_content – Whether to skip comparingn darray data content, useful for cases where we don’t care about parameters content.

Returns:

The hash value.