Module org.tensorflow.ndarray
Class RawDataBufferFactory
- java.lang.Object
-
- org.tensorflow.ndarray.impl.buffer.raw.RawDataBufferFactory
-
public class RawDataBufferFactory extends Object
Factory of raw data buffers
-
-
Constructor Summary
Constructors Constructor Description RawDataBufferFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanBeUsed()static BooleanDataBuffercreate(boolean[] array, boolean readOnly)static ByteDataBuffercreate(byte[] array, boolean readOnly)static DoubleDataBuffercreate(double[] array, boolean readOnly)static FloatDataBuffercreate(float[] array, boolean readOnly)static IntDataBuffercreate(int[] array, boolean readOnly)static LongDataBuffercreate(long[] array, boolean readOnly)static ShortDataBuffercreate(short[] array, boolean readOnly)protected static BooleanDataBuffermapNativeBooleans(long address, long size, boolean readOnly)protected static ByteDataBuffermapNativeBytes(long address, long size, boolean readOnly)protected static DoubleDataBuffermapNativeDoubles(long address, long size, boolean readOnly)protected static FloatDataBuffermapNativeFloats(long address, long size, boolean readOnly)protected static IntDataBuffermapNativeInts(long address, long size, boolean readOnly)protected static LongDataBuffermapNativeLongs(long address, long size, boolean readOnly)protected static ShortDataBuffermapNativeShorts(long address, long size, boolean readOnly)
-
-
-
Method Detail
-
canBeUsed
public static boolean canBeUsed()
-
create
public static BooleanDataBuffer create(boolean[] array, boolean readOnly)
-
create
public static ByteDataBuffer create(byte[] array, boolean readOnly)
-
create
public static DoubleDataBuffer create(double[] array, boolean readOnly)
-
create
public static FloatDataBuffer create(float[] array, boolean readOnly)
-
create
public static IntDataBuffer create(int[] array, boolean readOnly)
-
create
public static LongDataBuffer create(long[] array, boolean readOnly)
-
create
public static ShortDataBuffer create(short[] array, boolean readOnly)
-
mapNativeBooleans
protected static BooleanDataBuffer mapNativeBooleans(long address, long size, boolean readOnly)
-
mapNativeBytes
protected static ByteDataBuffer mapNativeBytes(long address, long size, boolean readOnly)
-
mapNativeDoubles
protected static DoubleDataBuffer mapNativeDoubles(long address, long size, boolean readOnly)
-
mapNativeFloats
protected static FloatDataBuffer mapNativeFloats(long address, long size, boolean readOnly)
-
mapNativeInts
protected static IntDataBuffer mapNativeInts(long address, long size, boolean readOnly)
-
mapNativeLongs
protected static LongDataBuffer mapNativeLongs(long address, long size, boolean readOnly)
-
mapNativeShorts
protected static ShortDataBuffer mapNativeShorts(long address, long size, boolean readOnly)
-
-