StructuredValue

publiczna klasa końcowa 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.
 
Protobuf typu tensorflow.StructuredValue

Klasy zagnieżdżone

klasa 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. 
wyliczenie StructuredValue.KindCase

Stałe

wew BOOL_VALUE_FIELD_NUMBER
wew BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER
wew DICT_VALUE_FIELD_NUMBER
wew FLOAT64_VALUE_FIELD_NUMBER
wew INT64_VALUE_FIELD_NUMBER
wew LIST_VALUE_FIELD_NUMBER
wew NAMED_TUPLE_VALUE_FIELD_NUMBER
wew NONE_VALUE_FIELD_NUMBER
wew STRING_VALUE_FIELD_NUMBER
wew TENSOR_DTYPE_VALUE_FIELD_NUMBER
wew TENSOR_SHAPE_VALUE_FIELD_NUMBER
wew TENSOR_SPEC_VALUE_FIELD_NUMBER
wew TUPLE_VALUE_FIELD_NUMBER
wew TYPE_SPEC_VALUE_FIELD_NUMBER

Metody publiczne

wartość logiczna
równa się (obiekt obiektu)
wartość logiczna
getBoolValue ()
 Represents a boolean value.
Specyfikacja BoundedTensorProto
getBoundedTensorSpecValue ()
 Represents a value for tf.BoundedTensorSpec.
BoundedTensorSpecProtoOrBuilder
getBoundedTensorSpecValueOrBuilder ()
 Represents a value for tf.BoundedTensorSpec.
statyczna wartość strukturalna
Wartość strukturalna
końcowy statyczny com.google.protobuf.Descriptors.Descriptor
Wartość dyktowana
getDictValue ()
 Represents a dict `Value`.
DictValueOrBuilder
getDictValueOrBuilder ()
 Represents a dict `Value`.
podwójnie
getFloat64Value ()
 Represents a double-precision floating-point value (a Python `float`).
długi
getInt64Value ()
 Represents a signed integer value, limited to 64 bits.
StructuredValue.KindCase
ListaWartości
getListValue ()
 Represents a list of `Value`.
ListValueOrBuilder
getListValueOrBuilder ()
 Represents a list of `Value`.
NazwanaTupleValue
getNamedTupleValue ()
 Represents Python's namedtuple.
NazwanyTupleValueOrBuilder
getNamedTupleValueOrBuilder ()
 Represents Python's namedtuple.
BrakWartość
getNoneValue ()
 Represents None.
BrakWartośćOrBuilder
getNoneValueOrBuilder ()
 Represents None.
wew
Strunowy
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`.
Typ danych
getTensorDtypeValue ()
 Represents an enum value for dtype.
wew
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.
Wartość krotki
uzyskajTupleValue ()
 Represents a tuple of `Value`.
TupleValueOrBuilder
getTupleValueOrBuilder ()
 Represents a tuple of `Value`.
TypSpecProto
getTypeSpecValue ()
 Represents a value for tf.TypeSpec.
WpiszSpecProtoOrBuilder
getTypeSpecValueOrBuilder ()
 Represents a value for tf.TypeSpec.
końcowy com.google.protobuf.UnknownFieldSet
wartość logiczna
hasBoundedTensorSpecValue ()
 Represents a value for tf.BoundedTensorSpec.
wartość logiczna
maDictValue ()
 Represents a dict `Value`.
wartość logiczna
maListValue ()
 Represents a list of `Value`.
wartość logiczna
maNamedTupleValue ()
 Represents Python's namedtuple.
wartość logiczna
nie ma żadnej wartości ()
 Represents None.
wartość logiczna
maTensorShapeValue ()
 Represents a TensorShape.
wartość logiczna
maTensorSpecValue ()
 Represents a value for tf.TensorSpec.
wartość logiczna
maTupleValue ()
 Represents a tuple of `Value`.
wartość logiczna
maTypeSpecValue ()
 Represents a value for tf.TypeSpec.
wew
końcowa wartość logiczna
statyczny StructuredValue.Builder
statyczny StructuredValue.Builder
StructuredValue.Builder
statyczna wartość strukturalna
parseDelimitedFrom (wejście strumienia wejściowego)
statyczna wartość strukturalna
parseDelimitedFrom (dane wejścioweInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
statyczna wartość strukturalna
parseFrom (dane ByteBuffer, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
statyczna wartość strukturalna
parseFrom (wejście com.google.protobuf.CodedInputStream)
statyczna wartość strukturalna
parseFrom (bajt [] dane, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)
statyczna wartość strukturalna
parseFrom (dane ByteBuffer)
statyczna wartość strukturalna
parseFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
statyczna wartość strukturalna
parseFrom (dane com.google.protobuf.ByteString)
statyczna wartość strukturalna
parseFrom (dane wejścioweInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
statyczna wartość strukturalna
parseFrom (dane com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
statyczny
parser ()
StructuredValue.Builder
próżnia
writeTo (wyjście com.google.protobuf.CodedOutputStream)

Metody dziedziczone

Stałe

publiczny statyczny końcowy int BOOL_VALUE_FIELD_NUMBER

Wartość stała: 14

publiczny statyczny końcowy int BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER

Wartość stała: 35

publiczny statyczny końcowy int DICT_VALUE_FIELD_NUMBER

Wartość stała: 53

publiczny statyczny końcowy int FLOAT64_VALUE_FIELD_NUMBER

Wartość stała: 11

publiczny statyczny końcowy int INT64_VALUE_FIELD_NUMBER

Wartość stała: 12

publiczny statyczny końcowy int LIST_VALUE_FIELD_NUMBER

Wartość stała: 51

publiczny statyczny końcowy int NAMED_TUPLE_VALUE_FIELD_NUMBER

Wartość stała: 54

publiczny statyczny końcowy int NONE_VALUE_FIELD_NUMBER

Wartość stała: 1

publiczny statyczny końcowy int STRING_VALUE_FIELD_NUMBER

Wartość stała: 13

publiczny statyczny końcowy int TENSOR_DTYPE_VALUE_FIELD_NUMBER

Wartość stała: 32

publiczny statyczny końcowy int TENSOR_SHAPE_VALUE_FIELD_NUMBER

Wartość stała: 31

publiczny statyczny końcowy int TENSOR_SPEC_VALUE_FIELD_NUMBER

Wartość stała: 33

publiczny statyczny końcowy int TUPLE_VALUE_FIELD_NUMBER

Wartość stała: 52

publiczny statyczny końcowy int TYPE_SPEC_VALUE_FIELD_NUMBER

Wartość stała: 34

Metody publiczne

publiczna wartość logiczna równa się (obiekt obiektu)

publiczna wartość logiczna 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 ()

publiczny DictValue getDictValue ()

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

publiczny DictValueOrBuilder getDictValueOrBuilder ()

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

publiczny podwójny getFloat64Value ()

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

publiczny długi 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 ()

publiczna wartość listy getListValue ()

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

public ListValueOrBuilder getListValueOrBuilder ()

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

public NamedTupleValue getNamedTupleValue ()

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

public NamedTupleValueOrBuilder getNamedTupleValueOrBuilder ()

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

public NoneValue getNoneValue ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

public NoneValueOrBuilder getNoneValueOrBuilder ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

publiczny getParserForType ()

publiczny int getSerializedSize ()

publiczny ciąg 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;

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

publiczny typ danych 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;

publiczny TensorShapeProto getTensorShapeValue ()

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

publiczny TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder ()

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

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

publiczna wartość TupleValue getTupleValue ()

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

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

publiczny finał com.google.protobuf.UnknownFieldSet getUnknownFields ()

publiczna wartość logiczna hasBoundedTensorSpecValue ()

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

publiczna wartość logiczna maDictValue ()

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

publiczna wartość logiczna hasListValue ()

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

publiczna wartość logiczna maNamedTupleValue ()

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

publiczna wartość logiczna maNoneValue ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

publiczna wartość logiczna maTensorShapeValue ()

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

publiczna wartość logiczna hasTensorSpecValue ()

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

publiczna wartość logiczna hasTupleValue ()

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

publiczna wartość logiczna hasTypeSpecValue ()

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

publiczny int hashCode ()

publiczna końcowa wartość logiczna isInitialized ()

public static StructuredValue.Builder newBuilder (prototyp StructuredValue )

public static StructuredValue.Builder newBuilder ()

public StructuredValue.Builder newBuilderForType ()

public static StructuredValue parseDelimitedFrom (wejścieInputStream)

Rzuca
Wyjątek IO

public static StructuredValue parseDelimitedFrom (dane wejścioweInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Rzuca
Wyjątek IO

public static StructuredValue parseFrom (dane ByteBuffer, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Rzuca
Nieprawidłowy wyjątekProtocolBufferException

public static StructuredValue parseFrom (wejście com.google.protobuf.CodedInputStream)

Rzuca
Wyjątek IO

public static StructuredValue parseFrom (bajt [] dane, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)

Rzuca
Nieprawidłowy wyjątekProtocolBufferException

public static StructuredValue parseFrom (dane ByteBuffer)

Rzuca
Nieprawidłowy wyjątekProtocolBufferException

public static StructuredValue parseFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Rzuca
Wyjątek IO

public static StructuredValue parseFrom (dane com.google.protobuf.ByteString)

Rzuca
Nieprawidłowy wyjątekProtocolBufferException

public static StructuredValue parseFrom (dane wejścioweInputStream, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)

Rzuca
Wyjątek IO

public static StructuredValue parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Rzuca
Nieprawidłowy wyjątekProtocolBufferException

publiczna statyka parser ()

public StructuredValue.Builder toBuilder ()

public void writeTo (wyjście com.google.protobuf.CodedOutputStream)

Rzuca
Wyjątek IO