TensorShapeProto.DimOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
abstract
String
|
getName()
Optional name of the tensor dimension.
|
abstract
com.google.protobuf.ByteString
|
|
abstract
long
|
getSize()
Size of the tensor in that dimension.
|
Public Methods
public
abstract
String
getName
()
Optional name of the tensor dimension.
string name = 2;
public
abstract
com.google.protobuf.ByteString
getNameBytes
()
Optional name of the tensor dimension.
string name = 2;
public
abstract
long
getSize
()
Size of the tensor in that dimension.
This value must be >= -1, but values of -1 are reserved for "unknown"
shapes (values of -1 mean "unknown" dimension). Certain wrappers
that work with TensorShapeProto may fail at runtime when deserializing
a TensorShapeProto containing a dim value of -1.
int64 size = 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,["# TensorShapeProto.DimOrBuilder\n\npublic static interface **TensorShapeProto.DimOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [TensorShapeProto.Dim](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProto.Dim), [TensorShapeProto.Dim.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProto.Dim.Builder) |----------------------------------------------------------------------------------------------------------------|---------------------------------------| | [TensorShapeProto.Dim](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProto.Dim) | ``` One dimension of the tensor. ``` | | [TensorShapeProto.Dim.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProto.Dim.Builder) | ``` One dimension of the tensor. ``` | |||\n\n### Public Methods\n\n|-----------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract String | [getName](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProto.DimOrBuilder#getName())() ``` Optional name of the tensor dimension. ``` |\n| abstract com.google.protobuf.ByteString | [getNameBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProto.DimOrBuilder#getNameBytes())() ``` Optional name of the tensor dimension. ``` |\n| abstract long | [getSize](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorShapeProto.DimOrBuilder#getSize())() ``` Size of the tensor in that dimension. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract String\n**getName**\n()\n\n\u003cbr /\u003e\n\n```\n Optional name of the tensor dimension.\n \n```\n`string name = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Optional name of the tensor dimension.\n \n```\n`string name = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getSize**\n()\n\n\u003cbr /\u003e\n\n```\n Size of the tensor in that dimension.\n This value must be \u003e= -1, but values of -1 are reserved for \"unknown\"\n shapes (values of -1 mean \"unknown\" dimension). Certain wrappers\n that work with TensorShapeProto may fail at runtime when deserializing\n a TensorShapeProto containing a dim value of -1.\n \n```\n`int64 size = 1;`\n\n\u003cbr /\u003e"]]