public static final class TensorProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder> implements TensorProtoOrBuilder
Protocol buffer representing a tensor.Protobuf type
tensorflow.TensorProto| Modifier and Type | Method and Description |
|---|---|
TensorProto.Builder |
addAllBoolVal(java.lang.Iterable<? extends java.lang.Boolean> values)
DT_BOOL
|
TensorProto.Builder |
addAllDcomplexVal(java.lang.Iterable<? extends java.lang.Double> values)
DT_COMPLEX128.
|
TensorProto.Builder |
addAllDoubleVal(java.lang.Iterable<? extends java.lang.Double> values)
DT_DOUBLE.
|
TensorProto.Builder |
addAllFloatVal(java.lang.Iterable<? extends java.lang.Float> values)
DT_FLOAT.
|
TensorProto.Builder |
addAllHalfVal(java.lang.Iterable<? extends java.lang.Integer> values)
DT_HALF, DT_BFLOAT16.
|
TensorProto.Builder |
addAllInt64Val(java.lang.Iterable<? extends java.lang.Long> values)
DT_INT64
|
TensorProto.Builder |
addAllIntVal(java.lang.Iterable<? extends java.lang.Integer> values)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
|
TensorProto.Builder |
addAllResourceHandleVal(java.lang.Iterable<? extends ResourceHandleProto> values)
DT_RESOURCE
|
TensorProto.Builder |
addAllScomplexVal(java.lang.Iterable<? extends java.lang.Float> values)
DT_COMPLEX64.
|
TensorProto.Builder |
addAllStringVal(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
DT_STRING
|
TensorProto.Builder |
addAllUint32Val(java.lang.Iterable<? extends java.lang.Integer> values)
DT_UINT32
|
TensorProto.Builder |
addAllUint64Val(java.lang.Iterable<? extends java.lang.Long> values)
DT_UINT64
|
TensorProto.Builder |
addAllVariantVal(java.lang.Iterable<? extends VariantTensorDataProto> values)
DT_VARIANT
|
TensorProto.Builder |
addBoolVal(boolean value)
DT_BOOL
|
TensorProto.Builder |
addDcomplexVal(double value)
DT_COMPLEX128.
|
TensorProto.Builder |
addDoubleVal(double value)
DT_DOUBLE.
|
TensorProto.Builder |
addFloatVal(float value)
DT_FLOAT.
|
TensorProto.Builder |
addHalfVal(int value)
DT_HALF, DT_BFLOAT16.
|
TensorProto.Builder |
addInt64Val(long value)
DT_INT64
|
TensorProto.Builder |
addIntVal(int value)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
|
TensorProto.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
TensorProto.Builder |
addResourceHandleVal(int index,
ResourceHandleProto.Builder builderForValue)
DT_RESOURCE
|
TensorProto.Builder |
addResourceHandleVal(int index,
ResourceHandleProto value)
DT_RESOURCE
|
TensorProto.Builder |
addResourceHandleVal(ResourceHandleProto.Builder builderForValue)
DT_RESOURCE
|
TensorProto.Builder |
addResourceHandleVal(ResourceHandleProto value)
DT_RESOURCE
|
ResourceHandleProto.Builder |
addResourceHandleValBuilder()
DT_RESOURCE
|
ResourceHandleProto.Builder |
addResourceHandleValBuilder(int index)
DT_RESOURCE
|
TensorProto.Builder |
addScomplexVal(float value)
DT_COMPLEX64.
|
TensorProto.Builder |
addStringVal(com.google.protobuf.ByteString value)
DT_STRING
|
TensorProto.Builder |
addUint32Val(int value)
DT_UINT32
|
TensorProto.Builder |
addUint64Val(long value)
DT_UINT64
|
TensorProto.Builder |
addVariantVal(int index,
VariantTensorDataProto.Builder builderForValue)
DT_VARIANT
|
TensorProto.Builder |
addVariantVal(int index,
VariantTensorDataProto value)
DT_VARIANT
|
TensorProto.Builder |
addVariantVal(VariantTensorDataProto.Builder builderForValue)
DT_VARIANT
|
TensorProto.Builder |
addVariantVal(VariantTensorDataProto value)
DT_VARIANT
|
VariantTensorDataProto.Builder |
addVariantValBuilder()
DT_VARIANT
|
VariantTensorDataProto.Builder |
addVariantValBuilder(int index)
DT_VARIANT
|
TensorProto |
build() |
TensorProto |
buildPartial() |
TensorProto.Builder |
clear() |
TensorProto.Builder |
clearBoolVal()
DT_BOOL
|
TensorProto.Builder |
clearDcomplexVal()
DT_COMPLEX128.
|
TensorProto.Builder |
clearDoubleVal()
DT_DOUBLE.
|
TensorProto.Builder |
clearDtype()
.tensorflow.DataType dtype = 1; |
TensorProto.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TensorProto.Builder |
clearFloatVal()
DT_FLOAT.
|
TensorProto.Builder |
clearHalfVal()
DT_HALF, DT_BFLOAT16.
|
TensorProto.Builder |
clearInt64Val()
DT_INT64
|
TensorProto.Builder |
clearIntVal()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
|
TensorProto.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TensorProto.Builder |
clearResourceHandleVal()
DT_RESOURCE
|
TensorProto.Builder |
clearScomplexVal()
DT_COMPLEX64.
|
TensorProto.Builder |
clearStringVal()
DT_STRING
|
TensorProto.Builder |
clearTensorContent()
Serialized raw tensor content from either Tensor::AsProtoTensorContent or
memcpy in tensorflow::grpc::EncodeTensorToByteBuffer.
|
TensorProto.Builder |
clearTensorShape()
Shape of the tensor.
|
TensorProto.Builder |
clearUint32Val()
DT_UINT32
|
TensorProto.Builder |
clearUint64Val()
DT_UINT64
|
TensorProto.Builder |
clearVariantVal()
DT_VARIANT
|
TensorProto.Builder |
clearVersionNumber()
Version number.
|
TensorProto.Builder |
clone() |
boolean |
getBoolVal(int index)
DT_BOOL
|
int |
getBoolValCount()
DT_BOOL
|
java.util.List<java.lang.Boolean> |
getBoolValList()
DT_BOOL
|
double |
getDcomplexVal(int index)
DT_COMPLEX128.
|
int |
getDcomplexValCount()
DT_COMPLEX128.
|
java.util.List<java.lang.Double> |
getDcomplexValList()
DT_COMPLEX128.
|
TensorProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getDoubleVal(int index)
DT_DOUBLE.
|
int |
getDoubleValCount()
DT_DOUBLE.
|
java.util.List<java.lang.Double> |
getDoubleValList()
DT_DOUBLE.
|
DataType |
getDtype()
.tensorflow.DataType dtype = 1; |
int |
getDtypeValue()
.tensorflow.DataType dtype = 1; |
float |
getFloatVal(int index)
DT_FLOAT.
|
int |
getFloatValCount()
DT_FLOAT.
|
java.util.List<java.lang.Float> |
getFloatValList()
DT_FLOAT.
|
int |
getHalfVal(int index)
DT_HALF, DT_BFLOAT16.
|
int |
getHalfValCount()
DT_HALF, DT_BFLOAT16.
|
java.util.List<java.lang.Integer> |
getHalfValList()
DT_HALF, DT_BFLOAT16.
|
long |
getInt64Val(int index)
DT_INT64
|
int |
getInt64ValCount()
DT_INT64
|
java.util.List<java.lang.Long> |
getInt64ValList()
DT_INT64
|
int |
getIntVal(int index)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
|
int |
getIntValCount()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
|
java.util.List<java.lang.Integer> |
getIntValList()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
|
ResourceHandleProto |
getResourceHandleVal(int index)
DT_RESOURCE
|
ResourceHandleProto.Builder |
getResourceHandleValBuilder(int index)
DT_RESOURCE
|
java.util.List<ResourceHandleProto.Builder> |
getResourceHandleValBuilderList()
DT_RESOURCE
|
int |
getResourceHandleValCount()
DT_RESOURCE
|
java.util.List<ResourceHandleProto> |
getResourceHandleValList()
DT_RESOURCE
|
ResourceHandleProtoOrBuilder |
getResourceHandleValOrBuilder(int index)
DT_RESOURCE
|
java.util.List<? extends ResourceHandleProtoOrBuilder> |
getResourceHandleValOrBuilderList()
DT_RESOURCE
|
float |
getScomplexVal(int index)
DT_COMPLEX64.
|
int |
getScomplexValCount()
DT_COMPLEX64.
|
java.util.List<java.lang.Float> |
getScomplexValList()
DT_COMPLEX64.
|
com.google.protobuf.ByteString |
getStringVal(int index)
DT_STRING
|
int |
getStringValCount()
DT_STRING
|
java.util.List<com.google.protobuf.ByteString> |
getStringValList()
DT_STRING
|
com.google.protobuf.ByteString |
getTensorContent()
Serialized raw tensor content from either Tensor::AsProtoTensorContent or
memcpy in tensorflow::grpc::EncodeTensorToByteBuffer.
|
TensorShapeProto |
getTensorShape()
Shape of the tensor.
|
TensorShapeProto.Builder |
getTensorShapeBuilder()
Shape of the tensor.
|
TensorShapeProtoOrBuilder |
getTensorShapeOrBuilder()
Shape of the tensor.
|
int |
getUint32Val(int index)
DT_UINT32
|
int |
getUint32ValCount()
DT_UINT32
|
java.util.List<java.lang.Integer> |
getUint32ValList()
DT_UINT32
|
long |
getUint64Val(int index)
DT_UINT64
|
int |
getUint64ValCount()
DT_UINT64
|
java.util.List<java.lang.Long> |
getUint64ValList()
DT_UINT64
|
VariantTensorDataProto |
getVariantVal(int index)
DT_VARIANT
|
VariantTensorDataProto.Builder |
getVariantValBuilder(int index)
DT_VARIANT
|
java.util.List<VariantTensorDataProto.Builder> |
getVariantValBuilderList()
DT_VARIANT
|
int |
getVariantValCount()
DT_VARIANT
|
java.util.List<VariantTensorDataProto> |
getVariantValList()
DT_VARIANT
|
VariantTensorDataProtoOrBuilder |
getVariantValOrBuilder(int index)
DT_VARIANT
|
java.util.List<? extends VariantTensorDataProtoOrBuilder> |
getVariantValOrBuilderList()
DT_VARIANT
|
int |
getVersionNumber()
Version number.
|
boolean |
hasTensorShape()
Shape of the tensor.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TensorProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TensorProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
TensorProto.Builder |
mergeFrom(TensorProto other) |
TensorProto.Builder |
mergeTensorShape(TensorShapeProto value)
Shape of the tensor.
|
TensorProto.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TensorProto.Builder |
removeResourceHandleVal(int index)
DT_RESOURCE
|
TensorProto.Builder |
removeVariantVal(int index)
DT_VARIANT
|
TensorProto.Builder |
setBoolVal(int index,
boolean value)
DT_BOOL
|
TensorProto.Builder |
setDcomplexVal(int index,
double value)
DT_COMPLEX128.
|
TensorProto.Builder |
setDoubleVal(int index,
double value)
DT_DOUBLE.
|
TensorProto.Builder |
setDtype(DataType value)
.tensorflow.DataType dtype = 1; |
TensorProto.Builder |
setDtypeValue(int value)
.tensorflow.DataType dtype = 1; |
TensorProto.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
TensorProto.Builder |
setFloatVal(int index,
float value)
DT_FLOAT.
|
TensorProto.Builder |
setHalfVal(int index,
int value)
DT_HALF, DT_BFLOAT16.
|
TensorProto.Builder |
setInt64Val(int index,
long value)
DT_INT64
|
TensorProto.Builder |
setIntVal(int index,
int value)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
|
TensorProto.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
TensorProto.Builder |
setResourceHandleVal(int index,
ResourceHandleProto.Builder builderForValue)
DT_RESOURCE
|
TensorProto.Builder |
setResourceHandleVal(int index,
ResourceHandleProto value)
DT_RESOURCE
|
TensorProto.Builder |
setScomplexVal(int index,
float value)
DT_COMPLEX64.
|
TensorProto.Builder |
setStringVal(int index,
com.google.protobuf.ByteString value)
DT_STRING
|
TensorProto.Builder |
setTensorContent(com.google.protobuf.ByteString value)
Serialized raw tensor content from either Tensor::AsProtoTensorContent or
memcpy in tensorflow::grpc::EncodeTensorToByteBuffer.
|
TensorProto.Builder |
setTensorShape(TensorShapeProto.Builder builderForValue)
Shape of the tensor.
|
TensorProto.Builder |
setTensorShape(TensorShapeProto value)
Shape of the tensor.
|
TensorProto.Builder |
setUint32Val(int index,
int value)
DT_UINT32
|
TensorProto.Builder |
setUint64Val(int index,
long value)
DT_UINT64
|
TensorProto.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TensorProto.Builder |
setVariantVal(int index,
VariantTensorDataProto.Builder builderForValue)
DT_VARIANT
|
TensorProto.Builder |
setVariantVal(int index,
VariantTensorDataProto value)
DT_VARIANT
|
TensorProto.Builder |
setVersionNumber(int value)
Version number.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>public TensorProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>public TensorProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TensorProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TensorProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TensorProto.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>public TensorProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>public TensorProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>public TensorProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>public TensorProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>public TensorProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>public TensorProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TensorProto.Builder>public TensorProto.Builder mergeFrom(TensorProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>public TensorProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TensorProto.Builder>java.io.IOExceptionpublic int getDtypeValue()
.tensorflow.DataType dtype = 1;getDtypeValue in interface TensorProtoOrBuilderpublic TensorProto.Builder setDtypeValue(int value)
.tensorflow.DataType dtype = 1;value - The enum numeric value on the wire for dtype to set.public DataType getDtype()
.tensorflow.DataType dtype = 1;getDtype in interface TensorProtoOrBuilderpublic TensorProto.Builder setDtype(DataType value)
.tensorflow.DataType dtype = 1;value - The dtype to set.public TensorProto.Builder clearDtype()
.tensorflow.DataType dtype = 1;public boolean hasTensorShape()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.tensorflow.TensorShapeProto tensor_shape = 2;hasTensorShape in interface TensorProtoOrBuilderpublic TensorShapeProto getTensorShape()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.tensorflow.TensorShapeProto tensor_shape = 2;getTensorShape in interface TensorProtoOrBuilderpublic TensorProto.Builder setTensorShape(TensorShapeProto value)
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.tensorflow.TensorShapeProto tensor_shape = 2;public TensorProto.Builder setTensorShape(TensorShapeProto.Builder builderForValue)
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.tensorflow.TensorShapeProto tensor_shape = 2;public TensorProto.Builder mergeTensorShape(TensorShapeProto value)
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.tensorflow.TensorShapeProto tensor_shape = 2;public TensorProto.Builder clearTensorShape()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.tensorflow.TensorShapeProto tensor_shape = 2;public TensorShapeProto.Builder getTensorShapeBuilder()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.tensorflow.TensorShapeProto tensor_shape = 2;public TensorShapeProtoOrBuilder getTensorShapeOrBuilder()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.tensorflow.TensorShapeProto tensor_shape = 2;getTensorShapeOrBuilder in interface TensorProtoOrBuilderpublic int getVersionNumber()
Version number. In version 0, if the "repeated xxx" representations contain only one element, that element is repeated to fill the shape. This makes it easy to represent a constant Tensor with a single value.
int32 version_number = 3;getVersionNumber in interface TensorProtoOrBuilderpublic TensorProto.Builder setVersionNumber(int value)
Version number. In version 0, if the "repeated xxx" representations contain only one element, that element is repeated to fill the shape. This makes it easy to represent a constant Tensor with a single value.
int32 version_number = 3;value - The versionNumber to set.public TensorProto.Builder clearVersionNumber()
Version number. In version 0, if the "repeated xxx" representations contain only one element, that element is repeated to fill the shape. This makes it easy to represent a constant Tensor with a single value.
int32 version_number = 3;public com.google.protobuf.ByteString getTensorContent()
Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation can be used for all tensor types. The purpose of this representation is to reduce serialization overhead during RPC call by avoiding serialization of many repeated small items.
bytes tensor_content = 4;getTensorContent in interface TensorProtoOrBuilderpublic TensorProto.Builder setTensorContent(com.google.protobuf.ByteString value)
Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation can be used for all tensor types. The purpose of this representation is to reduce serialization overhead during RPC call by avoiding serialization of many repeated small items.
bytes tensor_content = 4;value - The tensorContent to set.public TensorProto.Builder clearTensorContent()
Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation can be used for all tensor types. The purpose of this representation is to reduce serialization overhead during RPC call by avoiding serialization of many repeated small items.
bytes tensor_content = 4;public java.util.List<java.lang.Integer> getHalfValList()
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];getHalfValList in interface TensorProtoOrBuilderpublic int getHalfValCount()
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];getHalfValCount in interface TensorProtoOrBuilderpublic int getHalfVal(int index)
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];getHalfVal in interface TensorProtoOrBuilderindex - The index of the element to return.public TensorProto.Builder setHalfVal(int index, int value)
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];index - The index to set the value at.value - The halfVal to set.public TensorProto.Builder addHalfVal(int value)
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];value - The halfVal to add.public TensorProto.Builder addAllHalfVal(java.lang.Iterable<? extends java.lang.Integer> values)
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];values - The halfVal to add.public TensorProto.Builder clearHalfVal()
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];public java.util.List<java.lang.Float> getFloatValList()
DT_FLOAT.
repeated float float_val = 5 [packed = true];getFloatValList in interface TensorProtoOrBuilderpublic int getFloatValCount()
DT_FLOAT.
repeated float float_val = 5 [packed = true];getFloatValCount in interface TensorProtoOrBuilderpublic float getFloatVal(int index)
DT_FLOAT.
repeated float float_val = 5 [packed = true];getFloatVal in interface TensorProtoOrBuilderindex - The index of the element to return.public TensorProto.Builder setFloatVal(int index, float value)
DT_FLOAT.
repeated float float_val = 5 [packed = true];index - The index to set the value at.value - The floatVal to set.public TensorProto.Builder addFloatVal(float value)
DT_FLOAT.
repeated float float_val = 5 [packed = true];value - The floatVal to add.public TensorProto.Builder addAllFloatVal(java.lang.Iterable<? extends java.lang.Float> values)
DT_FLOAT.
repeated float float_val = 5 [packed = true];values - The floatVal to add.public TensorProto.Builder clearFloatVal()
DT_FLOAT.
repeated float float_val = 5 [packed = true];public java.util.List<java.lang.Double> getDoubleValList()
DT_DOUBLE.
repeated double double_val = 6 [packed = true];getDoubleValList in interface TensorProtoOrBuilderpublic int getDoubleValCount()
DT_DOUBLE.
repeated double double_val = 6 [packed = true];getDoubleValCount in interface TensorProtoOrBuilderpublic double getDoubleVal(int index)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];getDoubleVal in interface TensorProtoOrBuilderindex - The index of the element to return.public TensorProto.Builder setDoubleVal(int index, double value)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];index - The index to set the value at.value - The doubleVal to set.public TensorProto.Builder addDoubleVal(double value)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];value - The doubleVal to add.public TensorProto.Builder addAllDoubleVal(java.lang.Iterable<? extends java.lang.Double> values)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];values - The doubleVal to add.public TensorProto.Builder clearDoubleVal()
DT_DOUBLE.
repeated double double_val = 6 [packed = true];public java.util.List<java.lang.Integer> getIntValList()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];getIntValList in interface TensorProtoOrBuilderpublic int getIntValCount()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];getIntValCount in interface TensorProtoOrBuilderpublic int getIntVal(int index)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];getIntVal in interface TensorProtoOrBuilderindex - The index of the element to return.public TensorProto.Builder setIntVal(int index, int value)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];index - The index to set the value at.value - The intVal to set.public TensorProto.Builder addIntVal(int value)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];value - The intVal to add.public TensorProto.Builder addAllIntVal(java.lang.Iterable<? extends java.lang.Integer> values)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];values - The intVal to add.public TensorProto.Builder clearIntVal()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];public java.util.List<com.google.protobuf.ByteString> getStringValList()
DT_STRING
repeated bytes string_val = 8;getStringValList in interface TensorProtoOrBuilderpublic int getStringValCount()
DT_STRING
repeated bytes string_val = 8;getStringValCount in interface TensorProtoOrBuilderpublic com.google.protobuf.ByteString getStringVal(int index)
DT_STRING
repeated bytes string_val = 8;getStringVal in interface TensorProtoOrBuilderindex - The index of the element to return.public TensorProto.Builder setStringVal(int index, com.google.protobuf.ByteString value)
DT_STRING
repeated bytes string_val = 8;index - The index to set the value at.value - The stringVal to set.public TensorProto.Builder addStringVal(com.google.protobuf.ByteString value)
DT_STRING
repeated bytes string_val = 8;value - The stringVal to add.public TensorProto.Builder addAllStringVal(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
DT_STRING
repeated bytes string_val = 8;values - The stringVal to add.public TensorProto.Builder clearStringVal()
DT_STRING
repeated bytes string_val = 8;public java.util.List<java.lang.Float> getScomplexValList()
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];getScomplexValList in interface TensorProtoOrBuilderpublic int getScomplexValCount()
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];getScomplexValCount in interface TensorProtoOrBuilderpublic float getScomplexVal(int index)
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];getScomplexVal in interface TensorProtoOrBuilderindex - The index of the element to return.public TensorProto.Builder setScomplexVal(int index, float value)
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];index - The index to set the value at.value - The scomplexVal to set.public TensorProto.Builder addScomplexVal(float value)
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];value - The scomplexVal to add.public TensorProto.Builder addAllScomplexVal(java.lang.Iterable<? extends java.lang.Float> values)
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];values - The scomplexVal to add.public TensorProto.Builder clearScomplexVal()
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];public java.util.List<java.lang.Long> getInt64ValList()
DT_INT64
repeated int64 int64_val = 10 [packed = true];getInt64ValList in interface TensorProtoOrBuilderpublic int getInt64ValCount()
DT_INT64
repeated int64 int64_val = 10 [packed = true];getInt64ValCount in interface TensorProtoOrBuilderpublic long getInt64Val(int index)
DT_INT64
repeated int64 int64_val = 10 [packed = true];getInt64Val in interface TensorProtoOrBuilderindex - The index of the element to return.public TensorProto.Builder setInt64Val(int index, long value)
DT_INT64
repeated int64 int64_val = 10 [packed = true];index - The index to set the value at.value - The int64Val to set.public TensorProto.Builder addInt64Val(long value)
DT_INT64
repeated int64 int64_val = 10 [packed = true];value - The int64Val to add.public TensorProto.Builder addAllInt64Val(java.lang.Iterable<? extends java.lang.Long> values)
DT_INT64
repeated int64 int64_val = 10 [packed = true];values - The int64Val to add.public TensorProto.Builder clearInt64Val()
DT_INT64
repeated int64 int64_val = 10 [packed = true];public java.util.List<java.lang.Boolean> getBoolValList()
DT_BOOL
repeated bool bool_val = 11 [packed = true];getBoolValList in interface TensorProtoOrBuilderpublic int getBoolValCount()
DT_BOOL
repeated bool bool_val = 11 [packed = true];getBoolValCount in interface TensorProtoOrBuilderpublic boolean getBoolVal(int index)
DT_BOOL
repeated bool bool_val = 11 [packed = true];getBoolVal in interface TensorProtoOrBuilderindex - The index of the element to return.public TensorProto.Builder setBoolVal(int index, boolean value)
DT_BOOL
repeated bool bool_val = 11 [packed = true];index - The index to set the value at.value - The boolVal to set.public TensorProto.Builder addBoolVal(boolean value)
DT_BOOL
repeated bool bool_val = 11 [packed = true];value - The boolVal to add.public TensorProto.Builder addAllBoolVal(java.lang.Iterable<? extends java.lang.Boolean> values)
DT_BOOL
repeated bool bool_val = 11 [packed = true];values - The boolVal to add.public TensorProto.Builder clearBoolVal()
DT_BOOL
repeated bool bool_val = 11 [packed = true];public java.util.List<java.lang.Double> getDcomplexValList()
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];getDcomplexValList in interface TensorProtoOrBuilderpublic int getDcomplexValCount()
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];getDcomplexValCount in interface TensorProtoOrBuilderpublic double getDcomplexVal(int index)
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];getDcomplexVal in interface TensorProtoOrBuilderindex - The index of the element to return.public TensorProto.Builder setDcomplexVal(int index, double value)
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];index - The index to set the value at.value - The dcomplexVal to set.public TensorProto.Builder addDcomplexVal(double value)
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];value - The dcomplexVal to add.public TensorProto.Builder addAllDcomplexVal(java.lang.Iterable<? extends java.lang.Double> values)
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];values - The dcomplexVal to add.public TensorProto.Builder clearDcomplexVal()
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];public java.util.List<ResourceHandleProto> getResourceHandleValList()
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;getResourceHandleValList in interface TensorProtoOrBuilderpublic int getResourceHandleValCount()
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;getResourceHandleValCount in interface TensorProtoOrBuilderpublic ResourceHandleProto getResourceHandleVal(int index)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;getResourceHandleVal in interface TensorProtoOrBuilderpublic TensorProto.Builder setResourceHandleVal(int index, ResourceHandleProto value)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public TensorProto.Builder setResourceHandleVal(int index, ResourceHandleProto.Builder builderForValue)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public TensorProto.Builder addResourceHandleVal(ResourceHandleProto value)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public TensorProto.Builder addResourceHandleVal(int index, ResourceHandleProto value)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public TensorProto.Builder addResourceHandleVal(ResourceHandleProto.Builder builderForValue)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public TensorProto.Builder addResourceHandleVal(int index, ResourceHandleProto.Builder builderForValue)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public TensorProto.Builder addAllResourceHandleVal(java.lang.Iterable<? extends ResourceHandleProto> values)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public TensorProto.Builder clearResourceHandleVal()
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public TensorProto.Builder removeResourceHandleVal(int index)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public ResourceHandleProto.Builder getResourceHandleValBuilder(int index)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public ResourceHandleProtoOrBuilder getResourceHandleValOrBuilder(int index)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;getResourceHandleValOrBuilder in interface TensorProtoOrBuilderpublic java.util.List<? extends ResourceHandleProtoOrBuilder> getResourceHandleValOrBuilderList()
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;getResourceHandleValOrBuilderList in interface TensorProtoOrBuilderpublic ResourceHandleProto.Builder addResourceHandleValBuilder()
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public ResourceHandleProto.Builder addResourceHandleValBuilder(int index)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public java.util.List<ResourceHandleProto.Builder> getResourceHandleValBuilderList()
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;public java.util.List<VariantTensorDataProto> getVariantValList()
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;getVariantValList in interface TensorProtoOrBuilderpublic int getVariantValCount()
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;getVariantValCount in interface TensorProtoOrBuilderpublic VariantTensorDataProto getVariantVal(int index)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;getVariantVal in interface TensorProtoOrBuilderpublic TensorProto.Builder setVariantVal(int index, VariantTensorDataProto value)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public TensorProto.Builder setVariantVal(int index, VariantTensorDataProto.Builder builderForValue)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public TensorProto.Builder addVariantVal(VariantTensorDataProto value)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public TensorProto.Builder addVariantVal(int index, VariantTensorDataProto value)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public TensorProto.Builder addVariantVal(VariantTensorDataProto.Builder builderForValue)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public TensorProto.Builder addVariantVal(int index, VariantTensorDataProto.Builder builderForValue)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public TensorProto.Builder addAllVariantVal(java.lang.Iterable<? extends VariantTensorDataProto> values)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public TensorProto.Builder clearVariantVal()
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public TensorProto.Builder removeVariantVal(int index)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public VariantTensorDataProto.Builder getVariantValBuilder(int index)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public VariantTensorDataProtoOrBuilder getVariantValOrBuilder(int index)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;getVariantValOrBuilder in interface TensorProtoOrBuilderpublic java.util.List<? extends VariantTensorDataProtoOrBuilder> getVariantValOrBuilderList()
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;getVariantValOrBuilderList in interface TensorProtoOrBuilderpublic VariantTensorDataProto.Builder addVariantValBuilder()
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public VariantTensorDataProto.Builder addVariantValBuilder(int index)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public java.util.List<VariantTensorDataProto.Builder> getVariantValBuilderList()
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;public java.util.List<java.lang.Integer> getUint32ValList()
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];getUint32ValList in interface TensorProtoOrBuilderpublic int getUint32ValCount()
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];getUint32ValCount in interface TensorProtoOrBuilderpublic int getUint32Val(int index)
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];getUint32Val in interface TensorProtoOrBuilderindex - The index of the element to return.public TensorProto.Builder setUint32Val(int index, int value)
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];index - The index to set the value at.value - The uint32Val to set.public TensorProto.Builder addUint32Val(int value)
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];value - The uint32Val to add.public TensorProto.Builder addAllUint32Val(java.lang.Iterable<? extends java.lang.Integer> values)
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];values - The uint32Val to add.public TensorProto.Builder clearUint32Val()
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];public java.util.List<java.lang.Long> getUint64ValList()
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];getUint64ValList in interface TensorProtoOrBuilderpublic int getUint64ValCount()
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];getUint64ValCount in interface TensorProtoOrBuilderpublic long getUint64Val(int index)
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];getUint64Val in interface TensorProtoOrBuilderindex - The index of the element to return.public TensorProto.Builder setUint64Val(int index, long value)
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];index - The index to set the value at.value - The uint64Val to set.public TensorProto.Builder addUint64Val(long value)
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];value - The uint64Val to add.public TensorProto.Builder addAllUint64Val(java.lang.Iterable<? extends java.lang.Long> values)
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];values - The uint64Val to add.public TensorProto.Builder clearUint64Val()
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];public final TensorProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>public final TensorProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>