class_docstr: weakref.ref which makes tf.Tensor and np.array objects hashable.
  
  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 WeakKeyDefaultDict doesn't
  suffer memory leaks by failing to clean up HashableWeakRef key objects whose
  referrents have gone out of scope and been destroyed (as in
  https://github.com/tensorflow/probability/issues/647).
class_docstr_tok: ["weakref.ref","which","makes","tf.Tensor","and","np.array","objects","hashable",".","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","WeakKeyDefaultDict","doesn't","suffer","memory","leaks","by","failing","to","clean","up","HashableWeakRef","key","objects","whose","referrents","have","gone","out","of","scope","and","been","destroyed","(","as","in","https",":","\/\/github.com\/tensorflow\/probability\/issues\/647",")","."]
code: def __ne__(self, other):
      # weakref.ref overrides `!=` explicitly, so we must as well.
      return not self == other
  
imports: import collections
  import weakref
  import numpy
  import tensorflow.compat.v2
  from tensorflow.python.util import nest
label_desc: Use image node_id 5 for calling the HashableWeakRef obj's underlying member method code with example usage: obj.__ne__(other) and returns: unknown