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
Modifier and TypeMethodDescriptionlongTotal number of bytes allocated if knownlongIdentifier of the allocated buffer if knownName of the allocator usedcom.google.protobuf.ByteStringName of the allocator usedbooleanSet if this tensor only has one remaining referencelonggetPtr()Address of the allocation.longTotal number of bytes requestedMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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.
-