StructuredValue

classe finale pubblica StructuredValue

 `StructuredValue` represents a dynamically typed value representing various
 data structures that are inspired by Python data structures typically used in
 TensorFlow functions as inputs and outputs.
 For example when saving a Layer there may be a `training` argument. If the
 user passes a boolean True/False, that switches between two concrete
 TensorFlow functions. In order to switch between them in the same way after
 loading the SavedModel, we need to represent "True" and "False".
 A more advanced example might be a function which takes a list of
 dictionaries mapping from strings to Tensors. In order to map from
 user-specified arguments `[{"a": tf.constant(1.)}, {"q": tf.constant(3.)}]`
 after load to the right saved TensorFlow function, we need to represent the
 nested structure and the strings, recording that we have a trace for anything
 matching `[{"a": tf.TensorSpec(None, tf.float32)}, {"q": tf.TensorSpec([],
 tf.float64)}]` as an example.
 Likewise functions may return nested structures of Tensors, for example
 returning a dictionary mapping from strings to Tensors. In order for the
 loaded function to return the same structure we need to serialize it.
 This is an ergonomic aid for working with loaded SavedModels, not a promise
 to serialize all possible function signatures. For example we do not expect
 to pickle generic Python objects, and ideally we'd stay language-agnostic.
 
Tipo protobuf tensorflow.StructuredValue

Classi nidificate

classe StructuredValue.Builder
 `StructuredValue` represents a dynamically typed value representing various
 data structures that are inspired by Python data structures typically used in
 TensorFlow functions as inputs and outputs. 
enum StructuredValue.KindCase

Costanti

int BOOL_VALUE_FIELD_NUMBER
int BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER
int DICT_VALUE_FIELD_NUMBER
int FLOAT64_VALUE_FIELD_NUMBER
int INT64_VALUE_FIELD_NUMBER
int LIST_VALUE_FIELD_NUMBER
int NAMED_TUPLE_VALUE_FIELD_NUMBER
int NESSUN_VALUE_FIELD_NUMBER
int STRING_VALUE_FIELD_NUMBER
int TENSOR_DTYPE_VALUE_FIELD_NUMBER
int TENSOR_SHAPE_VALUE_FIELD_NUMBER
int TENSOR_SPEC_VALUE_FIELD_NUMBER
int TUPLE_VALUE_FIELD_NUMBER
int TYPE_SPEC_VALUE_FIELD_NUMBER

Metodi pubblici

booleano
è uguale a (Oggetto oggetto)
booleano
getBoolValue ()
 Represents a boolean value.
BoundedTensorSpecProto
getBoundedTensorSpecValue ()
 Represents a value for tf.BoundedTensorSpec.
BoundedTensorSpecProtoOrBuilder
getBoundedTensorSpecValueOrBuilder ()
 Represents a value for tf.BoundedTensorSpec.
Valore strutturato statico
Valore strutturato
com.google.protobuf.Descriptors.Descriptor statico finale
DictValue
getDictValue ()
 Represents a dict `Value`.
DictValueOrBuilder
getDictValueOrBuilder ()
 Represents a dict `Value`.
Doppio
getFloat64Value ()
 Represents a double-precision floating-point value (a Python `float`).
lungo
getInt64Valore ()
 Represents a signed integer value, limited to 64 bits.
StructuredValue.KindCase
Valoreelenco
getListValue ()
 Represents a list of `Value`.
ListValueOrBuilder
getListValueOrBuilder ()
 Represents a list of `Value`.
NomeTupleValue
getNamedTupleValue ()
 Represents Python's namedtuple.
NomeTupleValueOrBuilder
getNamedTupleValueOrBuilder ()
 Represents Python's namedtuple.
NessunoValore
getNoneValue ()
 Represents None.
NoneValueOrBuilder
getNoneValueOrBuilder ()
 Represents None.
int
Corda
getStringValue ()
 Represents a string of Unicode characters stored in a Python `str`.
com.google.protobuf.ByteString
getStringValueBytes ()
 Represents a string of Unicode characters stored in a Python `str`.
Tipo di dati
getTensorDtypeValue ()
 Represents an enum value for dtype.
int
getTensorDtypeValueValue ()
 Represents an enum value for dtype.
TensorShapeProto
getTensorShapeValue ()
 Represents a TensorShape.
TensorShapeProtoOrBuilder
getTensorShapeValueOrBuilder ()
 Represents a TensorShape.
TensorSpecProto
getTensorSpecValue ()
 Represents a value for tf.TensorSpec.
TensorSpecProtoOrBuilder
getTensorSpecValueOrBuilder ()
 Represents a value for tf.TensorSpec.
TupleValue
getTupleValue ()
 Represents a tuple of `Value`.
TupleValueOrBuilder
getTupleValueOrBuilder ()
 Represents a tuple of `Value`.
TypeSpecProto
getTypeSpecValue ()
 Represents a value for tf.TypeSpec.
TypeSpecProtoOrBuilder
getTypeSpecValueOrBuilder ()
 Represents a value for tf.TypeSpec.
finale com.google.protobuf.UnknownFieldSet
booleano
haBoundedTensorSpecValue ()
 Represents a value for tf.BoundedTensorSpec.
booleano
hasDictValue ()
 Represents a dict `Value`.
booleano
hasListValue ()
 Represents a list of `Value`.
booleano
hasNamedTupleValue ()
 Represents Python's namedtuple.
booleano
hasNoneValue ()
 Represents None.
booleano
hasTensorShapeValue ()
 Represents a TensorShape.
booleano
hasTensorSpecValue ()
 Represents a value for tf.TensorSpec.
booleano
hasTupleValue ()
 Represents a tuple of `Value`.
booleano
hasTypeSpecValue ()
 Represents a value for tf.TypeSpec.
int
booleano finale
StructuredValue.Builder statico
StructuredValue.Builder statico
StructuredValue.Builder
Valore strutturato statico
parseDelimitedFrom (input InputStream)
Valore strutturato statico
parseDelimitedFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Valore strutturato statico
parseFrom (dati ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Valore strutturato statico
parseFrom (ingresso com.google.protobuf.CodedInputStream)
Valore strutturato statico
parseFrom (byte[] dati, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Valore strutturato statico
parseFrom (dati ByteBuffer)
Valore strutturato statico
parseFrom (input com.google.protobuf.CodedInputStream, estensione com.google.protobuf.ExtensionRegistryLiteRegistry)
Valore strutturato statico
parseFrom (dati com.google.protobuf.ByteString)
Valore strutturato statico
parseFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Valore strutturato statico
parseFrom (dati com.google.protobuf.ByteString, estensione com.google.protobuf.ExtensionRegistryLiteRegistry)
statico
StructuredValue.Builder
vuoto
writeTo (output com.google.protobuf.CodedOutputStream)

Metodi ereditati

Costanti

public static final int BOOL_VALUE_FIELD_NUMBER

Valore costante: 14

public static final int BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER

Valore costante: 35

public static final int DICT_VALUE_FIELD_NUMBER

Valore costante: 53

public static final int FLOAT64_VALUE_FIELD_NUMBER

Valore costante: 11

public static final int INT64_VALUE_FIELD_NUMBER

Valore costante: 12

public static final int LIST_VALUE_FIELD_NUMBER

Valore costante: 51

public static final int NAMED_TUPLE_VALUE_FIELD_NUMBER

Valore costante: 54

public static final int NONE_VALUE_FIELD_NUMBER

Valore costante: 1

public static final int STRING_VALUE_FIELD_NUMBER

Valore costante: 13

public static final int TENSOR_DTYPE_VALUE_FIELD_NUMBER

Valore costante: 32

public static final int TENSOR_SHAPE_VALUE_FIELD_NUMBER

Valore costante: 31

public static final int TENSOR_SPEC_VALUE_FIELD_NUMBER

Valore costante: 33

public static final int TUPLE_VALUE_FIELD_NUMBER

Valore costante: 52

public static final int TYPE_SPEC_VALUE_FIELD_NUMBER

Valore costante: 34

Metodi pubblici

booleano pubblico è uguale a (Oggetto obj)

booleano pubblico getBoolValue ()

 Represents a boolean value.
 
bool bool_value = 14;

public BoundedTensorSpecProto getBoundedTensorSpecValue ()

 Represents a value for tf.BoundedTensorSpec.
 
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;

public BoundedTensorSpecProtoOrBuilder getBoundedTensorSpecValueOrBuilder ()

 Represents a value for tf.BoundedTensorSpec.
 
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;

public static StructuredValue getDefaultInstance ()

public StructuredValue getDefaultInstanceForType ()

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

pubblico DictValue getDictValue ()

 Represents a dict `Value`.
 
.tensorflow.DictValue dict_value = 53;

public DictValueOrBuilder getDictValueOrBuilder ()

 Represents a dict `Value`.
 
.tensorflow.DictValue dict_value = 53;

pubblico doppio getFloat64Value ()

 Represents a double-precision floating-point value (a Python `float`).
 
double float64_value = 11;

pubblico lungo getInt64Value ()

 Represents a signed integer value, limited to 64 bits.
 Larger values from Python's arbitrary-precision integers are unsupported.
 
sint64 int64_value = 12;

public StructuredValue.KindCase getKindCase ()

public ListValue getListValue ()

 Represents a list of `Value`.
 
.tensorflow.ListValue list_value = 51;

public ListValueOrBuilder getListValueOrBuilder ()

 Represents a list of `Value`.
 
.tensorflow.ListValue list_value = 51;

pubblico NamedTupleValue getNamedTupleValue ()

 Represents Python's namedtuple.
 
.tensorflow.NamedTupleValue named_tuple_value = 54;

pubblico NamedTupleValueOrBuilder getNamedTupleValueOrBuilder ()

 Represents Python's namedtuple.
 
.tensorflow.NamedTupleValue named_tuple_value = 54;

pubblico NoneValue getNoneValue ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

public NoneValueOrBuilder getNoneValueOrBuilder ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

pubblico getParserForType ()

public int getSerializedSize ()

stringa pubblica getStringValue ()

 Represents a string of Unicode characters stored in a Python `str`.
 In Python 3, this is exactly what type `str` is.
 In Python 2, this is the UTF-8 encoding of the characters.
 For strings with ASCII characters only (as often used in TensorFlow code)
 there is effectively no difference between the language versions.
 The obsolescent `unicode` type of Python 2 is not supported here.
 
string string_value = 13;

pubblico com.google.protobuf.ByteString getStringValueBytes ()

 Represents a string of Unicode characters stored in a Python `str`.
 In Python 3, this is exactly what type `str` is.
 In Python 2, this is the UTF-8 encoding of the characters.
 For strings with ASCII characters only (as often used in TensorFlow code)
 there is effectively no difference between the language versions.
 The obsolescent `unicode` type of Python 2 is not supported here.
 
string string_value = 13;

public DataType getTensorDtypeValue ()

 Represents an enum value for dtype.
 
.tensorflow.DataType tensor_dtype_value = 32;

public int getTensorDtypeValueValue ()

 Represents an enum value for dtype.
 
.tensorflow.DataType tensor_dtype_value = 32;

public TensorShapeProto getTensorShapeValue ()

 Represents a TensorShape.
 
.tensorflow.TensorShapeProto tensor_shape_value = 31;

public TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder ()

 Represents a TensorShape.
 
.tensorflow.TensorShapeProto tensor_shape_value = 31;

public TensorSpecProto getTensorSpecValue ()

 Represents a value for tf.TensorSpec.
 
.tensorflow.TensorSpecProto tensor_spec_value = 33;

public TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder ()

 Represents a value for tf.TensorSpec.
 
.tensorflow.TensorSpecProto tensor_spec_value = 33;

public TupleValue getTupleValue ()

 Represents a tuple of `Value`.
 
.tensorflow.TupleValue tuple_value = 52;

public TupleValueOrBuilder getTupleValueOrBuilder ()

 Represents a tuple of `Value`.
 
.tensorflow.TupleValue tuple_value = 52;

public TypeSpecProto getTypeSpecValue ()

 Represents a value for tf.TypeSpec.
 
.tensorflow.TypeSpecProto type_spec_value = 34;

public TypeSpecProtoOrBuilder getTypeSpecValueOrBuilder ()

 Represents a value for tf.TypeSpec.
 
.tensorflow.TypeSpecProto type_spec_value = 34;

pubblico finale com.google.protobuf.UnknownFieldSet getUnknownFields ()

booleano pubblico hasBoundedTensorSpecValue ()

 Represents a value for tf.BoundedTensorSpec.
 
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;

pubblico booleano hasDictValue ()

 Represents a dict `Value`.
 
.tensorflow.DictValue dict_value = 53;

hasListValue booleano pubblico ()

 Represents a list of `Value`.
 
.tensorflow.ListValue list_value = 51;

booleano pubblico hasNamedTupleValue ()

 Represents Python's namedtuple.
 
.tensorflow.NamedTupleValue named_tuple_value = 54;

hasNoneValue pubblico booleano ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

pubblico booleano hasTensorShapeValue ()

 Represents a TensorShape.
 
.tensorflow.TensorShapeProto tensor_shape_value = 31;

pubblico booleano hasTensorSpecValue ()

 Represents a value for tf.TensorSpec.
 
.tensorflow.TensorSpecProto tensor_spec_value = 33;

pubblico booleano hasTupleValue ()

 Represents a tuple of `Value`.
 
.tensorflow.TupleValue tuple_value = 52;

pubblico booleano hasTypeSpecValue ()

 Represents a value for tf.TypeSpec.
 
.tensorflow.TypeSpecProto type_spec_value = 34;

public int hashCode ()

public final booleano isInitialized ()

public static StructuredValue.Builder newBuilder (prototipo StructuredValue )

public static StructuredValue.Builder newBuilder ()

public StructuredValue.Builder newBuilderForType ()

public static StructuredValue parseDelimitedFrom (input InputStream)

Lancia
IOException

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

Lancia
IOException

parseFrom pubblico statico StructuredValue (dati ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lancia
InvalidProtocolBufferException

parseFrom pubblico statico StructuredValue (input com.google.protobuf.CodedInputStream)

Lancia
IOException

parseFrom pubblico statico StructuredValue (byte[] dati, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lancia
InvalidProtocolBufferException

parseFrom pubblico statico StructuredValue (dati ByteBuffer)

Lancia
InvalidProtocolBufferException

parseFrom pubblico statico StructuredValue (input com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lancia
IOException

parseFrom pubblico statico StructuredValue (dati com.google.protobuf.ByteString)

Lancia
InvalidProtocolBufferException

parseFrom pubblico statico StructuredValue (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lancia
IOException

parseFrom pubblico statico StructuredValue (dati com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Lancia
InvalidProtocolBufferException

pubblico statico analizzatore ()

public StructuredValue.Builder toBuilder ()

public void writeTo (output com.google.protobuf.CodedOutputStream)

Lancia
IOException