genel final sınıfı 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 türü
tensorflow.StructuredValue
İç İçe Sınıflar
sınıf | 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. | |
numaralandırma | StructuredValue.KindCase |
Sabitler
Genel Yöntemler
boolean | eşittir (Nesne nesnesi) |
boolean | getBoolValue () Represents a boolean value. |
SınırlıTensorSpecProto | getBoundedTensorSpecValue () Represents a value for tf.BoundedTensorSpec. |
SınırlıTensorSpecProtoOrBuilder | getBoundedTensorSpecValueOrBuilder () Represents a value for tf.BoundedTensorSpec. |
statik Yapılandırılmış Değer | |
Yapılandırılmış Değer | |
final statik com.google.protobuf.Descriptors.Descriptor | |
Dikt Değeri | getDictValue () Represents a dict `Value`. |
DictValueOrBuilder | getDictValueOrBuilder () Represents a dict `Value`. |
çift | getFloat64Value () Represents a double-precision floating-point value (a Python `float`). |
uzun | getInt64Value () Represents a signed integer value, limited to 64 bits. |
StructuredValue.KindCase | getKindCase () |
Liste Değeri | getListValue () Represents a list of `Value`. |
ListValueOrBuilder | getListValueOrBuilder () Represents a list of `Value`. |
NamedTupleValue | getNamedTupleValue () Represents Python's namedtuple. |
NamedTupleValueOrBuilder | getNamedTupleValueOrBuilder () Represents Python's namedtuple. |
YokDeğer | getNoneValue () Represents None. |
HiçbiriDeğerVeyaOluşturucu | getNoneValueOrBuilder () Represents None. |
int | |
Sicim | 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`. |
Veri Türü | 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`. |
TipSpecProto | getTypeSpecValue () Represents a value for tf.TypeSpec. |
TipSpecProtoOrBuilder | getTypeSpecValueOrBuilder () Represents a value for tf.TypeSpec. |
final com.google.protobuf.UnknownFieldSet | |
boolean | hasBoundedTensorSpecValue () Represents a value for tf.BoundedTensorSpec. |
boolean | hasDictValue () Represents a dict `Value`. |
boolean | hasListValue () Represents a list of `Value`. |
boolean | hasNamedTupleValue () Represents Python's namedtuple. |
boolean | hasNoneValue () Represents None. |
boolean | hasTensorShapeValue () Represents a TensorShape. |
boolean | hasTensorSpecValue () Represents a value for tf.TensorSpec. |
boolean | hasTupleValue () Represents a tuple of `Value`. |
boolean | hasTypeSpecValue () Represents a value for tf.TypeSpec. |
int | hashKodu () |
son boole değeri | Başlatıldı () |
statik StructuredValue.Builder | newBuilder ( StructuredValue prototipi) |
statik StructuredValue.Builder | yeniİnşaatçı () |
StructuredValue.Builder | |
statik Yapılandırılmış Değer | parseDelimitedFrom (InputStream girişi) |
statik Yapılandırılmış Değer | parseDelimitedFrom (InputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik Yapılandırılmış Değer | parseFrom (ByteBuffer verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik Yapılandırılmış Değer | ayrıştırmaFrom (com.google.protobuf.CodedInputStream girişi) |
statik Yapılandırılmış Değer | parseFrom (byte[] verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik Yapılandırılmış Değer | parseFrom (ByteBuffer verileri) |
statik Yapılandırılmış Değer | parseFrom (com.google.protobuf.CodedInputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik Yapılandırılmış Değer | ayrıştırmaFrom (com.google.protobuf.ByteString verileri) |
statik Yapılandırılmış Değer | parseFrom (InputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik Yapılandırılmış Değer | parseFrom (com.google.protobuf.ByteString verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statik | ayrıştırıcı () |
StructuredValue.Builder | inşaatçıya () |
geçersiz | writeTo (com.google.protobuf.CodedOutputStream çıkışı) |
Kalıtsal Yöntemler
Sabitler
genel statik final int BOOL_VALUE_FIELD_NUMBER
Sabit Değer: 14
genel statik final int BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER
Sabit Değer: 35
genel statik final int DICT_VALUE_FIELD_NUMBER
Sabit Değer: 53
genel statik final int FLOAT64_VALUE_FIELD_NUMBER
Sabit Değer: 11
genel statik final int INT64_VALUE_FIELD_NUMBER
Sabit Değer: 12
genel statik final int LIST_VALUE_FIELD_NUMBER
Sabit Değer: 51
genel statik final int NAMED_TUPLE_VALUE_FIELD_NUMBER
Sabit Değer: 54
genel statik final int NONE_VALUE_FIELD_NUMBER
Sabit Değer: 1
genel statik final int STRING_VALUE_FIELD_NUMBER
Sabit Değer: 13
genel statik final int TENSOR_DTYPE_VALUE_FIELD_NUMBER
Sabit Değer: 32
genel statik final int TENSOR_SHAPE_VALUE_FIELD_NUMBER
Sabit Değer: 31
genel statik final int TENSOR_SPEC_VALUE_FIELD_NUMBER
Sabit Değer: 33
genel statik final int TUPLE_VALUE_FIELD_NUMBER
Sabit Değer: 52
genel statik final int TYPE_SPEC_VALUE_FIELD_NUMBER
Sabit Değer: 34
Genel Yöntemler
genel boole eşittir (Object obj)
genel boolean 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 final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
genel DictValueOrBuilder getDictValueOrBuilder ()
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;
halka açık çift getFloat64Value ()
Represents a double-precision floating-point value (a Python `float`).
double float64_value = 11;
halka açık uzun 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 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;
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 YokValueOrBuilder getNoneValueOrBuilder ()
Represents None.
.tensorflow.NoneValue none_value = 1;
halk getParserForType ()
public int getSerializedSize ()
genel Dize 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;
genel 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;
herkese açık TensorShapeProto getTensorShapeValue ()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;
herkese açık TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder ()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;
genel TensorSpecProto getTensorSpecValue ()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;
herkese açık TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder ()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;
herkese açık 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;
genel 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;
genel final com.google.protobuf.UnknownFieldSet getUnknownFields ()
genel boolean hasBoundedTensorSpecValue ()
Represents a value for tf.BoundedTensorSpec.
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;
genel boolean hasDictValue ()
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;
genel boolean hasListValue ()
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;
genel boolean hasNamedTupleValue ()
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;
genel boolean hasNoneValue ()
Represents None.
.tensorflow.NoneValue none_value = 1;
genel boolean hasTensorShapeValue ()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;
genel boolean hasTensorSpecValue ()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;
genel boolean hasTupleValue ()
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;
genel boolean hasTypeSpecValue ()
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;
genel int hashCode ()
genel final boolean isInitialized ()
public static StructuredValue parseDelimitedFrom (InputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
IOİstisnası |
---|
public static StructuredValue parseFrom (ByteBuffer verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
Geçersiz ProtokolBufferException |
---|
public static StructuredValue ayrıştırmaFrom (com.google.protobuf.CodedInputStream girişi)
Atar
IOİstisnası |
---|
public static StructuredValue parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
Geçersiz ProtokolBufferException |
---|
public static StructuredValue parseFrom (com.google.protobuf.CodedInputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
IOİstisnası |
---|
genel statik StructuredValue ayrıştırmaFrom (com.google.protobuf.ByteString verileri)
Atar
Geçersiz ProtokolBufferException |
---|
public static StructuredValue parseFrom (InputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
IOİstisnası |
---|
genel statik StructuredValue ayrıştırmaFrom (com.google.protobuf.ByteString verileri, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Atar
Geçersiz ProtokolBufferException |
---|
genel statik ayrıştırıcı ()
genel geçersiz writeTo (com.google.protobuf.CodedOutputStream çıkışı)
Atar
IOİstisnası |
---|