TensorProto.Builder

public static final class TensorProto.Builder

 Protocol buffer representing a tensor.
 
Protobuf type tensorflow.TensorProto

Public Methods

TensorProto.Builder
addAllBoolVal(Iterable<? extends Boolean> values)
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
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, DT_BFLOAT16.
TensorProto.Builder
addAllInt64Val(Iterable<? extends Long> values)
 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];
TensorProto.Builder
addAllIntVal(Iterable<? extends Integer> values)
 DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
TensorProto.Builder
addAllResourceHandleVal(Iterable<? extends ResourceHandleProto> values)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
TensorProto.Builder
addAllScomplexVal(Iterable<? extends Float> values)
 DT_COMPLEX64.
TensorProto.Builder
addAllStringVal(Iterable<? extends ByteString> values)
 DT_STRING
 
repeated bytes string_val = 8;
TensorProto.Builder
addAllUint32Val(Iterable<? extends Integer> values)
 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];
TensorProto.Builder
addAllUint64Val(Iterable<? extends Long> values)
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
TensorProto.Builder
addAllVariantVal(Iterable<? extends VariantTensorDataProto> values)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
TensorProto.Builder
addBoolVal(boolean value)
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
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
 
repeated int64 int64_val = 10 [packed = true];
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, ResourceHandleProto.Builder builderForValue)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
TensorProto.Builder
addResourceHandleVal(int index, ResourceHandleProto value)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
TensorProto.Builder
addResourceHandleVal(ResourceHandleProto value)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
TensorProto.Builder
addResourceHandleVal(ResourceHandleProto.Builder builderForValue)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
ResourceHandleProto.Builder
addResourceHandleValBuilder(int index)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
ResourceHandleProto.Builder
addResourceHandleValBuilder()
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
TensorProto.Builder
addScomplexVal(float value)
 DT_COMPLEX64.
TensorProto.Builder
addStringVal(com.google.protobuf.ByteString value)
 DT_STRING
 
repeated bytes string_val = 8;
TensorProto.Builder
addUint32Val(int value)
 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];
TensorProto.Builder
addUint64Val(long value)
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
TensorProto.Builder
addVariantVal(VariantTensorDataProto value)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
TensorProto.Builder
addVariantVal(int index, VariantTensorDataProto.Builder builderForValue)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
TensorProto.Builder
addVariantVal(int index, VariantTensorDataProto value)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
TensorProto.Builder
addVariantVal(VariantTensorDataProto.Builder builderForValue)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
VariantTensorDataProto.Builder
addVariantValBuilder(int index)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
VariantTensorDataProto.Builder
addVariantValBuilder()
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
TensorProto
build()
TensorProto
TensorProto.Builder
clear()
TensorProto.Builder
clearBoolVal()
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
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
 
repeated int64 int64_val = 10 [packed = true];
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
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
TensorProto.Builder
clearScomplexVal()
 DT_COMPLEX64.
TensorProto.Builder
clearStringVal()
 DT_STRING
 
repeated bytes string_val = 8;
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
 
repeated uint32 uint32_val = 16 [packed = true];
TensorProto.Builder
clearUint64Val()
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
TensorProto.Builder
clearVariantVal()
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
TensorProto.Builder
clearVersionNumber()
 Version number.
TensorProto.Builder
clone()
boolean
getBoolVal(int index)
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
int
getBoolValCount()
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
List<Boolean>
getBoolValList()
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
double
getDcomplexVal(int index)
 DT_COMPLEX128.
int
getDcomplexValCount()
 DT_COMPLEX128.
List<Double>
getDcomplexValList()
 DT_COMPLEX128.
TensorProto
final static com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
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, DT_BFLOAT16.
int
getHalfValCount()
 DT_HALF, DT_BFLOAT16.
List<Integer>
getHalfValList()
 DT_HALF, DT_BFLOAT16.
long
getInt64Val(int index)
 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];
int
getInt64ValCount()
 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];
List<Long>
getInt64ValList()
 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];
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.
ResourceHandleProto
getResourceHandleVal(int index)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
ResourceHandleProto.Builder
getResourceHandleValBuilder(int index)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
List<ResourceHandleProto.Builder>
getResourceHandleValBuilderList()
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
int
getResourceHandleValCount()
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
List<ResourceHandleProto>
getResourceHandleValList()
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
ResourceHandleProtoOrBuilder
getResourceHandleValOrBuilder(int index)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
List<? extends ResourceHandleProtoOrBuilder>
getResourceHandleValOrBuilderList()
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
float
getScomplexVal(int index)
 DT_COMPLEX64.
int
getScomplexValCount()
 DT_COMPLEX64.
List<Float>
getScomplexValList()
 DT_COMPLEX64.
com.google.protobuf.ByteString
getStringVal(int index)
 DT_STRING
 
repeated bytes string_val = 8;
int
getStringValCount()
 DT_STRING
 
repeated bytes string_val = 8;
List<ByteString>
getStringValList()
 DT_STRING
 
repeated bytes string_val = 8;
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
 
repeated uint32 uint32_val = 16 [packed = true];
int
getUint32ValCount()
 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];
List<Integer>
getUint32ValList()
 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];
long
getUint64Val(int index)
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
int
getUint64ValCount()
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
List<Long>
getUint64ValList()
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
VariantTensorDataProto
getVariantVal(int index)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
VariantTensorDataProto.Builder
getVariantValBuilder(int index)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
List<VariantTensorDataProto.Builder>
getVariantValBuilderList()
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
int
getVariantValCount()
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
List<VariantTensorDataProto>
getVariantValList()
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
VariantTensorDataProtoOrBuilder
getVariantValOrBuilder(int index)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
List<? extends VariantTensorDataProtoOrBuilder>
getVariantValOrBuilderList()
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
int
getVersionNumber()
 Version number.
boolean
hasTensorShape()
 Shape of the tensor.
final boolean
TensorProto.Builder
mergeFrom(com.google.protobuf.Message other)
TensorProto.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorProto.Builder
mergeTensorShape(TensorShapeProto value)
 Shape of the tensor.
final TensorProto.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TensorProto.Builder
removeResourceHandleVal(int index)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
TensorProto.Builder
removeVariantVal(int index)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
TensorProto.Builder
setBoolVal(int index, boolean value)
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
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, DT_BFLOAT16.
TensorProto.Builder
setInt64Val(int index, long value)
 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];
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, ResourceHandleProto.Builder builderForValue)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
TensorProto.Builder
setResourceHandleVal(int index, ResourceHandleProto value)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
TensorProto.Builder
setScomplexVal(int index, float value)
 DT_COMPLEX64.
TensorProto.Builder
setStringVal(int index, com.google.protobuf.ByteString value)
 DT_STRING
 
repeated bytes string_val = 8;
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 value)
 Shape of the tensor.
TensorProto.Builder
setTensorShape(TensorShapeProto.Builder builderForValue)
 Shape of the tensor.
TensorProto.Builder
setUint32Val(int index, int value)
 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];
TensorProto.Builder
setUint64Val(int index, long value)
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
final TensorProto.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TensorProto.Builder
setVariantVal(int index, VariantTensorDataProto value)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
TensorProto.Builder
setVariantVal(int index, VariantTensorDataProto.Builder builderForValue)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
TensorProto.Builder
setVersionNumber(int value)
 Version number.

Inherited Methods

Public Methods

public TensorProto.Builder addAllBoolVal (Iterable<? extends Boolean> values)

 DT_BOOL
 
repeated bool bool_val = 11 [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 addAllDoubleVal (Iterable<? extends Double> values)

 DT_DOUBLE.
 
repeated double double_val = 6 [packed = true];

public TensorProto.Builder addAllFloatVal (Iterable<? extends Float> values)

 DT_FLOAT.
 
repeated float float_val = 5 [packed = true];

public TensorProto.Builder addAllHalfVal (Iterable<? extends 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];

public TensorProto.Builder addAllInt64Val (Iterable<? extends Long> values)

 DT_INT64
 
repeated int64 int64_val = 10 [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 addAllResourceHandleVal (Iterable<? extends ResourceHandleProto> values)

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

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 addAllStringVal (Iterable<? extends ByteString> values)

 DT_STRING
 
repeated bytes string_val = 8;

public TensorProto.Builder addAllUint32Val (Iterable<? extends Integer> values)

 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];

public TensorProto.Builder addAllUint64Val (Iterable<? extends Long> values)

 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];

public TensorProto.Builder addAllVariantVal (Iterable<? extends VariantTensorDataProto> values)

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

public TensorProto.Builder addBoolVal (boolean value)

 DT_BOOL
 
repeated bool bool_val = 11 [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 addDoubleVal (double value)

 DT_DOUBLE.
 
repeated double double_val = 6 [packed = true];

public TensorProto.Builder addFloatVal (float value)

 DT_FLOAT.
 
repeated float float_val = 5 [packed = true];

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];

public TensorProto.Builder addInt64Val (long value)

 DT_INT64
 
repeated int64 int64_val = 10 [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 addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public TensorProto.Builder addResourceHandleVal (int index, ResourceHandleProto.Builder builderForValue)

 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 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 ResourceHandleProto.Builder addResourceHandleValBuilder (int index)

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

public ResourceHandleProto.Builder addResourceHandleValBuilder ()

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

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 addStringVal (com.google.protobuf.ByteString value)

 DT_STRING
 
repeated bytes string_val = 8;

public TensorProto.Builder addUint32Val (int value)

 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];

public TensorProto.Builder addUint64Val (long value)

 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];

public TensorProto.Builder addVariantVal (VariantTensorDataProto value)

 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 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 VariantTensorDataProto.Builder addVariantValBuilder (int index)

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

public VariantTensorDataProto.Builder addVariantValBuilder ()

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

public TensorProto build ()

public TensorProto buildPartial ()

public TensorProto.Builder clear ()

public TensorProto.Builder clearBoolVal ()

 DT_BOOL
 
repeated bool bool_val = 11 [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 TensorProto.Builder clearDoubleVal ()

 DT_DOUBLE.
 
repeated double double_val = 6 [packed = true];

public TensorProto.Builder clearDtype ()

.tensorflow.DataType dtype = 1;

public TensorProto.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)

public TensorProto.Builder clearFloatVal ()

 DT_FLOAT.
 
repeated float float_val = 5 [packed = true];

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 TensorProto.Builder clearInt64Val ()

 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];

public TensorProto.Builder clearIntVal ()

 DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
 
repeated int32 int_val = 7 [packed = true];

public TensorProto.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public TensorProto.Builder clearResourceHandleVal ()

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

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 TensorProto.Builder clearStringVal ()

 DT_STRING
 
repeated bytes string_val = 8;

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 TensorProto.Builder clearTensorShape ()

 Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
 
.tensorflow.TensorShapeProto tensor_shape = 2;

public TensorProto.Builder clearUint32Val ()

 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];

public TensorProto.Builder clearUint64Val ()

 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];

public TensorProto.Builder clearVariantVal ()

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

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 TensorProto.Builder clone ()

public boolean getBoolVal (int index)

 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];

public int getBoolValCount ()

 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];

public List<Boolean> getBoolValList ()

 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];

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];

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];

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];

public TensorProto getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

public double getDoubleVal (int index)

 DT_DOUBLE.
 
repeated double double_val = 6 [packed = true];

public int getDoubleValCount ()

 DT_DOUBLE.
 
repeated double double_val = 6 [packed = true];

public List<Double> getDoubleValList ()

 DT_DOUBLE.
 
repeated double double_val = 6 [packed = true];

public DataType getDtype ()

.tensorflow.DataType dtype = 1;

public int getDtypeValue ()

.tensorflow.DataType dtype = 1;

public float getFloatVal (int index)

 DT_FLOAT.
 
repeated float float_val = 5 [packed = true];

public int getFloatValCount ()

 DT_FLOAT.
 
repeated float float_val = 5 [packed = true];

public List<Float> getFloatValList ()

 DT_FLOAT.
 
repeated float float_val = 5 [packed = true];

public 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];

public 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];

public List<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];

public long getInt64Val (int index)

 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];

public int getInt64ValCount ()

 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];

public List<Long> getInt64ValList ()

 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];

public int getIntVal (int index)

 DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
 
repeated int32 int_val = 7 [packed = true];

public int getIntValCount ()

 DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
 
repeated int32 int_val = 7 [packed = true];

public List<Integer> getIntValList ()

 DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
 
repeated int32 int_val = 7 [packed = true];

public ResourceHandleProto getResourceHandleVal (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 List<ResourceHandleProto.Builder> getResourceHandleValBuilderList ()

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

public int getResourceHandleValCount ()

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

public List<ResourceHandleProto> getResourceHandleValList ()

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

public ResourceHandleProtoOrBuilder getResourceHandleValOrBuilder (int index)

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

public List<? extends ResourceHandleProtoOrBuilder> getResourceHandleValOrBuilderList ()

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

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];

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];

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];

public com.google.protobuf.ByteString getStringVal (int index)

 DT_STRING
 
repeated bytes string_val = 8;

public int getStringValCount ()

 DT_STRING
 
repeated bytes string_val = 8;

public List<ByteString> getStringValList ()

 DT_STRING
 
repeated bytes string_val = 8;

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;

public TensorShapeProto getTensorShape ()

 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;

public int getUint32Val (int index)

 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];

public int getUint32ValCount ()

 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];

public List<Integer> getUint32ValList ()

 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];

public long getUint64Val (int index)

 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];

public int getUint64ValCount ()

 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];

public List<Long> getUint64ValList ()

 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];

public VariantTensorDataProto getVariantVal (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 List<VariantTensorDataProto.Builder> getVariantValBuilderList ()

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

public int getVariantValCount ()

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

public List<VariantTensorDataProto> getVariantValList ()

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

public VariantTensorDataProtoOrBuilder getVariantValOrBuilder (int index)

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

public List<? extends VariantTensorDataProtoOrBuilder> getVariantValOrBuilderList ()

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

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;

public boolean hasTensorShape ()

 Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
 
.tensorflow.TensorShapeProto tensor_shape = 2;

public final boolean isInitialized ()

public TensorProto.Builder mergeFrom (com.google.protobuf.Message other)

public TensorProto.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public TensorProto.Builder mergeTensorShape (TensorShapeProto value)

 Shape of the tensor.  TODO(touts): sort out the 0-rank issues.
 
.tensorflow.TensorShapeProto tensor_shape = 2;

public final TensorProto.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public TensorProto.Builder removeResourceHandleVal (int index)

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

public TensorProto.Builder removeVariantVal (int index)

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

public TensorProto.Builder setBoolVal (int index, boolean value)

 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];

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 setDoubleVal (int index, double value)

 DT_DOUBLE.
 
repeated double double_val = 6 [packed = true];

public TensorProto.Builder setDtype (DataType value)

.tensorflow.DataType dtype = 1;

public TensorProto.Builder setDtypeValue (int value)

.tensorflow.DataType dtype = 1;

public TensorProto.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)

public TensorProto.Builder setFloatVal (int index, float value)

 DT_FLOAT.
 
repeated float float_val = 5 [packed = true];

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];

public TensorProto.Builder setInt64Val (int index, long value)

 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];

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 setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)

public TensorProto.Builder setResourceHandleVal (int index, ResourceHandleProto.Builder builderForValue)

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

public TensorProto.Builder setResourceHandleVal (int index, ResourceHandleProto value)

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

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 setStringVal (int index, com.google.protobuf.ByteString value)

 DT_STRING
 
repeated bytes string_val = 8;

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 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 setUint32Val (int index, int value)

 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];

public TensorProto.Builder setUint64Val (int index, long value)

 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];

public final TensorProto.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)

public 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 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;