TF_Buffer

public class TF_Buffer

Nested Classes

Public Constructors

TF_Buffer()
Default native constructor.
TF_Buffer(long size)
Native array allocator.
TF_Buffer(Pointer p)
Pointer cast constructor.

Public Methods

Inherited Methods

org.tensorflow.internal.c_api.AbstractTF_Buffer
byte[]
copyData()
Returns a copy of the data in a Java array
ByteBuffer
dataAsByteBuffer()
Returns the data of this buffer as a ByteBuffer
void
delete()
Calls the deallocator, if registered, otherwise has no effect.
static TF_Buffer
newBuffer()
Calls TF_NewBuffer(), and registers a deallocator.
static TF_Buffer
newBufferFromString(Message proto)
Returns {@code newBufferFromString(new BytePointer(proto.toByteArray())), or null if proto is null or empty.
static TF_Buffer
newBufferFromString(Pointer proto)
Calls TF_NewBufferFromString(), and registers a deallocator.
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Constructors

public TF_Buffer ()

Default native constructor.

public TF_Buffer (long size)

Native array allocator. Access with ERROR(/Pointer#position(long)).

public TF_Buffer (Pointer p)

Pointer cast constructor. Invokes ERROR(/Pointer#Pointer(Pointer)).

Public Methods

public Pointer data ()

public TF_Buffer data (Pointer data)

public TF_Buffer.Data_deallocator_Pointer_long data_deallocator ()

public TF_Buffer data_deallocator (TF_Buffer.Data_deallocator_Pointer_long setter)

public TF_Buffer getPointer (long i)

public TF_Buffer length (long setter)

public long length ()

public TF_Buffer position (long position)