Uses of Interface
org.tensorflow.ndarray.buffer.DataBuffer
Packages that use DataBuffer
Package
Description
-
Uses of DataBuffer in org.tensorflow.ndarray
Methods in org.tensorflow.ndarray with parameters of type DataBufferModifier and TypeMethodDescriptionBooleanNdArray.copyFrom(DataBuffer<Boolean> src) ByteNdArray.copyFrom(DataBuffer<Byte> src) DoubleNdArray.copyFrom(DataBuffer<Double> src) FloatNdArray.copyFrom(DataBuffer<Float> src) IntNdArray.copyFrom(DataBuffer<Integer> src) LongNdArray.copyFrom(DataBuffer<Long> src) NdArray.copyFrom(DataBuffer<T> src) Copy the content of the source buffer into this N-dimensional array.ShortNdArray.copyFrom(DataBuffer<Short> src) BooleanNdArray.copyTo(DataBuffer<Boolean> dst) ByteNdArray.copyTo(DataBuffer<Byte> dst) DoubleNdArray.copyTo(DataBuffer<Double> dst) FloatNdArray.copyTo(DataBuffer<Float> dst) IntNdArray.copyTo(DataBuffer<Integer> dst) LongNdArray.copyTo(DataBuffer<Long> dst) NdArray.copyTo(DataBuffer<T> dst) Copy the content of this N-dimensional array into the destination buffer.ShortNdArray.copyTo(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. -
Uses of DataBuffer in org.tensorflow.ndarray.buffer
Classes in org.tensorflow.ndarray.buffer with type parameters of type DataBufferModifier and TypeInterfaceDescriptioninterfaceDataBufferWindow<B extends DataBuffer<?>>A mutable container for viewing part of aDataBuffer.Subinterfaces of DataBuffer in org.tensorflow.ndarray.bufferModifier and TypeInterfaceDescriptioninterfaceADataBufferof booleans.interfaceADataBufferof bytes.interfaceADataBufferof doubles.interfaceADataBufferof floats.interfaceADataBufferof ints.interfaceADataBufferof longs.interfaceADataBufferof shorts.Methods in org.tensorflow.ndarray.buffer that return DataBufferModifier and TypeMethodDescriptionDataBuffer.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> 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> Read the references of the objects in this buffer into the destination array.Read the references of the objects in this buffer into the destination array.Writes the given value into this buffer at the given index.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> Write the references of the objects in the source array into this buffer.Bulk put method, using int arrays.Methods in org.tensorflow.ndarray.buffer that return types with arguments of type DataBufferModifier and TypeMethodDescriptiondefault 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 DataBufferModifier and TypeMethodDescriptionBooleanDataBuffer.copyTo(DataBuffer<Boolean> dst, long size) ByteDataBuffer.copyTo(DataBuffer<Byte> dst, long size) DataBuffer.copyTo(DataBuffer<T> dst, long size) Write the references of the objects in the source array into this buffer.DoubleDataBuffer.copyTo(DataBuffer<Double> dst, long size) FloatDataBuffer.copyTo(DataBuffer<Float> dst, long size) IntDataBuffer.copyTo(DataBuffer<Integer> dst, long size) LongDataBuffer.copyTo(DataBuffer<Long> dst, long size) ShortDataBuffer.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 DataBufferModifier and TypeInterfaceDescriptioninterfaceBooleanDataLayout<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 DataBufferModifier and TypeMethodDescriptiondefault DataBuffer<T> Apply this layout to the provided buffer.Methods in org.tensorflow.ndarray.buffer.layout that return types with arguments of type DataBufferModifier and TypeMethodDescriptionstatic DataLayout<DataBuffer<byte[]>, String> 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 DataBufferClasses in org.tensorflow.ndarray.impl.buffer that implement DataBufferMethods in org.tensorflow.ndarray.impl.buffer with type parameters of type DataBufferModifier and TypeMethodDescriptionprotected <U extends DataBuffer<T>>
UAbstractDataBuffer.slowCopyTo(DataBuffer<T> dst, long size) Methods in org.tensorflow.ndarray.impl.buffer that return DataBufferMethods in org.tensorflow.ndarray.impl.buffer with parameters of type DataBufferModifier and TypeMethodDescriptionAbstractDataBuffer.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 DataBufferModifier and TypeMethodDescriptionstatic <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 DataBufferModifier and TypeMethodDescriptionstatic <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
Classes in org.tensorflow.ndarray.impl.buffer.layout that implement interfaces with type arguments of type DataBufferModifier and TypeClassDescriptionfinal classData layout that converts a String to/from a sequence of bytes applying a given charset.Methods in org.tensorflow.ndarray.impl.buffer.layout with parameters of type DataBufferModifier and TypeMethodDescriptionStringLayout.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 DataBufferModifier and TypeMethodDescriptionstatic <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 DataBufferModifier and TypeMethodDescriptionprotected abstract DataBuffer<T> AbstractDenseNdArray.buffer()protected DataBuffer<T> DenseNdArray.buffer()Methods in org.tensorflow.ndarray.impl.dense with parameters of type DataBufferModifier and TypeMethodDescriptionAbstractDenseNdArray.copyFrom(DataBuffer<T> src) AbstractDenseNdArray.copyTo(DataBuffer<T> dst) static <T> NdArray<T> DenseNdArray.wrap(DataBuffer<T> buffer, Shape shape) Constructors in org.tensorflow.ndarray.impl.dense with parameters of type DataBuffer -
Uses of DataBuffer in org.tensorflow.ndarray.impl.sparse
Methods in org.tensorflow.ndarray.impl.sparse with parameters of type DataBufferModifier and TypeMethodDescriptionBooleanSparseNdArray.copyFrom(DataBuffer<Boolean> src) Copy the content of the source buffer into this N-dimensional array.ByteSparseNdArray.copyFrom(DataBuffer<Byte> src) Copy the content of the source buffer into this N-dimensional array.DoubleSparseNdArray.copyFrom(DataBuffer<Double> src) Copy the content of the source buffer into this N-dimensional array.FloatSparseNdArray.copyFrom(DataBuffer<Float> src) Copy the content of the source buffer into this N-dimensional array.IntSparseNdArray.copyFrom(DataBuffer<Integer> src) Copy the content of the source buffer into this N-dimensional array.LongSparseNdArray.copyFrom(DataBuffer<Long> src) Copy the content of the source buffer into this N-dimensional array.ShortSparseNdArray.copyFrom(DataBuffer<Short> src) Copy the content of the source buffer into this N-dimensional array.SparseNdArray.copyFrom(DataBuffer<T> src) Copy the content of the source buffer into this N-dimensional array.BooleanSparseNdArray.copyTo(DataBuffer<Boolean> dst) Copy the content of this N-dimensional array into the destination buffer.ByteSparseNdArray.copyTo(DataBuffer<Byte> dst) Copy the content of this N-dimensional array into the destination buffer.DoubleSparseNdArray.copyTo(DataBuffer<Double> dst) Copy the content of this N-dimensional array into the destination buffer.FloatSparseNdArray.copyTo(DataBuffer<Float> dst) Copy the content of this N-dimensional array into the destination buffer.IntSparseNdArray.copyTo(DataBuffer<Integer> dst) Copy the content of this N-dimensional array into the destination buffer.LongSparseNdArray.copyTo(DataBuffer<Long> dst) Copy the content of this N-dimensional array into the destination buffer.ShortSparseNdArray.copyTo(DataBuffer<Short> dst) Copy the content of this N-dimensional array into the destination buffer.SparseNdArray.copyTo(DataBuffer<T> dst) Copy the content of this N-dimensional array into the destination buffer.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 buffer -
Uses of DataBuffer in org.tensorflow.ndarray.impl.sparse.slice
Methods in org.tensorflow.ndarray.impl.sparse.slice with parameters of type DataBufferModifier and TypeMethodDescriptionBooleanSparseSlice.copyFrom(DataBuffer<Boolean> src) ByteSparseSlice.copyFrom(DataBuffer<Byte> src) DoubleSparseSlice.copyFrom(DataBuffer<Double> src) FloatSparseSlice.copyFrom(DataBuffer<Float> src) IntSparseSlice.copyFrom(DataBuffer<Integer> src) LongSparseSlice.copyFrom(DataBuffer<Long> src) ShortSparseSlice.copyFrom(DataBuffer<Short> src) SparseSlice.copyFrom(DataBuffer<T> src) Copy the content of the source buffer into this N-dimensional array.BooleanSparseSlice.copyTo(DataBuffer<Boolean> dst) Copy the content of this N-dimensional array into the destination buffer.ByteSparseSlice.copyTo(DataBuffer<Byte> dst) Copy the content of this N-dimensional array into the destination buffer.DoubleSparseSlice.copyTo(DataBuffer<Double> dst) Copy the content of this N-dimensional array into the destination buffer.FloatSparseSlice.copyTo(DataBuffer<Float> dst) Copy the content of this N-dimensional array into the destination buffer.IntSparseSlice.copyTo(DataBuffer<Integer> dst) Copy the content of this N-dimensional array into the destination buffer.LongSparseSlice.copyTo(DataBuffer<Long> dst) Copy the content of this N-dimensional array into the destination buffer.ObjectSparseSlice.copyTo(DataBuffer<T> dst) Copy the content of this N-dimensional array into the destination buffer.ShortSparseSlice.copyTo(DataBuffer<Short> dst) Copy the content of this N-dimensional array into the destination buffer.