Class TF_Buffer
java.lang.Object
org.bytedeco.javacpp.Pointer
org.tensorflow.internal.c_api.AbstractTF_Buffer
org.tensorflow.internal.c_api.TF_Buffer
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
AbstractTF_Buffer.DeleteDeallocator
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractTF_Buffer
AbstractTF_Buffer.DeleteDeallocatorNested classes/interfaces inherited from class Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondata()getPointer(long i) longlength()length(long setter) position(long position) Methods inherited from class AbstractTF_Buffer
copyData, dataAsByteBuffer, delete, newBuffer, newBufferFromString, newBufferFromStringModifier and TypeMethodDescriptionbyte[]copyData()Returns a copy of the data in a Java arrayReturns the data of this buffer as aByteBuffervoiddelete()Calls the deallocator, if registered, otherwise has no effect.static TF_BufferCalls TF_NewBuffer(), and registers a deallocator.static TF_BuffernewBufferFromString(Message proto) ReturnsnewBufferFromString(new BytePointer(proto.toByteArray())), or null if proto is null or empty.static TF_BuffernewBufferFromString(Pointer proto) Calls TF_NewBufferFromString(), and registers a deallocator.Methods inherited from class Pointer
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
-
Constructor Details
-
TF_Buffer
public TF_Buffer()Default native constructor. -
TF_Buffer
public TF_Buffer(long size) Native array allocator. Access withPointer.position(long). -
TF_Buffer
Pointer cast constructor. InvokesPointer(Pointer).
-
-
Method Details
-
position
-
getPointer
- Overrides:
getPointerin classPointer
-
data
-
data
-
length
-
length
-
data_deallocator
-
data_deallocator
-