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(Iterable<? extends Boolean> values)
DT_BOOL
|
TensorProto.Builder |
addAllDcomplexVal(Iterable<? extends Double> values)
DT_COMPLEX128.
|
TensorProto.Builder |
addAllDoubleVal(Iterable<? extends Double> values)
DT_DOUBLE.
|
TensorProto.Builder |
addAllFloatVal(Iterable<? extends Float> values)
DT_FLOAT.
|
TensorProto.Builder |
addAllHalfVal(Iterable<? extends Integer> values)
DT_HALF.
|
TensorProto.Builder |
addAllInt64Val(Iterable<? extends Long> values)
DT_INT64
|
TensorProto.Builder |
addAllIntVal(Iterable<? extends Integer> values)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
|
TensorProto.Builder |
addAllResourceHandleVal(Iterable<? extends ResourceHandle> values)
DT_RESOURCE
|
TensorProto.Builder |
addAllScomplexVal(Iterable<? extends Float> values)
DT_COMPLEX64.
|
TensorProto.Builder |
addAllStringVal(Iterable<? extends com.google.protobuf.ByteString> values)
DT_STRING
|
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.
|
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,
Object value) |
TensorProto.Builder |
addResourceHandleVal(int index,
ResourceHandle.Builder builderForValue)
DT_RESOURCE
|
TensorProto.Builder |
addResourceHandleVal(int index,
ResourceHandle value)
DT_RESOURCE
|
TensorProto.Builder |
addResourceHandleVal(ResourceHandle.Builder builderForValue)
DT_RESOURCE
|
TensorProto.Builder |
addResourceHandleVal(ResourceHandle value)
DT_RESOURCE
|
ResourceHandle.Builder |
addResourceHandleValBuilder()
DT_RESOURCE
|
ResourceHandle.Builder |
addResourceHandleValBuilder(int index)
DT_RESOURCE
|
TensorProto.Builder |
addScomplexVal(float value)
DT_COMPLEX64.
|
TensorProto.Builder |
addStringVal(com.google.protobuf.ByteString value)
DT_STRING
|
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.
|
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 |
clearVersionNumber()
Version number.
|
TensorProto.Builder |
clone() |
boolean |
getBoolVal(int index)
DT_BOOL
|
int |
getBoolValCount()
DT_BOOL
|
List<Boolean> |
getBoolValList()
DT_BOOL
|
double |
getDcomplexVal(int index)
DT_COMPLEX128.
|
int |
getDcomplexValCount()
DT_COMPLEX128.
|
List<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.
|
List<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.
|
List<Float> |
getFloatValList()
DT_FLOAT.
|
int |
getHalfVal(int index)
DT_HALF.
|
int |
getHalfValCount()
DT_HALF.
|
List<Integer> |
getHalfValList()
DT_HALF.
|
long |
getInt64Val(int index)
DT_INT64
|
int |
getInt64ValCount()
DT_INT64
|
List<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.
|
List<Integer> |
getIntValList()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
|
ResourceHandle |
getResourceHandleVal(int index)
DT_RESOURCE
|
ResourceHandle.Builder |
getResourceHandleValBuilder(int index)
DT_RESOURCE
|
List<ResourceHandle.Builder> |
getResourceHandleValBuilderList()
DT_RESOURCE
|
int |
getResourceHandleValCount()
DT_RESOURCE
|
List<ResourceHandle> |
getResourceHandleValList()
DT_RESOURCE
|
ResourceHandleOrBuilder |
getResourceHandleValOrBuilder(int index)
DT_RESOURCE
|
List<? extends ResourceHandleOrBuilder> |
getResourceHandleValOrBuilderList()
DT_RESOURCE
|
float |
getScomplexVal(int index)
DT_COMPLEX64.
|
int |
getScomplexValCount()
DT_COMPLEX64.
|
List<Float> |
getScomplexValList()
DT_COMPLEX64.
|
com.google.protobuf.ByteString |
getStringVal(int index)
DT_STRING
|
int |
getStringValCount()
DT_STRING
|
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 |
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 |
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,
Object value) |
TensorProto.Builder |
setFloatVal(int index,
float value)
DT_FLOAT.
|
TensorProto.Builder |
setHalfVal(int index,
int value)
DT_HALF.
|
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,
Object value) |
TensorProto.Builder |
setResourceHandleVal(int index,
ResourceHandle.Builder builderForValue)
DT_RESOURCE
|
TensorProto.Builder |
setResourceHandleVal(int index,
ResourceHandle 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 |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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, parseUnknownField
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
public TensorProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TensorProto build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TensorProto buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TensorProto.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
public TensorProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
public TensorProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
public TensorProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
public TensorProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TensorProto.Builder>
IOException
public int getDtypeValue()
.tensorflow.DataType dtype = 1;
getDtypeValue
in interface TensorProtoOrBuilder
public TensorProto.Builder setDtypeValue(int value)
.tensorflow.DataType dtype = 1;
public DataType getDtype()
.tensorflow.DataType dtype = 1;
getDtype
in interface TensorProtoOrBuilder
public TensorProto.Builder setDtype(DataType value)
.tensorflow.DataType dtype = 1;
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 TensorProtoOrBuilder
public TensorShapeProto getTensorShape()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.tensorflow.TensorShapeProto tensor_shape = 2;
getTensorShape
in interface TensorProtoOrBuilder
public 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 TensorProtoOrBuilder
public 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 TensorProtoOrBuilder
public 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;
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 TensorProtoOrBuilder
public 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;
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 List<Integer> getHalfValList()
DT_HALF. 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 TensorProtoOrBuilder
public int getHalfValCount()
DT_HALF. 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 TensorProtoOrBuilder
public int getHalfVal(int index)
DT_HALF. 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 TensorProtoOrBuilder
public TensorProto.Builder setHalfVal(int index, int value)
DT_HALF. 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 TensorProto.Builder addHalfVal(int value)
DT_HALF. 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 TensorProto.Builder addAllHalfVal(Iterable<? extends Integer> values)
DT_HALF. 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 TensorProto.Builder clearHalfVal()
DT_HALF. 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 List<Float> getFloatValList()
DT_FLOAT.
repeated float float_val = 5 [packed = true];
getFloatValList
in interface TensorProtoOrBuilder
public int getFloatValCount()
DT_FLOAT.
repeated float float_val = 5 [packed = true];
getFloatValCount
in interface TensorProtoOrBuilder
public float getFloatVal(int index)
DT_FLOAT.
repeated float float_val = 5 [packed = true];
getFloatVal
in interface TensorProtoOrBuilder
public TensorProto.Builder setFloatVal(int index, float value)
DT_FLOAT.
repeated float float_val = 5 [packed = true];
public TensorProto.Builder addFloatVal(float value)
DT_FLOAT.
repeated float float_val = 5 [packed = true];
public TensorProto.Builder addAllFloatVal(Iterable<? extends Float> values)
DT_FLOAT.
repeated float float_val = 5 [packed = true];
public TensorProto.Builder clearFloatVal()
DT_FLOAT.
repeated float float_val = 5 [packed = true];
public List<Double> getDoubleValList()
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
getDoubleValList
in interface TensorProtoOrBuilder
public int getDoubleValCount()
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
getDoubleValCount
in interface TensorProtoOrBuilder
public double getDoubleVal(int index)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
getDoubleVal
in interface TensorProtoOrBuilder
public TensorProto.Builder setDoubleVal(int index, double value)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
public TensorProto.Builder addDoubleVal(double value)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
public TensorProto.Builder addAllDoubleVal(Iterable<? extends Double> values)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
public TensorProto.Builder clearDoubleVal()
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
public List<Integer> getIntValList()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
getIntValList
in interface TensorProtoOrBuilder
public int getIntValCount()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
getIntValCount
in interface TensorProtoOrBuilder
public int getIntVal(int index)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
getIntVal
in interface TensorProtoOrBuilder
public TensorProto.Builder setIntVal(int index, int value)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
public TensorProto.Builder addIntVal(int value)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
public TensorProto.Builder addAllIntVal(Iterable<? extends Integer> values)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
public TensorProto.Builder clearIntVal()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
public List<com.google.protobuf.ByteString> getStringValList()
DT_STRING
repeated bytes string_val = 8;
getStringValList
in interface TensorProtoOrBuilder
public int getStringValCount()
DT_STRING
repeated bytes string_val = 8;
getStringValCount
in interface TensorProtoOrBuilder
public com.google.protobuf.ByteString getStringVal(int index)
DT_STRING
repeated bytes string_val = 8;
getStringVal
in interface TensorProtoOrBuilder
public TensorProto.Builder setStringVal(int index, com.google.protobuf.ByteString value)
DT_STRING
repeated bytes string_val = 8;
public TensorProto.Builder addStringVal(com.google.protobuf.ByteString value)
DT_STRING
repeated bytes string_val = 8;
public TensorProto.Builder addAllStringVal(Iterable<? extends com.google.protobuf.ByteString> values)
DT_STRING
repeated bytes string_val = 8;
public TensorProto.Builder clearStringVal()
DT_STRING
repeated bytes string_val = 8;
public List<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 TensorProtoOrBuilder
public 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 TensorProtoOrBuilder
public 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 TensorProtoOrBuilder
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];
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];
public TensorProto.Builder addAllScomplexVal(Iterable<? extends 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];
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 List<Long> getInt64ValList()
DT_INT64
repeated int64 int64_val = 10 [packed = true];
getInt64ValList
in interface TensorProtoOrBuilder
public int getInt64ValCount()
DT_INT64
repeated int64 int64_val = 10 [packed = true];
getInt64ValCount
in interface TensorProtoOrBuilder
public long getInt64Val(int index)
DT_INT64
repeated int64 int64_val = 10 [packed = true];
getInt64Val
in interface TensorProtoOrBuilder
public TensorProto.Builder setInt64Val(int index, long value)
DT_INT64
repeated int64 int64_val = 10 [packed = true];
public TensorProto.Builder addInt64Val(long value)
DT_INT64
repeated int64 int64_val = 10 [packed = true];
public TensorProto.Builder addAllInt64Val(Iterable<? extends Long> values)
DT_INT64
repeated int64 int64_val = 10 [packed = true];
public TensorProto.Builder clearInt64Val()
DT_INT64
repeated int64 int64_val = 10 [packed = true];
public List<Boolean> getBoolValList()
DT_BOOL
repeated bool bool_val = 11 [packed = true];
getBoolValList
in interface TensorProtoOrBuilder
public int getBoolValCount()
DT_BOOL
repeated bool bool_val = 11 [packed = true];
getBoolValCount
in interface TensorProtoOrBuilder
public boolean getBoolVal(int index)
DT_BOOL
repeated bool bool_val = 11 [packed = true];
getBoolVal
in interface TensorProtoOrBuilder
public TensorProto.Builder setBoolVal(int index, boolean value)
DT_BOOL
repeated bool bool_val = 11 [packed = true];
public TensorProto.Builder addBoolVal(boolean value)
DT_BOOL
repeated bool bool_val = 11 [packed = true];
public TensorProto.Builder addAllBoolVal(Iterable<? extends Boolean> values)
DT_BOOL
repeated bool bool_val = 11 [packed = true];
public TensorProto.Builder clearBoolVal()
DT_BOOL
repeated bool bool_val = 11 [packed = true];
public List<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 TensorProtoOrBuilder
public 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 TensorProtoOrBuilder
public 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 TensorProtoOrBuilder
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];
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];
public TensorProto.Builder addAllDcomplexVal(Iterable<? extends 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];
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 List<ResourceHandle> getResourceHandleValList()
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
getResourceHandleValList
in interface TensorProtoOrBuilder
public int getResourceHandleValCount()
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
getResourceHandleValCount
in interface TensorProtoOrBuilder
public ResourceHandle getResourceHandleVal(int index)
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
getResourceHandleVal
in interface TensorProtoOrBuilder
public TensorProto.Builder setResourceHandleVal(int index, ResourceHandle value)
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public TensorProto.Builder setResourceHandleVal(int index, ResourceHandle.Builder builderForValue)
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public TensorProto.Builder addResourceHandleVal(ResourceHandle value)
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public TensorProto.Builder addResourceHandleVal(int index, ResourceHandle value)
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public TensorProto.Builder addResourceHandleVal(ResourceHandle.Builder builderForValue)
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public TensorProto.Builder addResourceHandleVal(int index, ResourceHandle.Builder builderForValue)
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public TensorProto.Builder addAllResourceHandleVal(Iterable<? extends ResourceHandle> values)
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public TensorProto.Builder clearResourceHandleVal()
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public TensorProto.Builder removeResourceHandleVal(int index)
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public ResourceHandle.Builder getResourceHandleValBuilder(int index)
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public ResourceHandleOrBuilder getResourceHandleValOrBuilder(int index)
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
getResourceHandleValOrBuilder
in interface TensorProtoOrBuilder
public List<? extends ResourceHandleOrBuilder> getResourceHandleValOrBuilderList()
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
getResourceHandleValOrBuilderList
in interface TensorProtoOrBuilder
public ResourceHandle.Builder addResourceHandleValBuilder()
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public ResourceHandle.Builder addResourceHandleValBuilder(int index)
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public List<ResourceHandle.Builder> getResourceHandleValBuilderList()
DT_RESOURCE
repeated .tensorflow.ResourceHandle resource_handle_val = 14;
public final TensorProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
Copyright © 2015–2017. All rights reserved.