public abstract class AbstractCompressor extends Object implements NDArrayCompressor
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AbstractCompressor() |
| Modifier and Type | Method and Description |
|---|---|
abstract DataBuffer |
compress(DataBuffer buffer) |
INDArray |
compress(double[] data)
This method creates compressed INDArray from Java double array, skipping usual INDArray instantiation routines
Please note: This method compresses input data as vector
|
INDArray |
compress(double[] data,
int[] shape,
char order)
This method creates compressed INDArray from Java double array, skipping usual INDArray instantiation routines
|
INDArray |
compress(float[] data)
This method creates compressed INDArray from Java float array, skipping usual INDArray instantiation routines
Please note: This method compresses input data as vector
|
INDArray |
compress(float[] data,
int[] shape,
char order)
This method creates compressed INDArray from Java float array, skipping usual INDArray instantiation routines
|
INDArray |
compress(INDArray array) |
void |
compressi(INDArray array)
Inplace compression of INDArray
|
protected abstract CompressedDataBuffer |
compressPointer(DataBuffer.TypeEx srcType,
org.bytedeco.javacpp.Pointer srcPointer,
int length,
int elementSize) |
protected DataBuffer.TypeEx |
convertType(DataBuffer.Type type) |
abstract DataBuffer |
decompress(DataBuffer buffer) |
INDArray |
decompress(INDArray array) |
void |
decompressi(INDArray array) |
protected DataBuffer.TypeEx |
getBufferTypeEx(DataBuffer buffer) |
protected DataBuffer.TypeEx |
getGlobalTypeEx() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCompressionType, getDescriptorpublic INDArray compress(INDArray array)
compress in interface NDArrayCompressorpublic void compressi(INDArray array)
compressi in interface NDArrayCompressorarray - public void decompressi(INDArray array)
decompressi in interface NDArrayCompressorpublic INDArray decompress(INDArray array)
decompress in interface NDArrayCompressorpublic abstract DataBuffer decompress(DataBuffer buffer)
decompress in interface NDArrayCompressorpublic abstract DataBuffer compress(DataBuffer buffer)
compress in interface NDArrayCompressorprotected DataBuffer.TypeEx convertType(DataBuffer.Type type)
protected DataBuffer.TypeEx getGlobalTypeEx()
protected DataBuffer.TypeEx getBufferTypeEx(DataBuffer buffer)
public INDArray compress(float[] data)
compress in interface NDArrayCompressordata - public INDArray compress(double[] data)
compress in interface NDArrayCompressordata - public INDArray compress(float[] data, int[] shape, char order)
compress in interface NDArrayCompressordata - shape - order - public INDArray compress(double[] data, int[] shape, char order)
compress in interface NDArrayCompressordata - shape - order - protected abstract CompressedDataBuffer compressPointer(DataBuffer.TypeEx srcType, org.bytedeco.javacpp.Pointer srcPointer, int length, int elementSize)
Copyright © 2017. All Rights Reserved.