TensorDescriptionOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
public
abstract
AllocationDescription
getAllocationDescription
()
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
public
abstract
DataType
getDtype
()
Data type of tensor elements
.tensorflow.DataType dtype = 1;
public
abstract
int
getDtypeValue
()
Data type of tensor elements
.tensorflow.DataType dtype = 1;
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
public
abstract
boolean
hasAllocationDescription
()
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
public
abstract
boolean
hasShape
()
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
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,["# TensorDescriptionOrBuilder\n\npublic interface **TensorDescriptionOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [TensorDescription](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorDescription), [TensorDescription.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorDescription.Builder) |----------------------------------------------------------------------------------------------------------|----------------------------------------------| | [TensorDescription](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorDescription) | Protobuf type `tensorflow.TensorDescription` | | [TensorDescription.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorDescription.Builder) | Protobuf type `tensorflow.TensorDescription` | |||\n\n### Public Methods\n\n|-----------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [AllocationDescription](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescription) | [getAllocationDescription](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorDescriptionOrBuilder#getAllocationDescription())() ``` Information about the size and allocator used for the data ``` `.tensorflow.AllocationDescription allocation_description = 4;` |\n| abstract [AllocationDescriptionOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescriptionOrBuilder) | [getAllocationDescriptionOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorDescriptionOrBuilder#getAllocationDescriptionOrBuilder())() ``` Information about the size and allocator used for the data ``` `.tensorflow.AllocationDescription allocation_description = 4;` |\n| abstract [DataType](/jvm/api_docs/java/org/tensorflow/proto/framework/DataType) | [getDtype](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorDescriptionOrBuilder#getDtype())() ``` Data type of tensor elements ``` `.tensorflow.DataType dtype = 1;` |\n| abstract int | [getDtypeValue](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorDescriptionOrBuilder#getDtypeValue())() ``` Data type of tensor elements ``` `.tensorflow.DataType dtype = 1;` |\n| abstract [TensorShapeProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProto) | [getShape](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorDescriptionOrBuilder#getShape())() ``` Shape of the tensor. ``` |\n| abstract [TensorShapeProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProtoOrBuilder) | [getShapeOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorDescriptionOrBuilder#getShapeOrBuilder())() ``` Shape of the tensor. ``` |\n| abstract boolean | [hasAllocationDescription](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorDescriptionOrBuilder#hasAllocationDescription())() ``` Information about the size and allocator used for the data ``` `.tensorflow.AllocationDescription allocation_description = 4;` |\n| abstract boolean | [hasShape](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorDescriptionOrBuilder#hasShape())() ``` Shape of the tensor. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract [AllocationDescription](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescription)\n**getAllocationDescription**\n()\n\n\u003cbr /\u003e\n\n```\n Information about the size and allocator used for the data\n \n```\n`.tensorflow.AllocationDescription allocation_description = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract [AllocationDescriptionOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/AllocationDescriptionOrBuilder)\n**getAllocationDescriptionOrBuilder**\n()\n\n\u003cbr /\u003e\n\n```\n Information about the size and allocator used for the data\n \n```\n`.tensorflow.AllocationDescription allocation_description = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract [DataType](/jvm/api_docs/java/org/tensorflow/proto/framework/DataType)\n**getDtype**\n()\n\n\u003cbr /\u003e\n\n```\n Data type of tensor elements\n \n```\n`.tensorflow.DataType dtype = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getDtypeValue**\n()\n\n\u003cbr /\u003e\n\n```\n Data type of tensor elements\n \n```\n`.tensorflow.DataType dtype = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract [TensorShapeProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProto)\n**getShape**\n()\n\n\u003cbr /\u003e\n\n```\n Shape of the tensor.\n \n```\n`.tensorflow.TensorShapeProto shape = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract [TensorShapeProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProtoOrBuilder)\n**getShapeOrBuilder**\n()\n\n\u003cbr /\u003e\n\n```\n Shape of the tensor.\n \n```\n`.tensorflow.TensorShapeProto shape = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasAllocationDescription**\n()\n\n\u003cbr /\u003e\n\n```\n Information about the size and allocator used for the data\n \n```\n`.tensorflow.AllocationDescription allocation_description = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasShape**\n()\n\n\u003cbr /\u003e\n\n```\n Shape of the tensor.\n \n```\n`.tensorflow.TensorShapeProto shape = 2;`\n\n\u003cbr /\u003e"]]