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