NamedTensorProtoOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
TensorProto
|
getTensor()
The client can populate a TensorProto using a tensorflow::Tensor`, or
directly using the protobuf field accessors.
|
abstract
TensorProtoOrBuilder
|
getTensorOrBuilder()
The client can populate a TensorProto using a tensorflow::Tensor`, or
directly using the protobuf field accessors.
|
abstract
boolean
|
hasTensor()
The client can populate a TensorProto using a tensorflow::Tensor`, or
directly using the protobuf field accessors.
|
Public Methods
public
abstract
String
getName
()
Name of the tensor.
string name = 1;
public
abstract
com.google.protobuf.ByteString
getNameBytes
()
Name of the tensor.
string name = 1;
public
abstract
TensorProto
getTensor
()
The client can populate a TensorProto using a tensorflow::Tensor`, or
directly using the protobuf field accessors.
The client specifies whether the returned tensor values should be
filled tensor fields (float_val, int_val, etc.) or encoded in a
compact form in tensor.tensor_content.
.tensorflow.TensorProto tensor = 2;
The client can populate a TensorProto using a tensorflow::Tensor`, or
directly using the protobuf field accessors.
The client specifies whether the returned tensor values should be
filled tensor fields (float_val, int_val, etc.) or encoded in a
compact form in tensor.tensor_content.
.tensorflow.TensorProto tensor = 2;
public
abstract
boolean
hasTensor
()
The client can populate a TensorProto using a tensorflow::Tensor`, or
directly using the protobuf field accessors.
The client specifies whether the returned tensor values should be
filled tensor fields (float_val, int_val, etc.) or encoded in a
compact form in tensor.tensor_content.
.tensorflow.TensorProto tensor = 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,["# NamedTensorProtoOrBuilder\n\npublic interface **NamedTensorProtoOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [NamedTensorProto](/jvm/api_docs/java/org/tensorflow/proto/framework/NamedTensorProto), [NamedTensorProto.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/NamedTensorProto.Builder) |--------------------------------------------------------------------------------------------------------|---------------------------------------------------| | [NamedTensorProto](/jvm/api_docs/java/org/tensorflow/proto/framework/NamedTensorProto) | ``` A pair of tensor name and tensor values. ``` | | [NamedTensorProto.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/NamedTensorProto.Builder) | ``` A pair of tensor name and tensor values. ``` | |||\n\n### Public Methods\n\n|---------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract String | [getName](/jvm/api_docs/java/org/tensorflow/proto/framework/NamedTensorProtoOrBuilder#getName())() ``` Name of the tensor. ``` |\n| abstract com.google.protobuf.ByteString | [getNameBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/NamedTensorProtoOrBuilder#getNameBytes())() ``` Name of the tensor. ``` |\n| abstract [TensorProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorProto) | [getTensor](/jvm/api_docs/java/org/tensorflow/proto/framework/NamedTensorProtoOrBuilder#getTensor())() ``` The client can populate a TensorProto using a tensorflow::Tensor`, or directly using the protobuf field accessors. ``` |\n| abstract [TensorProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorProtoOrBuilder) | [getTensorOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/NamedTensorProtoOrBuilder#getTensorOrBuilder())() ``` The client can populate a TensorProto using a tensorflow::Tensor`, or directly using the protobuf field accessors. ``` |\n| abstract boolean | [hasTensor](/jvm/api_docs/java/org/tensorflow/proto/framework/NamedTensorProtoOrBuilder#hasTensor())() ``` The client can populate a TensorProto using a tensorflow::Tensor`, or directly using the protobuf field accessors. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract String\n**getName**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the tensor.\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Name of the tensor.\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract [TensorProto](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorProto)\n**getTensor**\n()\n\n\u003cbr /\u003e\n\n```\n The client can populate a TensorProto using a tensorflow::Tensor`, or\n directly using the protobuf field accessors.\n The client specifies whether the returned tensor values should be\n filled tensor fields (float_val, int_val, etc.) or encoded in a\n compact form in tensor.tensor_content.\n \n```\n`.tensorflow.TensorProto tensor = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract [TensorProtoOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/TensorProtoOrBuilder)\n**getTensorOrBuilder**\n()\n\n\u003cbr /\u003e\n\n```\n The client can populate a TensorProto using a tensorflow::Tensor`, or\n directly using the protobuf field accessors.\n The client specifies whether the returned tensor values should be\n filled tensor fields (float_val, int_val, etc.) or encoded in a\n compact form in tensor.tensor_content.\n \n```\n`.tensorflow.TensorProto tensor = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasTensor**\n()\n\n\u003cbr /\u003e\n\n```\n The client can populate a TensorProto using a tensorflow::Tensor`, or\n directly using the protobuf field accessors.\n The client specifies whether the returned tensor values should be\n filled tensor fields (float_val, int_val, etc.) or encoded in a\n compact form in tensor.tensor_content.\n \n```\n`.tensorflow.TensorProto tensor = 2;`\n\n\u003cbr /\u003e"]]