Uses of Interface
org.tensorflow.ndarray.buffer.ShortDataBuffer
-
-
Uses of ShortDataBuffer in org.tensorflow.ndarray
Methods in org.tensorflow.ndarray with parameters of type ShortDataBuffer Modifier and Type Method Description ShortNdArrayShortNdArray. read(ShortDataBuffer dst)static ShortNdArrayNdArrays. wrap(Shape shape, ShortDataBuffer buffer)Wraps a buffer in a short N-dimensional array of a given shape.ShortNdArrayShortNdArray. write(ShortDataBuffer src) -
Uses of ShortDataBuffer in org.tensorflow.ndarray.buffer
Methods in org.tensorflow.ndarray.buffer that return ShortDataBuffer Modifier and Type Method Description ShortDataBufferByteDataBuffer. asShorts()Return this byte buffer as a buffer of shorts.ShortDataBufferShortDataBuffer. copyTo(DataBuffer<Short> dst, long size)default ShortDataBufferShortDataBuffer. narrow(long size)static ShortDataBufferDataBuffers. of(short... values)Create a buffer from an array of shorts into a data buffer.static ShortDataBufferDataBuffers. of(short[] array, boolean readOnly, boolean makeCopy)Create a buffer from an array of shorts into a data buffer.static ShortDataBufferDataBuffers. of(ShortBuffer buf)Wraps a JDK NIOShortBufferinto a data buffer.default ShortDataBufferShortDataBuffer. offset(long index)static ShortDataBufferDataBuffers. ofShorts(long size)Creates a buffer of shorts that can store up tosizevaluesdefault ShortDataBufferShortDataBuffer. read(short[] dst)Bulk get method, using short arrays.ShortDataBufferShortDataBuffer. read(short[] dst, int offset, int length)Bulk get method, using short arrays.default ShortDataBufferShortDataBuffer. setObject(Short value, long index)ShortDataBufferShortDataBuffer. setShort(short value, long index)Writes the given short into this buffer at the given index.ShortDataBufferShortDataBuffer. slice(long index, long size)default ShortDataBufferShortDataBuffer. write(short[] src)Bulk put method, using short arrays.ShortDataBufferShortDataBuffer. write(short[] src, int offset, int length)Bulk put method, using short arrays.Methods in org.tensorflow.ndarray.buffer that return types with arguments of type ShortDataBuffer Modifier and Type Method Description default DataBufferWindow<ShortDataBuffer>ShortDataBuffer. window(long size) -
Uses of ShortDataBuffer in org.tensorflow.ndarray.buffer.layout
Fields in org.tensorflow.ndarray.buffer.layout with type parameters of type ShortDataBuffer Modifier and Type Field Description static FloatDataLayout<ShortDataBuffer>DataLayouts. BFLOAT16Data layout for converting 16-bit bfloats to/from short values.static FloatDataLayout<ShortDataBuffer>DataLayouts. FLOAT16Data layout for converting 16-bit half floats to/from short values.Methods in org.tensorflow.ndarray.buffer.layout that return ShortDataBuffer Modifier and Type Method Description default ShortDataBufferShortDataLayout. applyTo(S buffer) -
Uses of ShortDataBuffer in org.tensorflow.ndarray.impl.buffer.adapter
Methods in org.tensorflow.ndarray.impl.buffer.adapter that return ShortDataBuffer Modifier and Type Method Description static <S extends DataBuffer<?>>
ShortDataBufferDataBufferAdapterFactory. create(S buffer, ShortDataLayout<S> layout)Creates an adapter that applies a short data layout to the given buffer. -
Uses of ShortDataBuffer in org.tensorflow.ndarray.impl.buffer.layout
Methods in org.tensorflow.ndarray.impl.buffer.layout with parameters of type ShortDataBuffer Modifier and Type Method Description floatBfloat16Layout. readFloat(ShortDataBuffer buffer, long index)floatFloat16Layout. readFloat(ShortDataBuffer buffer, long index)voidBfloat16Layout. writeFloat(ShortDataBuffer buffer, float value, long index)voidFloat16Layout. writeFloat(ShortDataBuffer buffer, float value, long index) -
Uses of ShortDataBuffer in org.tensorflow.ndarray.impl.buffer.nio
Methods in org.tensorflow.ndarray.impl.buffer.nio that return ShortDataBuffer Modifier and Type Method Description static ShortDataBufferNioDataBufferFactory. create(ShortBuffer buffer) -
Uses of ShortDataBuffer in org.tensorflow.ndarray.impl.buffer.raw
Methods in org.tensorflow.ndarray.impl.buffer.raw that return ShortDataBuffer Modifier and Type Method Description static ShortDataBufferRawDataBufferFactory. create(short[] array, boolean readOnly)protected static ShortDataBufferRawDataBufferFactory. mapNativeShorts(long address, long size, boolean readOnly) -
Uses of ShortDataBuffer in org.tensorflow.ndarray.impl.dense
Methods in org.tensorflow.ndarray.impl.dense that return ShortDataBuffer Modifier and Type Method Description protected ShortDataBufferShortDenseNdArray. buffer()Methods in org.tensorflow.ndarray.impl.dense with parameters of type ShortDataBuffer Modifier and Type Method Description static ShortNdArrayShortDenseNdArray. create(ShortDataBuffer buffer, Shape shape)ShortNdArrayShortDenseNdArray. read(ShortDataBuffer dst)ShortNdArrayShortDenseNdArray. write(ShortDataBuffer src)Constructors in org.tensorflow.ndarray.impl.dense with parameters of type ShortDataBuffer Constructor Description ShortDenseNdArray(ShortDataBuffer buffer, Shape shape) -
Uses of ShortDataBuffer in org.tensorflow.ndarray.impl.sparse
Methods in org.tensorflow.ndarray.impl.sparse with parameters of type ShortDataBuffer Modifier and Type Method Description static ShortSparseNdArrayShortSparseNdArray. create(ShortDataBuffer dataBuffer, short defaultValue, DimensionalSpace dimensions)Creates a new ShortSparseNdArray from a data bufferstatic ShortSparseNdArrayShortSparseNdArray. create(ShortDataBuffer buffer, short defaultValue, Shape shape)Creates a new empty ShortSparseNdArray from a short data bufferstatic ShortSparseNdArrayShortSparseNdArray. create(ShortDataBuffer dataBuffer, DimensionalSpace dimensions)Creates a new ShortSparseNdArray from a data bufferstatic ShortSparseNdArrayShortSparseNdArray. create(ShortDataBuffer buffer, Shape shape)Creates a new empty ShortSparseNdArray from a short data bufferShortNdArrayShortSparseNdArray. read(ShortDataBuffer dst)ShortNdArrayShortSparseNdArray. write(ShortDataBuffer src) -
Uses of ShortDataBuffer in org.tensorflow.ndarray.impl.sparse.slice
Methods in org.tensorflow.ndarray.impl.sparse.slice with parameters of type ShortDataBuffer Modifier and Type Method Description ShortNdArrayShortSparseSlice. read(ShortDataBuffer dst)ShortNdArrayShortSparseSlice. write(ShortDataBuffer src)
-