Uses of Interface
org.tensorflow.ndarray.buffer.ByteDataBuffer
-
-
Uses of ByteDataBuffer in org.tensorflow.ndarray
Methods in org.tensorflow.ndarray with parameters of type ByteDataBuffer Modifier and Type Method Description ByteNdArrayByteNdArray. read(ByteDataBuffer dst)static ByteNdArrayNdArrays. wrap(Shape shape, ByteDataBuffer buffer)Wraps a buffer in a byte N-dimensional array of a given shape.ByteNdArrayByteNdArray. write(ByteDataBuffer src) -
Uses of ByteDataBuffer in org.tensorflow.ndarray.buffer
Methods in org.tensorflow.ndarray.buffer that return ByteDataBuffer Modifier and Type Method Description ByteDataBufferByteDataBuffer. copyTo(DataBuffer<Byte> dst, long size)default ByteDataBufferByteDataBuffer. narrow(long size)static ByteDataBufferDataBuffers. of(byte... values)Create a buffer from an array of bytes into a data buffer.static ByteDataBufferDataBuffers. of(byte[] array, boolean readOnly, boolean makeCopy)Create a buffer from an array of bytes into a data buffer.static ByteDataBufferDataBuffers. of(ByteBuffer buf)Wraps a JDK NIOByteBufferinto a data buffer.static ByteDataBufferDataBuffers. ofBytes(long size)Creates a buffer of bytes that can store up tosizevaluesdefault ByteDataBufferByteDataBuffer. offset(long index)default ByteDataBufferByteDataBuffer. read(byte[] dst)Bulk get method, using byte arrays.ByteDataBufferByteDataBuffer. read(byte[] dst, int offset, int length)Bulk get method, using byte arrays.ByteDataBufferByteDataBuffer. setByte(byte value, long index)Writes the given byte into this buffer at the given index.default ByteDataBufferByteDataBuffer. setObject(Byte value, long index)ByteDataBufferByteDataBuffer. slice(long index, long size)default ByteDataBufferByteDataBuffer. write(byte[] src)Bulk put method, using byte arrays.ByteDataBufferByteDataBuffer. write(byte[] src, int offset, int length)Bulk put method, using byte arrays.Methods in org.tensorflow.ndarray.buffer that return types with arguments of type ByteDataBuffer Modifier and Type Method Description default DataBufferWindow<ByteDataBuffer>ByteDataBuffer. window(long size) -
Uses of ByteDataBuffer in org.tensorflow.ndarray.buffer.layout
Fields in org.tensorflow.ndarray.buffer.layout with type parameters of type ByteDataBuffer Modifier and Type Field Description static BooleanDataLayout<ByteDataBuffer>DataLayouts. BOOLData layout for converting booleans to/from byte values.Methods in org.tensorflow.ndarray.buffer.layout that return ByteDataBuffer Modifier and Type Method Description default ByteDataBufferByteDataLayout. applyTo(S buffer) -
Uses of ByteDataBuffer in org.tensorflow.ndarray.impl.buffer.adapter
Methods in org.tensorflow.ndarray.impl.buffer.adapter that return ByteDataBuffer Modifier and Type Method Description static <S extends DataBuffer<?>>
ByteDataBufferDataBufferAdapterFactory. create(S buffer, ByteDataLayout<S> layout)Creates an adapter that applies a byte data layout to the given buffer. -
Uses of ByteDataBuffer in org.tensorflow.ndarray.impl.buffer.layout
Methods in org.tensorflow.ndarray.impl.buffer.layout with parameters of type ByteDataBuffer Modifier and Type Method Description booleanBoolLayout. readBoolean(ByteDataBuffer buffer, long index)voidBoolLayout. writeBoolean(ByteDataBuffer buffer, boolean value, long index) -
Uses of ByteDataBuffer in org.tensorflow.ndarray.impl.buffer.nio
Methods in org.tensorflow.ndarray.impl.buffer.nio that return ByteDataBuffer Modifier and Type Method Description static ByteDataBufferNioDataBufferFactory. create(ByteBuffer buffer) -
Uses of ByteDataBuffer in org.tensorflow.ndarray.impl.buffer.raw
Methods in org.tensorflow.ndarray.impl.buffer.raw that return ByteDataBuffer Modifier and Type Method Description static ByteDataBufferRawDataBufferFactory. create(byte[] array, boolean readOnly)protected static ByteDataBufferRawDataBufferFactory. mapNativeBytes(long address, long size, boolean readOnly) -
Uses of ByteDataBuffer in org.tensorflow.ndarray.impl.dense
Methods in org.tensorflow.ndarray.impl.dense that return ByteDataBuffer Modifier and Type Method Description protected ByteDataBufferByteDenseNdArray. buffer()Methods in org.tensorflow.ndarray.impl.dense with parameters of type ByteDataBuffer Modifier and Type Method Description static ByteNdArrayByteDenseNdArray. create(ByteDataBuffer buffer, Shape shape)ByteNdArrayByteDenseNdArray. read(ByteDataBuffer dst)ByteNdArrayByteDenseNdArray. write(ByteDataBuffer src)Constructors in org.tensorflow.ndarray.impl.dense with parameters of type ByteDataBuffer Constructor Description ByteDenseNdArray(ByteDataBuffer buffer, Shape shape) -
Uses of ByteDataBuffer in org.tensorflow.ndarray.impl.sparse
Methods in org.tensorflow.ndarray.impl.sparse with parameters of type ByteDataBuffer Modifier and Type Method Description static ByteSparseNdArrayByteSparseNdArray. create(ByteDataBuffer dataBuffer, byte defaultValue, DimensionalSpace dimensions)Creates a new ByteSparseNdArray from a data bufferstatic ByteSparseNdArrayByteSparseNdArray. create(ByteDataBuffer buffer, byte defaultValue, Shape shape)Creates a new empty ByteSparseNdArray from a float data bufferstatic ByteSparseNdArrayByteSparseNdArray. create(ByteDataBuffer dataBuffer, DimensionalSpace dimensions)Creates a new ByteSparseNdArray from a data bufferstatic ByteSparseNdArrayByteSparseNdArray. create(ByteDataBuffer buffer, Shape shape)Creates a new empty ByteSparseNdArray from a float data bufferByteNdArrayByteSparseNdArray. read(ByteDataBuffer dst)ByteNdArrayByteSparseNdArray. write(ByteDataBuffer src) -
Uses of ByteDataBuffer in org.tensorflow.ndarray.impl.sparse.slice
Methods in org.tensorflow.ndarray.impl.sparse.slice with parameters of type ByteDataBuffer Modifier and Type Method Description ByteNdArrayByteSparseSlice. read(ByteDataBuffer dst)ByteNdArrayByteSparseSlice. write(ByteDataBuffer src)
-