Uses of Interface
org.tensorflow.ndarray.buffer.DataBuffer
-
-
Uses of DataBuffer in org.tensorflow.ndarray
Methods in org.tensorflow.ndarray with parameters of type DataBuffer Modifier and Type Method Description BooleanNdArrayBooleanNdArray. read(DataBuffer<Boolean> dst)ByteNdArrayByteNdArray. read(DataBuffer<Byte> dst)DoubleNdArrayDoubleNdArray. read(DataBuffer<Double> dst)FloatNdArrayFloatNdArray. read(DataBuffer<Float> dst)IntNdArrayIntNdArray. read(DataBuffer<Integer> dst)LongNdArrayLongNdArray. read(DataBuffer<Long> dst)NdArray<T>NdArray. read(DataBuffer<T> dst)Read the content of this N-dimensional array into the destination buffer.ShortNdArrayShortNdArray. read(DataBuffer<Short> dst)static <T> NdArray<T>NdArrays. wrap(Shape shape, DataBuffer<T> buffer)Wraps a buffer in an N-dimensional array of a given shape.BooleanNdArrayBooleanNdArray. write(DataBuffer<Boolean> src)ByteNdArrayByteNdArray. write(DataBuffer<Byte> src)DoubleNdArrayDoubleNdArray. write(DataBuffer<Double> src)FloatNdArrayFloatNdArray. write(DataBuffer<Float> src)IntNdArrayIntNdArray. write(DataBuffer<Integer> src)LongNdArrayLongNdArray. write(DataBuffer<Long> src)NdArray<T>NdArray. write(DataBuffer<T> src)Write the content of this N-dimensional array from the source buffer.ShortNdArrayShortNdArray. write(DataBuffer<Short> src) -
Uses of DataBuffer in org.tensorflow.ndarray.buffer
Classes in org.tensorflow.ndarray.buffer with type parameters of type DataBuffer Modifier and Type Interface Description interfaceDataBufferWindow<B extends DataBuffer<?>>A mutable container for viewing part of aDataBuffer.Subinterfaces of DataBuffer in org.tensorflow.ndarray.buffer Modifier and Type Interface Description interfaceBooleanDataBufferADataBufferof booleans.interfaceByteDataBufferADataBufferof bytes.interfaceDoubleDataBufferADataBufferof doubles.interfaceFloatDataBufferADataBufferof floats.interfaceIntDataBufferADataBufferof ints.interfaceLongDataBufferADataBufferof longs.interfaceShortDataBufferADataBufferof shorts.Methods in org.tensorflow.ndarray.buffer that return DataBuffer Modifier and Type Method Description DataBuffer<T>DataBuffer. copyTo(DataBuffer<T> dst, long size)Write the references of the objects in the source array into this buffer.default DataBuffer<T>DataBuffer. narrow(long size)Creates a new buffer whose content is a shared subsequence of this buffer's content, whose size is set to the given value.static <T> DataBuffer<T>DataBuffers. of(T[] array, boolean readOnly, boolean makeCopy)Create a buffer from an array of objects into a data buffer.default DataBuffer<T>DataBuffer. offset(long index)Creates a new buffer whose content is a shared subsequence of this buffer's content, starting at the given index.static <T> DataBuffer<T>DataBuffers. ofObjects(Class<T> type, long size)Creates a buffer of references to objects of typeclazz` that can store up to `sizevalues.static <T> DataBuffer<T>DataBuffers. ofObjects(T... values)Create a buffer from an array of objects into a data buffer.default DataBuffer<T>DataBuffer. read(T[] dst)Read the references of the objects in this buffer into the destination array.DataBuffer<T>DataBuffer. read(T[] dst, int offset, int length)Read the references of the objects in this buffer into the destination array.DataBuffer<T>DataBuffer. setObject(T value, long index)Writes the given value into this buffer at the given index.DataBuffer<T>DataBuffer. slice(long index, long size)Creates a new buffer whose content is a shared subsequence of this buffer's content, starting at the given index and of the given size.default DataBuffer<T>DataBuffer. write(T[] src)Write the references of the objects in the source array into this buffer.DataBuffer<T>DataBuffer. write(T[] src, int offset, int length)Bulk put method, using int arrays.Methods in org.tensorflow.ndarray.buffer that return types with arguments of type DataBuffer Modifier and Type Method Description default DataBufferWindow<? extends DataBuffer<T>>DataBuffer. window(long size)Creates aDataBufferWindowthat provides a partial view of this buffer.Methods in org.tensorflow.ndarray.buffer with parameters of type DataBuffer Modifier and Type Method Description BooleanDataBufferBooleanDataBuffer. copyTo(DataBuffer<Boolean> dst, long size)ByteDataBufferByteDataBuffer. copyTo(DataBuffer<Byte> dst, long size)DataBuffer<T>DataBuffer. copyTo(DataBuffer<T> dst, long size)Write the references of the objects in the source array into this buffer.DoubleDataBufferDoubleDataBuffer. copyTo(DataBuffer<Double> dst, long size)FloatDataBufferFloatDataBuffer. copyTo(DataBuffer<Float> dst, long size)IntDataBufferIntDataBuffer. copyTo(DataBuffer<Integer> dst, long size)LongDataBufferLongDataBuffer. copyTo(DataBuffer<Long> dst, long size)ShortDataBufferShortDataBuffer. copyTo(DataBuffer<Short> dst, long size) -
Uses of DataBuffer in org.tensorflow.ndarray.buffer.layout
Classes in org.tensorflow.ndarray.buffer.layout with type parameters of type DataBuffer Modifier and Type Interface Description interfaceBooleanDataLayout<S extends DataBuffer<?>>ADataLayoutthat converts data stored in a buffer to booleans.interfaceByteDataLayout<S extends DataBuffer<?>>ADataLayoutthat converts data stored in a buffer to bytes.interfaceDataLayout<S extends DataBuffer<?>,T>Converts data stored in a buffer to a given type.interfaceDoubleDataLayout<S extends DataBuffer<?>>ADataLayoutthat converts data stored in a buffer to doubles.interfaceFloatDataLayout<S extends DataBuffer<?>>ADataLayoutthat converts data stored in a buffer to floats.interfaceIntDataLayout<S extends DataBuffer<?>>ADataLayoutthat converts data stored in a buffer to ints.interfaceLongDataLayout<S extends DataBuffer<?>>ADataLayoutthat converts data stored in a buffer to longs.interfaceShortDataLayout<S extends DataBuffer<?>>ADataLayoutthat converts data stored in a buffer to shorts.Methods in org.tensorflow.ndarray.buffer.layout that return DataBuffer Modifier and Type Method Description default DataBuffer<T>DataLayout. applyTo(S buffer)Apply this layout to the provided buffer.Methods in org.tensorflow.ndarray.buffer.layout that return types with arguments of type DataBuffer Modifier and Type Method Description static DataLayout<DataBuffer<byte[]>,String>DataLayouts. ofStrings(Charset charset)Creates a data layout for converting strings to/from byte sequences. -
Uses of DataBuffer in org.tensorflow.ndarray.impl.buffer
Classes in org.tensorflow.ndarray.impl.buffer with type parameters of type DataBuffer Modifier and Type Class Description classAbstractDataBufferWindow<B extends DataBuffer<?>>Classes in org.tensorflow.ndarray.impl.buffer that implement DataBuffer Modifier and Type Class Description classAbstractDataBuffer<T>Methods in org.tensorflow.ndarray.impl.buffer with type parameters of type DataBuffer Modifier and Type Method Description protected <U extends DataBuffer<T>>
UAbstractDataBuffer. slowCopyTo(DataBuffer<T> dst, long size)Methods in org.tensorflow.ndarray.impl.buffer that return DataBuffer Modifier and Type Method Description DataBuffer<T>AbstractDataBuffer. copyTo(DataBuffer<T> dst, long size)DataBuffer<T>AbstractDataBuffer. read(T[] dst, int offset, int length)DataBuffer<T>AbstractDataBuffer. write(T[] src, int offset, int length)Methods in org.tensorflow.ndarray.impl.buffer with parameters of type DataBuffer Modifier and Type Method Description DataBuffer<T>AbstractDataBuffer. copyTo(DataBuffer<T> dst, long size)static <T> voidValidator. copyToArgs(DataBuffer<T> src, DataBuffer<T> dst, long size)static <T> voidValidator. getArgs(DataBuffer<T> buffer, long index)static <T> voidValidator. narrowArgs(DataBuffer<T> buffer, long size)static <T> voidValidator. offsetArgs(DataBuffer<T> buffer, long index)static <T> voidValidator. readArgs(DataBuffer<T> buffer, int arrayLength, int offset, int length)static <T> voidValidator. setArgs(DataBuffer<T> buffer, long index)static <T> voidValidator. sliceArgs(DataBuffer<T> buffer, long index, long size)protected <U extends DataBuffer<T>>
UAbstractDataBuffer. slowCopyTo(DataBuffer<T> dst, long size)protected booleanAbstractDataBuffer. slowEquals(DataBuffer<?> other)static <T> voidValidator. writeArgs(DataBuffer<T> buffer, int arrayLength, int offset, int length) -
Uses of DataBuffer in org.tensorflow.ndarray.impl.buffer.adapter
Methods in org.tensorflow.ndarray.impl.buffer.adapter with type parameters of type DataBuffer Modifier and Type Method Description static <S extends DataBuffer<?>>
BooleanDataBufferDataBufferAdapterFactory. create(S buffer, BooleanDataLayout<S> layout)Creates an adapter that applies a boolean data layout to the given buffer.static <S extends DataBuffer<?>>
ByteDataBufferDataBufferAdapterFactory. create(S buffer, ByteDataLayout<S> layout)Creates an adapter that applies a byte data layout to the given buffer.static <S extends DataBuffer<?>,T>
DataBuffer<T>DataBufferAdapterFactory. create(S buffer, DataLayout<S,T> layout)Creates an adapter that applies a data layout to the given buffer.static <S extends DataBuffer<?>>
DoubleDataBufferDataBufferAdapterFactory. create(S buffer, DoubleDataLayout<S> layout)Creates an adapter that applies a double data layout to the given buffer.static <S extends DataBuffer<?>>
FloatDataBufferDataBufferAdapterFactory. create(S buffer, FloatDataLayout<S> layout)Creates an adapter that applies a float data layout to the given buffer.static <S extends DataBuffer<?>>
IntDataBufferDataBufferAdapterFactory. create(S buffer, IntDataLayout<S> layout)Creates an adapter that applies a integer data layout to the given buffer.static <S extends DataBuffer<?>>
LongDataBufferDataBufferAdapterFactory. create(S buffer, LongDataLayout<S> layout)Creates an adapter that applies a long data layout to the given buffer.static <S extends DataBuffer<?>>
ShortDataBufferDataBufferAdapterFactory. create(S buffer, ShortDataLayout<S> layout)Creates an adapter that applies a short data layout to the given buffer.Methods in org.tensorflow.ndarray.impl.buffer.adapter that return DataBuffer Modifier and Type Method Description static <S extends DataBuffer<?>,T>
DataBuffer<T>DataBufferAdapterFactory. create(S buffer, DataLayout<S,T> layout)Creates an adapter that applies a data layout to the given buffer. -
Uses of DataBuffer in org.tensorflow.ndarray.impl.buffer.layout
Methods in org.tensorflow.ndarray.impl.buffer.layout with parameters of type DataBuffer Modifier and Type Method Description StringStringLayout. readObject(DataBuffer<byte[]> buffer, long index)voidStringLayout. writeObject(DataBuffer<byte[]> buffer, String value, long index) -
Uses of DataBuffer in org.tensorflow.ndarray.impl.buffer.misc
Methods in org.tensorflow.ndarray.impl.buffer.misc that return DataBuffer Modifier and Type Method Description static <T> DataBuffer<T>MiscDataBufferFactory. create(T[] array, boolean readOnly) -
Uses of DataBuffer in org.tensorflow.ndarray.impl.dense
Methods in org.tensorflow.ndarray.impl.dense that return DataBuffer Modifier and Type Method Description protected abstract DataBuffer<T>AbstractDenseNdArray. buffer()protected DataBuffer<T>DenseNdArray. buffer()Methods in org.tensorflow.ndarray.impl.dense with parameters of type DataBuffer Modifier and Type Method Description UAbstractDenseNdArray. read(DataBuffer<T> dst)static <T> NdArray<T>DenseNdArray. wrap(DataBuffer<T> buffer, Shape shape)UAbstractDenseNdArray. write(DataBuffer<T> src)Constructors in org.tensorflow.ndarray.impl.dense with parameters of type DataBuffer Constructor Description DenseNdArray(DataBuffer<T> buffer, Shape shape) -
Uses of DataBuffer in org.tensorflow.ndarray.impl.sparse
Methods in org.tensorflow.ndarray.impl.sparse with parameters of type DataBuffer Modifier and Type Method Description static <T,U extends NdArray<T>>
SparseNdArray<T,U>SparseNdArray. create(Class<T> type, DataBuffer<T> dataBuffer, DimensionalSpace dimensions)Creates a new SparseNdArray from a data bufferstatic <T,U extends NdArray<T>>
SparseNdArray<T,U>SparseNdArray. create(Class<T> type, DataBuffer<T> buffer, Shape shape)Creates a new empty SparseNdArray from a float data bufferstatic <T,U extends NdArray<T>>
SparseNdArray<T,U>SparseNdArray. create(Class<T> type, DataBuffer<T> dataBuffer, T defaultValue, DimensionalSpace dimensions)Creates a new SparseNdArray from a data bufferstatic <T,U extends NdArray<T>>
SparseNdArray<T,U>SparseNdArray. create(Class<T> type, DataBuffer<T> buffer, T defaultValue, Shape shape)Creates a new empty SparseNdArray from a float data bufferBooleanNdArrayBooleanSparseNdArray. read(DataBuffer<Boolean> dst)Read the content of this N-dimensional array into the destination buffer.ByteNdArrayByteSparseNdArray. read(DataBuffer<Byte> dst)Read the content of this N-dimensional array into the destination buffer.DoubleNdArrayDoubleSparseNdArray. read(DataBuffer<Double> dst)Read the content of this N-dimensional array into the destination buffer.FloatNdArrayFloatSparseNdArray. read(DataBuffer<Float> dst)Read the content of this N-dimensional array into the destination buffer.IntNdArrayIntSparseNdArray. read(DataBuffer<Integer> dst)Read the content of this N-dimensional array into the destination buffer.LongNdArrayLongSparseNdArray. read(DataBuffer<Long> dst)Read the content of this N-dimensional array into the destination buffer.ShortNdArrayShortSparseNdArray. read(DataBuffer<Short> dst)Read the content of this N-dimensional array into the destination buffer.NdArray<T>SparseNdArray. read(DataBuffer<T> dst)Read the content of this N-dimensional array into the destination buffer.BooleanNdArrayBooleanSparseNdArray. write(DataBuffer<Boolean> src)Write the content of this N-dimensional array from the source buffer.ByteNdArrayByteSparseNdArray. write(DataBuffer<Byte> src)Write the content of this N-dimensional array from the source buffer.DoubleNdArrayDoubleSparseNdArray. write(DataBuffer<Double> src)Write the content of this N-dimensional array from the source buffer.FloatNdArrayFloatSparseNdArray. write(DataBuffer<Float> src)Write the content of this N-dimensional array from the source buffer.IntNdArrayIntSparseNdArray. write(DataBuffer<Integer> src)Write the content of this N-dimensional array from the source buffer.LongNdArrayLongSparseNdArray. write(DataBuffer<Long> src)Write the content of this N-dimensional array from the source buffer.ShortNdArrayShortSparseNdArray. write(DataBuffer<Short> src)Write the content of this N-dimensional array from the source buffer.NdArray<T>SparseNdArray. write(DataBuffer<T> src)Write the content of this N-dimensional array from the source buffer. -
Uses of DataBuffer in org.tensorflow.ndarray.impl.sparse.slice
Methods in org.tensorflow.ndarray.impl.sparse.slice with parameters of type DataBuffer Modifier and Type Method Description BooleanNdArrayBooleanSparseSlice. read(DataBuffer<Boolean> dst)Read the content of this N-dimensional array into the destination buffer.ByteNdArrayByteSparseSlice. read(DataBuffer<Byte> dst)Read the content of this N-dimensional array into the destination buffer.DoubleNdArrayDoubleSparseSlice. read(DataBuffer<Double> dst)Read the content of this N-dimensional array into the destination buffer.FloatNdArrayFloatSparseSlice. read(DataBuffer<Float> dst)Read the content of this N-dimensional array into the destination buffer.IntNdArrayIntSparseSlice. read(DataBuffer<Integer> dst)Read the content of this N-dimensional array into the destination buffer.LongNdArrayLongSparseSlice. read(DataBuffer<Long> dst)Read the content of this N-dimensional array into the destination buffer.UObjectSparseSlice. read(DataBuffer<T> dst)Read the content of this N-dimensional array into the destination buffer.ShortNdArrayShortSparseSlice. read(DataBuffer<Short> dst)Read the content of this N-dimensional array into the destination buffer.BooleanNdArrayBooleanSparseSlice. write(DataBuffer<Boolean> src)ByteNdArrayByteSparseSlice. write(DataBuffer<Byte> src)DoubleNdArrayDoubleSparseSlice. write(DataBuffer<Double> src)FloatNdArrayFloatSparseSlice. write(DataBuffer<Float> src)IntNdArrayIntSparseSlice. write(DataBuffer<Integer> src)LongNdArrayLongSparseSlice. write(DataBuffer<Long> src)ShortNdArrayShortSparseSlice. write(DataBuffer<Short> src)NdArray<T>SparseSlice. write(DataBuffer<T> src)Write the content of this N-dimensional array from the source buffer.
-