feat: quantized tensor support (#1611)

* feat: quantized tensor support

QuantizedTensor inherits from Tensor with supporting part of methods.
The memory is allocated from native code, so it only matains a
pointer `getNativeStorage`.

Note,

We don't support automatically `free` method. Anyone using this method
should think about the memory lacking, especially for memory
optimization.

test: quantized tensor tests

* fix: test case failed on spark 1.6
This commit is contained in:
Yanzhang Wang 2017-10-09 08:20:01 -04:00 committed by GitHub
parent 2a23278691
commit 7a5dfa350b

Diff content is not available