class_docstr: Special case the hasher for when numpy is loaded.
      
class_docstr_tok: ["Special","case","the","hasher","for","when","numpy","is","loaded","."]
docstr: Parameters
  ----------
  hash_name: string
      The hash algorithm to be used
  coerce_mmap: boolean
      Make no difference between np.memmap and np.ndarray
      objects.
docstr_tok: ["Parameters","--","--","--","--","--","hash_name",":","string","The","hash","algorithm","to","be","used","coerce_mmap",":","boolean","Make","no","difference","between","np.memmap","and","np.ndarray","objects","."]
code: def __init__(self, hash_name="md5", coerce_mmap=False):
      """
      Parameters
      ----------
      hash_name: string
          The hash algorithm to be used
      coerce_mmap: boolean
          Make no difference between np.memmap and np.ndarray
          objects.
      """
      self.coerce_mmap = coerce_mmap
      Hasher.__init__(self, hash_name=hash_name)
      # delayed import of numpy, to avoid tight coupling
      import numpy as np
  
      self.np = np
      if hasattr(np, "getbuffer"):
          self._getbuffer = np.getbuffer
      else:
          self._getbuffer = memoryview
  
imports: import pickle
  import hashlib
  import sys
  import types
  import struct
  import io
  from ._compat import _bytes_or_unicode, PY3_OR_LATER
label_desc: Use image node_id 1 to create a new NumpyHasher object from inherited base classes: Hasher with example: obj = NumpyHasher(hash_name, coerce_mmap)