Hash¶
Compute a hash of a given piece of data.
The resulting code can be used to index content-addressable data structures such as caches. None inputs can be subjected to special handling, as per the none_handling port. The running time of this operation is proportional to the complexity and size of the object. Note that the hash is not guaranteed to be stable across different versions of NeuroPype. For certain object types, including nodes (particularly those with state), graphs, and general objects, the hash may also be unstable across different runs of the same version of NeuroPype. More Info... Version 1.0.0
Ports/Properties¶
data¶
Data to hash.
hash¶
Hash code of the data.
none_handling¶
What to do when the input is None. If "hash", None will be hashed like any other value. If "passthrough", None will be emitted. If "error", an exception will be raised.
set_breakpoint¶
Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.
metadata¶
User-definable meta-data associated with the node. Usually reserved for technical purposes.