|View source on GitHub|
weakref.ref which makes wrapped object hashable.
tfp.experimental.lazybones.utils.HashableWeakRef( referrent, callback=None )
We take care to ensure that a hash can still be provided in the case that the ref has been cleaned up. This ensures that the WeakKeyDictionary doesn't suffer memory leaks by failing to clean up HashableWeakRef key objects whose referrents have gone out of scope and been destroyed.
||Object that is being referred to.|
||Optional callback to invoke when object is GCed.|
__call__( *args, **kwargs )
Call self as a function.
__eq__( other, maybe_negate=(lambda x: x) )
__ge__( value, / )
__gt__( value, / )
__le__( value, / )
__lt__( value, / )
__ne__( other )