Package org.tensorflow.framework
Interface AllocationDescriptionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AllocationDescription,AllocationDescription.Builder
public interface AllocationDescriptionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAllocatedBytes()Total number of bytes allocated if knownlonggetAllocationId()Identifier of the allocated buffer if knownjava.lang.StringgetAllocatorName()Name of the allocator usedcom.google.protobuf.ByteStringgetAllocatorNameBytes()Name of the allocator usedbooleangetHasSingleReference()Set if this tensor only has one remaining referencelonggetPtr()Address of the allocation.longgetRequestedBytes()Total number of bytes requested-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getRequestedBytes
long getRequestedBytes()
Total number of bytes requested
int64 requested_bytes = 1;- Returns:
- The requestedBytes.
-
getAllocatedBytes
long getAllocatedBytes()
Total number of bytes allocated if known
int64 allocated_bytes = 2;- Returns:
- The allocatedBytes.
-
getAllocatorName
java.lang.String getAllocatorName()
Name of the allocator used
string allocator_name = 3;- Returns:
- The allocatorName.
-
getAllocatorNameBytes
com.google.protobuf.ByteString getAllocatorNameBytes()
Name of the allocator used
string allocator_name = 3;- Returns:
- The bytes for allocatorName.
-
getAllocationId
long getAllocationId()
Identifier of the allocated buffer if known
int64 allocation_id = 4;- Returns:
- The allocationId.
-
getHasSingleReference
boolean getHasSingleReference()
Set if this tensor only has one remaining reference
bool has_single_reference = 5;- Returns:
- The hasSingleReference.
-
getPtr
long getPtr()
Address of the allocation.
uint64 ptr = 6;- Returns:
- The ptr.
-
-