Package org.tensorflow.framework
Class TensorProto
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- org.tensorflow.framework.TensorProto
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable,TensorProtoOrBuilder
public final class TensorProto extends com.google.protobuf.GeneratedMessageV3 implements TensorProtoOrBuilder
Protocol buffer representing a tensor.
Protobuf typetensorflow.TensorProto- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTensorProto.BuilderProtocol buffer representing a tensor.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBOOL_VAL_FIELD_NUMBERstatic intDCOMPLEX_VAL_FIELD_NUMBERstatic intDOUBLE_VAL_FIELD_NUMBERstatic intDTYPE_FIELD_NUMBERstatic intFLOAT_VAL_FIELD_NUMBERstatic intHALF_VAL_FIELD_NUMBERstatic intINT_VAL_FIELD_NUMBERstatic intINT64_VAL_FIELD_NUMBERstatic intRESOURCE_HANDLE_VAL_FIELD_NUMBERstatic intSCOMPLEX_VAL_FIELD_NUMBERstatic intSTRING_VAL_FIELD_NUMBERstatic intTENSOR_CONTENT_FIELD_NUMBERstatic intTENSOR_SHAPE_FIELD_NUMBERstatic intUINT32_VAL_FIELD_NUMBERstatic intUINT64_VAL_FIELD_NUMBERstatic intVARIANT_VAL_FIELD_NUMBERstatic intVERSION_NUMBER_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)booleangetBoolVal(int index)DT_BOOLintgetBoolValCount()DT_BOOLjava.util.List<java.lang.Boolean>getBoolValList()DT_BOOLdoublegetDcomplexVal(int index)DT_COMPLEX128.intgetDcomplexValCount()DT_COMPLEX128.java.util.List<java.lang.Double>getDcomplexValList()DT_COMPLEX128.static TensorProtogetDefaultInstance()TensorProtogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()doublegetDoubleVal(int index)DT_DOUBLE.intgetDoubleValCount()DT_DOUBLE.java.util.List<java.lang.Double>getDoubleValList()DT_DOUBLE.DataTypegetDtype().tensorflow.DataType dtype = 1;intgetDtypeValue().tensorflow.DataType dtype = 1;floatgetFloatVal(int index)DT_FLOAT.intgetFloatValCount()DT_FLOAT.java.util.List<java.lang.Float>getFloatValList()DT_FLOAT.intgetHalfVal(int index)DT_HALF, DT_BFLOAT16.intgetHalfValCount()DT_HALF, DT_BFLOAT16.java.util.List<java.lang.Integer>getHalfValList()DT_HALF, DT_BFLOAT16.longgetInt64Val(int index)DT_INT64intgetInt64ValCount()DT_INT64java.util.List<java.lang.Long>getInt64ValList()DT_INT64intgetIntVal(int index)DT_INT32, DT_INT16, DT_INT8, DT_UINT8.intgetIntValCount()DT_INT32, DT_INT16, DT_INT8, DT_UINT8.java.util.List<java.lang.Integer>getIntValList()DT_INT32, DT_INT16, DT_INT8, DT_UINT8.com.google.protobuf.Parser<TensorProto>getParserForType()ResourceHandleProtogetResourceHandleVal(int index)DT_RESOURCEintgetResourceHandleValCount()DT_RESOURCEjava.util.List<ResourceHandleProto>getResourceHandleValList()DT_RESOURCEResourceHandleProtoOrBuildergetResourceHandleValOrBuilder(int index)DT_RESOURCEjava.util.List<? extends ResourceHandleProtoOrBuilder>getResourceHandleValOrBuilderList()DT_RESOURCEfloatgetScomplexVal(int index)DT_COMPLEX64.intgetScomplexValCount()DT_COMPLEX64.java.util.List<java.lang.Float>getScomplexValList()DT_COMPLEX64.intgetSerializedSize()com.google.protobuf.ByteStringgetStringVal(int index)DT_STRINGintgetStringValCount()DT_STRINGjava.util.List<com.google.protobuf.ByteString>getStringValList()DT_STRINGcom.google.protobuf.ByteStringgetTensorContent()Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer.TensorShapeProtogetTensorShape()Shape of the tensor.TensorShapeProtoOrBuildergetTensorShapeOrBuilder()Shape of the tensor.intgetUint32Val(int index)DT_UINT32intgetUint32ValCount()DT_UINT32java.util.List<java.lang.Integer>getUint32ValList()DT_UINT32longgetUint64Val(int index)DT_UINT64intgetUint64ValCount()DT_UINT64java.util.List<java.lang.Long>getUint64ValList()DT_UINT64com.google.protobuf.UnknownFieldSetgetUnknownFields()VariantTensorDataProtogetVariantVal(int index)DT_VARIANTintgetVariantValCount()DT_VARIANTjava.util.List<VariantTensorDataProto>getVariantValList()DT_VARIANTVariantTensorDataProtoOrBuildergetVariantValOrBuilder(int index)DT_VARIANTjava.util.List<? extends VariantTensorDataProtoOrBuilder>getVariantValOrBuilderList()DT_VARIANTintgetVersionNumber()Version number.inthashCode()booleanhasTensorShape()Shape of the tensor.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TensorProto.BuildernewBuilder()static TensorProto.BuildernewBuilder(TensorProto prototype)TensorProto.BuildernewBuilderForType()protected TensorProto.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TensorProtoparseDelimitedFrom(java.io.InputStream input)static TensorProtoparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorProtoparseFrom(byte[] data)static TensorProtoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorProtoparseFrom(com.google.protobuf.ByteString data)static TensorProtoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorProtoparseFrom(com.google.protobuf.CodedInputStream input)static TensorProtoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorProtoparseFrom(java.io.InputStream input)static TensorProtoparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TensorProtoparseFrom(java.nio.ByteBuffer data)static TensorProtoparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TensorProto>parser()TensorProto.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DTYPE_FIELD_NUMBER
public static final int DTYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSOR_SHAPE_FIELD_NUMBER
public static final int TENSOR_SHAPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VERSION_NUMBER_FIELD_NUMBER
public static final int VERSION_NUMBER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSOR_CONTENT_FIELD_NUMBER
public static final int TENSOR_CONTENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HALF_VAL_FIELD_NUMBER
public static final int HALF_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FLOAT_VAL_FIELD_NUMBER
public static final int FLOAT_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOUBLE_VAL_FIELD_NUMBER
public static final int DOUBLE_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT_VAL_FIELD_NUMBER
public static final int INT_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_VAL_FIELD_NUMBER
public static final int STRING_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCOMPLEX_VAL_FIELD_NUMBER
public static final int SCOMPLEX_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT64_VAL_FIELD_NUMBER
public static final int INT64_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOL_VAL_FIELD_NUMBER
public static final int BOOL_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DCOMPLEX_VAL_FIELD_NUMBER
public static final int DCOMPLEX_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_HANDLE_VAL_FIELD_NUMBER
public static final int RESOURCE_HANDLE_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VARIANT_VAL_FIELD_NUMBER
public static final int VARIANT_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UINT32_VAL_FIELD_NUMBER
public static final int UINT32_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UINT64_VAL_FIELD_NUMBER
public static final int UINT64_VAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getDtypeValue
public int getDtypeValue()
.tensorflow.DataType dtype = 1;- Specified by:
getDtypeValuein interfaceTensorProtoOrBuilder- Returns:
- The enum numeric value on the wire for dtype.
-
getDtype
public DataType getDtype()
.tensorflow.DataType dtype = 1;- Specified by:
getDtypein interfaceTensorProtoOrBuilder- Returns:
- The dtype.
-
hasTensorShape
public boolean hasTensorShape()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.tensorflow.TensorShapeProto tensor_shape = 2;- Specified by:
hasTensorShapein interfaceTensorProtoOrBuilder- Returns:
- Whether the tensorShape field is set.
-
getTensorShape
public TensorShapeProto getTensorShape()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.tensorflow.TensorShapeProto tensor_shape = 2;- Specified by:
getTensorShapein interfaceTensorProtoOrBuilder- Returns:
- The tensorShape.
-
getTensorShapeOrBuilder
public TensorShapeProtoOrBuilder getTensorShapeOrBuilder()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.tensorflow.TensorShapeProto tensor_shape = 2;- Specified by:
getTensorShapeOrBuilderin interfaceTensorProtoOrBuilder
-
getVersionNumber
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;- Specified by:
getVersionNumberin interfaceTensorProtoOrBuilder- Returns:
- The versionNumber.
-
getTensorContent
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;- Specified by:
getTensorContentin interfaceTensorProtoOrBuilder- Returns:
- The tensorContent.
-
getHalfValList
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];- Specified by:
getHalfValListin interfaceTensorProtoOrBuilder- Returns:
- A list containing the halfVal.
-
getHalfValCount
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];- Specified by:
getHalfValCountin interfaceTensorProtoOrBuilder- Returns:
- The count of halfVal.
-
getHalfVal
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];- Specified by:
getHalfValin interfaceTensorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The halfVal at the given index.
-
getFloatValList
public java.util.List<java.lang.Float> getFloatValList()
DT_FLOAT.
repeated float float_val = 5 [packed = true];- Specified by:
getFloatValListin interfaceTensorProtoOrBuilder- Returns:
- A list containing the floatVal.
-
getFloatValCount
public int getFloatValCount()
DT_FLOAT.
repeated float float_val = 5 [packed = true];- Specified by:
getFloatValCountin interfaceTensorProtoOrBuilder- Returns:
- The count of floatVal.
-
getFloatVal
public float getFloatVal(int index)
DT_FLOAT.
repeated float float_val = 5 [packed = true];- Specified by:
getFloatValin interfaceTensorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The floatVal at the given index.
-
getDoubleValList
public java.util.List<java.lang.Double> getDoubleValList()
DT_DOUBLE.
repeated double double_val = 6 [packed = true];- Specified by:
getDoubleValListin interfaceTensorProtoOrBuilder- Returns:
- A list containing the doubleVal.
-
getDoubleValCount
public int getDoubleValCount()
DT_DOUBLE.
repeated double double_val = 6 [packed = true];- Specified by:
getDoubleValCountin interfaceTensorProtoOrBuilder- Returns:
- The count of doubleVal.
-
getDoubleVal
public double getDoubleVal(int index)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];- Specified by:
getDoubleValin interfaceTensorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The doubleVal at the given index.
-
getIntValList
public java.util.List<java.lang.Integer> getIntValList()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];- Specified by:
getIntValListin interfaceTensorProtoOrBuilder- Returns:
- A list containing the intVal.
-
getIntValCount
public int getIntValCount()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];- Specified by:
getIntValCountin interfaceTensorProtoOrBuilder- Returns:
- The count of intVal.
-
getIntVal
public int getIntVal(int index)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];- Specified by:
getIntValin interfaceTensorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The intVal at the given index.
-
getStringValList
public java.util.List<com.google.protobuf.ByteString> getStringValList()
DT_STRING
repeated bytes string_val = 8;- Specified by:
getStringValListin interfaceTensorProtoOrBuilder- Returns:
- A list containing the stringVal.
-
getStringValCount
public int getStringValCount()
DT_STRING
repeated bytes string_val = 8;- Specified by:
getStringValCountin interfaceTensorProtoOrBuilder- Returns:
- The count of stringVal.
-
getStringVal
public com.google.protobuf.ByteString getStringVal(int index)
DT_STRING
repeated bytes string_val = 8;- Specified by:
getStringValin interfaceTensorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The stringVal at the given index.
-
getScomplexValList
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];- Specified by:
getScomplexValListin interfaceTensorProtoOrBuilder- Returns:
- A list containing the scomplexVal.
-
getScomplexValCount
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];- Specified by:
getScomplexValCountin interfaceTensorProtoOrBuilder- Returns:
- The count of scomplexVal.
-
getScomplexVal
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];- Specified by:
getScomplexValin interfaceTensorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The scomplexVal at the given index.
-
getInt64ValList
public java.util.List<java.lang.Long> getInt64ValList()
DT_INT64
repeated int64 int64_val = 10 [packed = true];- Specified by:
getInt64ValListin interfaceTensorProtoOrBuilder- Returns:
- A list containing the int64Val.
-
getInt64ValCount
public int getInt64ValCount()
DT_INT64
repeated int64 int64_val = 10 [packed = true];- Specified by:
getInt64ValCountin interfaceTensorProtoOrBuilder- Returns:
- The count of int64Val.
-
getInt64Val
public long getInt64Val(int index)
DT_INT64
repeated int64 int64_val = 10 [packed = true];- Specified by:
getInt64Valin interfaceTensorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The int64Val at the given index.
-
getBoolValList
public java.util.List<java.lang.Boolean> getBoolValList()
DT_BOOL
repeated bool bool_val = 11 [packed = true];- Specified by:
getBoolValListin interfaceTensorProtoOrBuilder- Returns:
- A list containing the boolVal.
-
getBoolValCount
public int getBoolValCount()
DT_BOOL
repeated bool bool_val = 11 [packed = true];- Specified by:
getBoolValCountin interfaceTensorProtoOrBuilder- Returns:
- The count of boolVal.
-
getBoolVal
public boolean getBoolVal(int index)
DT_BOOL
repeated bool bool_val = 11 [packed = true];- Specified by:
getBoolValin interfaceTensorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The boolVal at the given index.
-
getDcomplexValList
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];- Specified by:
getDcomplexValListin interfaceTensorProtoOrBuilder- Returns:
- A list containing the dcomplexVal.
-
getDcomplexValCount
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];- Specified by:
getDcomplexValCountin interfaceTensorProtoOrBuilder- Returns:
- The count of dcomplexVal.
-
getDcomplexVal
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];- Specified by:
getDcomplexValin interfaceTensorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The dcomplexVal at the given index.
-
getResourceHandleValList
public java.util.List<ResourceHandleProto> getResourceHandleValList()
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;- Specified by:
getResourceHandleValListin interfaceTensorProtoOrBuilder
-
getResourceHandleValOrBuilderList
public java.util.List<? extends ResourceHandleProtoOrBuilder> getResourceHandleValOrBuilderList()
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;- Specified by:
getResourceHandleValOrBuilderListin interfaceTensorProtoOrBuilder
-
getResourceHandleValCount
public int getResourceHandleValCount()
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;- Specified by:
getResourceHandleValCountin interfaceTensorProtoOrBuilder
-
getResourceHandleVal
public ResourceHandleProto getResourceHandleVal(int index)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;- Specified by:
getResourceHandleValin interfaceTensorProtoOrBuilder
-
getResourceHandleValOrBuilder
public ResourceHandleProtoOrBuilder getResourceHandleValOrBuilder(int index)
DT_RESOURCE
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;- Specified by:
getResourceHandleValOrBuilderin interfaceTensorProtoOrBuilder
-
getVariantValList
public java.util.List<VariantTensorDataProto> getVariantValList()
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;- Specified by:
getVariantValListin interfaceTensorProtoOrBuilder
-
getVariantValOrBuilderList
public java.util.List<? extends VariantTensorDataProtoOrBuilder> getVariantValOrBuilderList()
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;- Specified by:
getVariantValOrBuilderListin interfaceTensorProtoOrBuilder
-
getVariantValCount
public int getVariantValCount()
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;- Specified by:
getVariantValCountin interfaceTensorProtoOrBuilder
-
getVariantVal
public VariantTensorDataProto getVariantVal(int index)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;- Specified by:
getVariantValin interfaceTensorProtoOrBuilder
-
getVariantValOrBuilder
public VariantTensorDataProtoOrBuilder getVariantValOrBuilder(int index)
DT_VARIANT
repeated .tensorflow.VariantTensorDataProto variant_val = 15;- Specified by:
getVariantValOrBuilderin interfaceTensorProtoOrBuilder
-
getUint32ValList
public java.util.List<java.lang.Integer> getUint32ValList()
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];- Specified by:
getUint32ValListin interfaceTensorProtoOrBuilder- Returns:
- A list containing the uint32Val.
-
getUint32ValCount
public int getUint32ValCount()
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];- Specified by:
getUint32ValCountin interfaceTensorProtoOrBuilder- Returns:
- The count of uint32Val.
-
getUint32Val
public int getUint32Val(int index)
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];- Specified by:
getUint32Valin interfaceTensorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The uint32Val at the given index.
-
getUint64ValList
public java.util.List<java.lang.Long> getUint64ValList()
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];- Specified by:
getUint64ValListin interfaceTensorProtoOrBuilder- Returns:
- A list containing the uint64Val.
-
getUint64ValCount
public int getUint64ValCount()
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];- Specified by:
getUint64ValCountin interfaceTensorProtoOrBuilder- Returns:
- The count of uint64Val.
-
getUint64Val
public long getUint64Val(int index)
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];- Specified by:
getUint64Valin interfaceTensorProtoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The uint64Val at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TensorProto parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TensorProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TensorProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TensorProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TensorProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TensorProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TensorProto parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static TensorProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static TensorProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static TensorProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static TensorProto parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static TensorProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public TensorProto.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TensorProto.Builder newBuilder()
-
newBuilder
public static TensorProto.Builder newBuilder(TensorProto prototype)
-
toBuilder
public TensorProto.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TensorProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TensorProto getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TensorProto> parser()
-
getParserForType
public com.google.protobuf.Parser<TensorProto> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TensorProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-