TensorProto

classe final pública TensorProto

 Protocol buffer representing a tensor.
 
tensorflow.TensorProto tipo tensorflow.TensorProto

Classes aninhadas

aula TensorProto.Builder
 Protocol buffer representing a tensor. 

Constantes

int BOOL_VAL_FIELD_NUMBER
int DCOMPLEX_VAL_FIELD_NUMBER
int DOUBLE_VAL_FIELD_NUMBER
int DTYPE_FIELD_NUMBER
int FLOAT_VAL_FIELD_NUMBER
int HALF_VAL_FIELD_NUMBER
int INT64_VAL_FIELD_NUMBER
int INT_VAL_FIELD_NUMBER
int RESOURCE_HANDLE_VAL_FIELD_NUMBER
int SCOMPLEX_VAL_FIELD_NUMBER
int STRING_VAL_FIELD_NUMBER
intTENSOR_CONTENT_FIELD_NUMBER
int TENSOR_SHAPE_FIELD_NUMBER
int UINT32_VAL_FIELD_NUMBER
int UINT64_VAL_FIELD_NUMBER
int VARIANT_VAL_FIELD_NUMBER
intVERSION_NUMBER_FIELD_NUMBER

Métodos Públicos

boleano
igual a (objeto obj)
boleano
getBoolVal (int index)
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
int
getBoolValCount ()
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
Lista <Boolean>
getBoolValList ()
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
Duplo
getDcomplexVal (índice interno )
 DT_COMPLEX128.
int
getDcomplexValCount ()
 DT_COMPLEX128.
Listar <Duplo>
getDcomplexValList ()
 DT_COMPLEX128.
TensorProto estático
TensorProto
final static com.google.protobuf.Descriptors.Descriptor
Duplo
getDoubleVal (int index)
 DT_DOUBLE.
int
getDoubleValCount ()
 DT_DOUBLE.
Listar <Duplo>
getDoubleValList ()
 DT_DOUBLE.
Tipo de dados
getDtype ()
.tensorflow.DataType dtype = 1;
int
getDtypeValue ()
.tensorflow.DataType dtype = 1;
flutuador
getFloatVal (int index)
 DT_FLOAT.
int
getFloatValCount ()
 DT_FLOAT.
Listar <Float>
getFloatValList ()
 DT_FLOAT.
int
getHalfVal (índice interno )
 DT_HALF, DT_BFLOAT16.
int
getHalfValCount ()
 DT_HALF, DT_BFLOAT16.
List <Integer>
getHalfValList ()
 DT_HALF, DT_BFLOAT16.
longo
getInt64Val (índice int)
 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];
int
getInt64ValCount ()
 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];
Lista <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 (índice interno)
 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 (índice interno)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
Lista <? estende ResourceHandleProtoOrBuilder >
getResourceHandleValOrBuilderList ()
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
flutuador
getScomplexVal (índice interno )
 DT_COMPLEX64.
int
getScomplexValCount ()
 DT_COMPLEX64.
Listar <Float>
getScomplexValList ()
 DT_COMPLEX64.
int
com.google.protobuf.ByteString
getStringVal (índice interno )
 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.
TensorShapeProtoOrBuilder
getTensorShapeOrBuilder ()
 Shape of the tensor.
int
getUint32Val (índice int)
 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];
longo
getUint64Val (índice int)
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
int
getUint64ValCount ()
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
Lista <Long>
getUint64ValList ()
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
final com.google.protobuf.UnknownFieldSet
VariantTensorDataProto
getVariantVal (int index)
 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 (índice interno )
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
Lista <? estende VariantTensorDataProtoOrBuilder >
getVariantValOrBuilderList ()
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
int
getVersionNumber ()
 Version number.
boleano
hasTensorShape ()
 Shape of the tensor.
int
final booleano
TensorProto.Builder estático
TensorProto.Builder estático
newBuilder (protótipo TensorProto )
TensorProto.Builder
TensorProto estático
parseDelimitedFrom (input InputStream)
TensorProto estático
parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorProto estático
parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorProto estático
parseFrom (com.google.protobuf.CodedInputStream input)
TensorProto estático
parseFrom (byte [] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorProto estático
parseFrom (dados ByteBuffer)
TensorProto estático
parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorProto estático
parseFrom (com.google.protobuf.ByteString data)
TensorProto estático
parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorProto estático
parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
estático
TensorProto.Builder
vazio
writeTo (saída com.google.protobuf.CodedOutputStream)

Métodos herdados

Constantes

public static final int BOOL_VAL_FIELD_NUMBER

Valor constante: 11

public static final int DCOMPLEX_VAL_FIELD_NUMBER

Valor constante: 12

public static final int DOUBLE_VAL_FIELD_NUMBER

Valor constante: 6

public static final int DTYPE_FIELD_NUMBER

Valor Constante: 1

public static final int FLOAT_VAL_FIELD_NUMBER

Valor constante: 5

public static final int HALF_VAL_FIELD_NUMBER

Valor constante: 13

public static final int INT64_VAL_FIELD_NUMBER

Valor constante: 10

public static final int INT_VAL_FIELD_NUMBER

Valor constante: 7

public static final int RESOURCE_HANDLE_VAL_FIELD_NUMBER

Valor constante: 14

public static final int SCOMPLEX_VAL_FIELD_NUMBER

Valor constante: 9

público estático final int STRING_VAL_FIELD_NUMBER

Valor constante: 8

public static final int TENSOR_CONTENT_FIELD_NUMBER

Valor constante: 4

public static final int TENSOR_SHAPE_FIELD_NUMBER

Valor constante: 2

public static final int UINT32_VAL_FIELD_NUMBER

Valor constante: 16

public static final int UINT64_VAL_FIELD_NUMBER

Valor constante: 17

public static final int VARIANT_VAL_FIELD_NUMBER

Valor constante: 15

public static final int VERSION_NUMBER_FIELD_NUMBER

Valor Constante: 3

Métodos Públicos

public boolean equals (Object obj)

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 (índice int)

 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 static TensorProto getDefaultInstance ()

public TensorProto getDefaultInstanceForType ()

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

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 (índice int)

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

público getParserForType ()

public ResourceHandleProto getResourceHandleVal (índice interno)

 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 (índice interno)

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

Lista pública <? estende ResourceHandleProtoOrBuilder > getResourceHandleValOrBuilderList ()

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

public float getScomplexVal (índice int)

 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 int getSerializedSize ()

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 TensorShapeProtoOrBuilder getTensorShapeOrBuilder ()

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

public int getUint32Val (índice int)

 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 (índice int)

 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 final com.google.protobuf.UnknownFieldSet getUnknownFields ()

public VariantTensorDataProto getVariantVal (int index)

 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 (índice interno )

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

Lista pública <? estende 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 int hashCode ()

public final boolean isInitialized ()

public static TensorProto.Builder newBuilder ()

public static TensorProto.Builder newBuilder (protótipo TensorProto )

public TensorProto.Builder newBuilderForType ()

public static TensorProto parseDelimitedFrom (InputStream input)

Lança
IOException

public static TensorProto parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lança
IOException

public static TensorProto parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lança
InvalidProtocolBufferException

public static TensorProto parseFrom (entrada com.google.protobuf.CodedInputStream)

Lança
IOException

public static TensorProto parseFrom (byte [] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lança
InvalidProtocolBufferException

public static TensorProto parseFrom (dados ByteBuffer)

Lança
InvalidProtocolBufferException

public static TensorProto parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lança
IOException

public static TensorProto parseFrom (com.google.protobuf.ByteString data)

Lança
InvalidProtocolBufferException

public static TensorProto parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lança
IOException

public static TensorProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lança
InvalidProtocolBufferException

estática pública analisador ()

public TensorProto.Builder toBuilder ()

public void writeTo (saída com.google.protobuf.CodedOutputStream)

Lança
IOException