AllocationDescriptionOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
abstract
long
|
getAllocatedBytes()
Total number of bytes allocated if known
int64 allocated_bytes = 2;
|
abstract
long
|
getAllocationId()
Identifier of the allocated buffer if known
int64 allocation_id = 4;
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
boolean
|
getHasSingleReference()
Set if this tensor only has one remaining reference
bool has_single_reference = 5;
|
abstract
long
|
getPtr()
Address of the allocation.
|
abstract
long
|
|
Public Methods
public
abstract
long
getAllocatedBytes
()
Total number of bytes allocated if known
int64 allocated_bytes = 2;
public
abstract
long
getAllocationId
()
Identifier of the allocated buffer if known
int64 allocation_id = 4;
public
abstract
String
getAllocatorName
()
Name of the allocator used
string allocator_name = 3;
public
abstract
com.google.protobuf.ByteString
getAllocatorNameBytes
()
Name of the allocator used
string allocator_name = 3;
public
abstract
boolean
getHasSingleReference
()
Set if this tensor only has one remaining reference
bool has_single_reference = 5;
public
abstract
long
getPtr
()
Address of the allocation.
uint64 ptr = 6;
public
abstract
long
getRequestedBytes
()
Total number of bytes requested
int64 requested_bytes = 1;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 UTC."],[],[],null,["# AllocationDescriptionOrBuilder\n\npublic interface **AllocationDescriptionOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [AllocationDescription](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescription), [AllocationDescription.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescription.Builder) |------------------------------------------------------------------------------------------------------------------|--------------------------------------------------| | [AllocationDescription](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescription) | Protobuf type `tensorflow.AllocationDescription` | | [AllocationDescription.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescription.Builder) | Protobuf type `tensorflow.AllocationDescription` | |||\n\n### Public Methods\n\n|-----------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract long | [getAllocatedBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescriptionOrBuilder#getAllocatedBytes())() ``` Total number of bytes allocated if known ``` `int64 allocated_bytes = 2;` |\n| abstract long | [getAllocationId](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescriptionOrBuilder#getAllocationId())() ``` Identifier of the allocated buffer if known ``` `int64 allocation_id = 4;` |\n| abstract String | [getAllocatorName](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescriptionOrBuilder#getAllocatorName())() ``` Name of the allocator used ``` `string allocator_name = 3;` |\n| abstract com.google.protobuf.ByteString | [getAllocatorNameBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescriptionOrBuilder#getAllocatorNameBytes())() ``` Name of the allocator used ``` `string allocator_name = 3;` |\n| abstract boolean | [getHasSingleReference](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescriptionOrBuilder#getHasSingleReference())() ``` Set if this tensor only has one remaining reference ``` `bool has_single_reference = 5;` |\n| abstract long | [getPtr](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescriptionOrBuilder#getPtr())() ``` Address of the allocation. ``` |\n| abstract long | [getRequestedBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescriptionOrBuilder#getRequestedBytes())() ``` Total number of bytes requested ``` `int64 requested_bytes = 1;` |\n\nPublic Methods\n--------------\n\n#### public abstract long\n**getAllocatedBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Total number of bytes allocated if known\n \n```\n`int64 allocated_bytes = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getAllocationId**\n()\n\n\u003cbr /\u003e\n\n```\n Identifier of the allocated buffer if known\n \n```\n`int64 allocation_id = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getAllocatorName**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the allocator used\n \n```\n`string allocator_name = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getAllocatorNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the allocator used\n \n```\n`string allocator_name = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getHasSingleReference**\n()\n\n\u003cbr /\u003e\n\n```\n Set if this tensor only has one remaining reference\n \n```\n`bool has_single_reference = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getPtr**\n()\n\n\u003cbr /\u003e\n\n```\n Address of the allocation.\n \n```\n`uint64 ptr = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getRequestedBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Total number of bytes requested\n \n```\n`int64 requested_bytes = 1;`\n\n\u003cbr /\u003e"]]