Package org.tensorflow.framework
Interface NamedTensorProtoOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
NamedTensorProto,NamedTensorProto.Builder
public interface NamedTensorProtoOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetName()Name of the tensor.com.google.protobuf.ByteStringName of the tensor.The client can populate a TensorProto using a tensorflow::Tensor`, or directly using the protobuf field accessors.The client can populate a TensorProto using a tensorflow::Tensor`, or directly using the protobuf field accessors.booleanThe client can populate a TensorProto using a tensorflow::Tensor`, or directly using the protobuf field accessors.Methods 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
-
getName
String getName()Name of the tensor.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Name of the tensor.
string name = 1;- Returns:
- The bytes for name.
-
hasTensor
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;- Returns:
- Whether the tensor field is set.
-
getTensor
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;- Returns:
- The tensor.
-
getTensorOrBuilder
TensorProtoOrBuilder getTensorOrBuilder()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;
-