code: def quantize(ary, bits, sign=1):
      maxval = float(np.max(np.absolute(ary)))
      scale = strip_mantissa(maxval) / float(1 << (bits - sign - 1))
      ary = np.around(ary * (1.0 / scale)).astype(np.int64)
      return ary, np.float64(scale)
  
file_path: neon/neon/backends/winograd5.py
imports: from __future__ import division
  import numpy
  from struct import pack, unpack
  from neon import logger
label_desc: Use image node_id 5 for calling a global function with example usage: quantize(ary, bits, sign) and returns: ary,  np