/** * * @param array */ public void autoDecompress(INDArray array) { if (array.isCompressed()) decompressi(array); }
protected void checkForCompression(Op op) { // check for INT datatype arrays interceptIntDataType(op); if (op.x() != null && op.x().isCompressed()) Nd4j.getCompressor().decompressi(op.x()); if (op.y() != null && op.y().isCompressed()) Nd4j.getCompressor().decompressi(op.y()); if (op.z() != null && op.z().isCompressed()) Nd4j.getCompressor().decompressi(op.z()); }
/** * Validate the data types * for the given operation * @param expectedType * @param op */ public static void validateDataType(DataBuffer.Type expectedType, Op op) { if (op.x() != null && op.x().data().dataType() == DataBuffer.Type.COMPRESSED) { Nd4j.getCompressor().decompressi(op.x()); } if (op.y() != null && op.y().data().dataType() == DataBuffer.Type.COMPRESSED) { Nd4j.getCompressor().decompressi(op.y()); } if (op.z() != null && op.z().data().dataType() == DataBuffer.Type.COMPRESSED) { Nd4j.getCompressor().decompressi(op.z()); } if (op.x() != null && op.x().data().dataType() != expectedType && op.x().data().dataType() != DataBuffer.Type.COMPRESSED) throw new ND4JIllegalStateException("op.X dataType is [" + op.x().data().dataType() + "] instead of expected [" + expectedType + "]"); if (op.z() != null && op.z().data().dataType() != expectedType && op.z().data().dataType() != DataBuffer.Type.COMPRESSED) throw new ND4JIllegalStateException("op.Z dataType is [" + op.z().data().dataType() + "] instead of expected [" + expectedType + "]"); if (op.y() != null && op.y().data().dataType() != expectedType) throw new ND4JIllegalStateException("op.Y dataType is [" + op.y().data().dataType() + "] instead of expected [" + expectedType + "]"); }
/** * * @param array */ public void autoDecompress(INDArray array) { if (array.isCompressed()) decompressi(array); }
protected void checkForCompression(Op op) { // check for INT datatype arrays interceptIntDataType(op); if (op.x() != null && op.x().isCompressed()) Nd4j.getCompressor().decompressi(op.x()); if (op.y() != null && op.y().isCompressed()) Nd4j.getCompressor().decompressi(op.y()); if (op.z() != null && op.z().isCompressed()) Nd4j.getCompressor().decompressi(op.z()); }
Nd4j.getCompressor().decompressi(arr);
/** * Validate the data types * for the given operation * @param expectedType * @param op */ public static void validateDataType(DataBuffer.Type expectedType, Op op) { if(op.x() != null && op.x().data().dataType() == DataBuffer.Type.COMPRESSED) { Nd4j.getCompressor().decompressi(op.x()); } if(op.y() != null && op.y().data().dataType() == DataBuffer.Type.COMPRESSED) { Nd4j.getCompressor().decompressi(op.y()); } if(op.z() != null && op.z().data().dataType() == DataBuffer.Type.COMPRESSED) { Nd4j.getCompressor().decompressi(op.z()); } if (op.x() != null && op.x().data().dataType() != expectedType && op.x().data().dataType() != DataBuffer.Type.COMPRESSED) throw new ND4JIllegalStateException("op.X dataType is [" + op.x().data().dataType() + "] instead of expected [" + expectedType + "]"); if (op.z() != null && op.z().data().dataType() != expectedType && op.z().data().dataType() != DataBuffer.Type.COMPRESSED) throw new ND4JIllegalStateException("op.Z dataType is [" + op.z().data().dataType() + "] instead of expected [" + expectedType + "]"); if (op.y() != null && op.y().data().dataType() != expectedType) throw new ND4JIllegalStateException("op.Y dataType is [" + op.y().data().dataType() + "] instead of expected [" + expectedType + "]"); DataBuffer extraz = op.extraArgsDataBuff(); if (extraz != null && extraz.dataType() != expectedType) throw new ND4JIllegalStateException("op.Extras dataType is [" + extraz.dataType() + "] instead of expected [" + expectedType + "]"); }
Nd4j.getCompressor().decompressi(toConcat[i]);
Nd4j.getCompressor().decompressi(toConcat[i]);
@Override public INDArray[] tear(INDArray tensor, int... dimensions) { if (tensor.isCompressed()) Nd4j.getCompressor().decompressi(tensor);
public INDArray[] tear(INDArray tensor, int... dimensions) { if (tensor.isCompressed()) Nd4j.getCompressor().decompressi(tensor);
for (int i = 0; i < toConcat.length; i++) { if (toConcat[i].isCompressed()) Nd4j.getCompressor().decompressi(toConcat[i]);
for (int i = 0; i < toConcat.length; i++) { if (toConcat[i].isCompressed()) Nd4j.getCompressor().decompressi(toConcat[i]);