def quantize(ary, bits, sign=1):
    maxval = float(np.max(np.absolute(ary)))
    scale  = strip_mantissa(maxval) / float(1 << (bits-1-sign))
    ary    = np.around(ary * (1.0 / scale)).astype(np.int64)
    return ary, np.float64(scale)

######### Direct Convolution #########
dataset/ETHPy150Open NervanaSystems/neon/neon/backends/winograd4.py/quantize/swapped operands of `-`