netket.jax.HashablePartial#

class netket.jax.HashablePartial[source]#

Bases: partial

A class behaving like functools.partial, but that retains it’s hash if it’s created with a lexically equivalent (the same) function and with the same partially applied arguments and keywords.

It also stores the computed hash for faster hashing.

Inheritance
Inheritance diagram of netket.jax.HashablePartial
Attributes
args#

tuple of arguments to future partial calls

func#

function object to use in future partial calls

keywords#

dictionary of keyword arguments to future partial calls