TensorProto

clase final pública TensorProto

 Protocol buffer representing a tensor.
 
tipo tensorflow.TensorProto

Clases anidadas

clase TensorProto.Builder
 Protocol buffer representing a tensor. 

Constantes

En t BOOL_VAL_FIELD_NUMBER
En t DCOMPLEX_VAL_FIELD_NUMBER
En t DOUBLE_VAL_FIELD_NUMBER
En t DTYPE_FIELD_NUMBER
En t FLOAT_VAL_FIELD_NUMBER
En t HALF_VAL_FIELD_NUMBER
En t INT64_VAL_FIELD_NUMBER
En t INT_VAL_FIELD_NUMBER
En t RESOURCE_HANDLE_VAL_FIELD_NUMBER
En t SCOMPLEX_VAL_FIELD_NUMBER
En t STRING_VAL_FIELD_NUMBER
En tTENSOR_CONTENT_FIELD_NUMBER
En t TENSOR_SHAPE_FIELD_NUMBER
En t UINT32_VAL_FIELD_NUMBER
En t UINT64_VAL_FIELD_NUMBER
En t VARIANT_VAL_FIELD_NUMBER
En tVERSION_NUMBER_FIELD_NUMBER

Métodos públicos

booleano
es igual a (Objeto obj)
booleano
getBoolVal (índice int)
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
En t
getBoolValCount ()
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
Lista <Boolean>
getBoolValList ()
 DT_BOOL
 
repeated bool bool_val = 11 [packed = true];
doble
getDcomplexVal (índice int)
 DT_COMPLEX128.
En t
getDcomplexValCount ()
 DT_COMPLEX128.
Lista <Doble>
getDcomplexValList ()
 DT_COMPLEX128.
TensorProto estático
TensorProto
com.google.protobuf.Descriptors.Descriptor estático final
doble
getDoubleVal (índice int)
 DT_DOUBLE.
En t
getDoubleValCount ()
 DT_DOUBLE.
Lista <Doble>
getDoubleValList ()
 DT_DOUBLE.
Tipo de datos
getDtype ()
.tensorflow.DataType dtype = 1;
En t
getDtypeValue ()
.tensorflow.DataType dtype = 1;
flotador
getFloatVal (índice int)
 DT_FLOAT.
En t
getFloatValCount ()
 DT_FLOAT.
Lista <Float>
getFloatValList ()
 DT_FLOAT.
En t
getHalfVal (índice int)
 DT_HALF, DT_BFLOAT16.
En t
getHalfValCount ()
 DT_HALF, DT_BFLOAT16.
Lista <Intero>
getHalfValList ()
 DT_HALF, DT_BFLOAT16.
largo
getInt64Val (índice int)
 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];
En t
getInt64ValCount ()
 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];
Lista <larga>
getInt64ValList ()
 DT_INT64
 
repeated int64 int64_val = 10 [packed = true];
En t
getIntVal (índice int)
 DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
En t
getIntValCount ()
 DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
Lista <Intero>
getIntValList ()
 DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
ResourceHandleProto
getResourceHandleVal (índice int)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
En t
getResourceHandleValCount ()
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
Lista < ResourceHandleProto >
getResourceHandleValList ()
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
ResourceHandleProtoOrBuilder
getResourceHandleValOrBuilder (índice int)
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
Lista <? extiende ResourceHandleProtoOrBuilder >
getResourceHandleValOrBuilderList ()
 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;
flotador
getScomplexVal (índice int)
 DT_COMPLEX64.
En t
getScomplexValCount ()
 DT_COMPLEX64.
Lista <Float>
getScomplexValList ()
 DT_COMPLEX64.
En t
com.google.protobuf.ByteString
getStringVal (índice int)
 DT_STRING
 
repeated bytes string_val = 8;
En t
getStringValCount ()
 DT_STRING
 
repeated bytes string_val = 8;
Lista <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.
En t
getUint32Val (índice int)
 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];
En t
getUint32ValCount ()
 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];
Lista <Intero>
getUint32ValList ()
 DT_UINT32
 
repeated uint32 uint32_val = 16 [packed = true];
largo
getUint64Val (índice int)
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
En t
getUint64ValCount ()
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
Lista <larga>
getUint64ValList ()
 DT_UINT64
 
repeated uint64 uint64_val = 17 [packed = true];
final com.google.protobuf.UnknownFieldSet
VariantTensorDataProto
getVariantVal (índice int)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
En t
getVariantValCount ()
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
Lista < VariantTensorDataProto >
getVariantValList ()
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
VariantTensorDataProtoOrBuilder
getVariantValOrBuilder (índice int)
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
Lista <? extiende VariantTensorDataProtoOrBuilder >
getVariantValOrBuilderList ()
 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;
En t
getVersionNumber ()
 Version number.
booleano
hasTensorShape ()
 Shape of the tensor.
En t
booleano final
estático TensorProto.Builder
estático TensorProto.Builder
newBuilder (prototipo de TensorProto )
TensorProto.Builder
TensorProto estático
parseDelimitedFrom (entrada InputStream)
TensorProto estático
parseDelimitedFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorProto estático
parseFrom (datos ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorProto estático
parseFrom (entrada com.google.protobuf.CodedInputStream)
TensorProto estático
parseFrom (byte [] datos, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorProto estático
parseFrom (datos ByteBuffer)
TensorProto estático
parseFrom (entrada com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorProto estático
parseFrom (datos com.google.protobuf.ByteString)
TensorProto estático
parseFrom (entrada InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorProto estático
parseFrom (datos com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
estático
TensorProto.Builder
vacío
writeTo (salida de com.google.protobuf.CodedOutputStream)

Métodos heredados

Constantes

public static final int BOOL_VAL_FIELD_NUMBER

Valor constante: 11

public static final int DCOMPLEX_VAL_FIELD_NUMBER

Valor constante: 12

público estático 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

público estático final int INT64_VAL_FIELD_NUMBER

Valor constante: 10

público estático 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 es igual a (Object obj)

getBoolVal booleano público (índice int)

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

public int getBoolValCount ()

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

Lista pública <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];

Lista pública <Doble> 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 ()

público estático 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];

Lista pública <Doble> 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 (índice int)

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

public int getFloatValCount ()

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

Lista pública <Float> getFloatValList ()

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

public int getHalfVal (int índice)

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

Lista pública <Long> getInt64ValList ()

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

public int getIntVal (int índice)

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

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

public int getResourceHandleValCount ()

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

Lista pública < ResourceHandleProto > getResourceHandleValList ()

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

public ResourceHandleProtoOrBuilder getResourceHandleValOrBuilder (índice int)

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

lista pública <? extiende ResourceHandleProtoOrBuilder > getResourceHandleValOrBuilderList ()

 DT_RESOURCE
 
repeated .tensorflow.ResourceHandleProto resource_handle_val = 14;

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

Lista pública <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 (índice int)

 DT_STRING
 
repeated bytes string_val = 8;

public int getStringValCount ()

 DT_STRING
 
repeated bytes string_val = 8;

Lista pública <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 (int índice)

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

getUint64Val largo público (índice int)

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

public int getUint64ValCount ()

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

Lista pública <Long> getUint64ValList ()

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

public final com.google.protobuf.UnknownFieldSet getUnknownFields ()

public VariantTensorDataProto getVariantVal (índice int)

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

public int getVariantValCount ()

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

lista pública < VariantTensorDataProto > getVariantValList ()

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

public VariantTensorDataProtoOrBuilder getVariantValOrBuilder (índice int)

 DT_VARIANT
 
repeated .tensorflow.VariantTensorDataProto variant_val = 15;

lista pública <? extiende 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 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 (prototipo de TensorProto )

public TensorProto.Builder newBuilderForType ()

public static TensorProto parseDelimitedFrom (InputStream input)

Lanza
IOException

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

Lanza
IOException

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

Lanza
InvalidProtocolBufferException

público estático TensorProto parseFrom (entrada com.google.protobuf.CodedInputStream)

Lanza
IOException

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

Lanza
InvalidProtocolBufferException

público estático TensorProto parseFrom (datos ByteBuffer)

Lanza
InvalidProtocolBufferException

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

Lanza
IOException

público estático TensorProto parseFrom (datos de com.google.protobuf.ByteString)

Lanza
InvalidProtocolBufferException

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

Lanza
IOException

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

Lanza
InvalidProtocolBufferException

público estático analizador ()

public TensorProto.Builder toBuilder ()

public void writeTo (salida de com.google.protobuf.CodedOutputStream)

Lanza
IOException