StructuredValue kelas akhir publik
`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.Tipe protobuf
tensorflow.StructuredValue
Kelas Bersarang
kelas | Nilai Terstruktur.Pembangun | `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 | Nilai Terstruktur.KindCase |
Konstanta
ke dalam | BOOL_VALUE_FIELD_NUMBER | |
ke dalam | BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER | |
ke dalam | DICT_VALUE_FIELD_NUMBER | |
ke dalam | FLOAT64_VALUE_FIELD_NUMBER | |
ke dalam | INT64_VALUE_FIELD_NUMBER | |
ke dalam | LIST_VALUE_FIELD_NUMBER | |
ke dalam | NAMED_TUPLE_VALUE_FIELD_NUMBER | |
ke dalam | NONE_VALUE_FIELD_NUMBER | |
ke dalam | STRING_VALUE_FIELD_NUMBER | |
ke dalam | TENSOR_DTYPE_VALUE_FIELD_NUMBER | |
ke dalam | TENSOR_SHAPE_VALUE_FIELD_NUMBER | |
ke dalam | TENSOR_SPEC_VALUE_FIELD_NUMBER | |
ke dalam | TUPLE_VALUE_FIELD_NUMBER | |
ke dalam | TYPE_SPEC_VALUE_FIELD_NUMBER |
Metode Publik
boolean | sama dengan (Objek objek) |
boolean | dapatkanBoolValue () Represents a boolean value. |
BoundedTensorSpecProto | getBoundedTensorSpecValue () Represents a value for tf.BoundedTensorSpec. |
BoundedTensorSpecProtoOrBuilder | getBoundedTensorSpecValueOrBuilder () Represents a value for tf.BoundedTensorSpec. |
Nilai Terstruktur statis | |
Nilai Terstruktur | |
com.google.protobuf.Descriptors.Descriptor statis terakhir | |
Nilai Dict | dapatkanDictValue () Represents a dict `Value`. |
DictValueOrBuilder | dapatkanDictValueOrBuilder () Represents a dict `Value`. |
dobel | dapatkanFloat64Nilai () Represents a double-precision floating-point value (a Python `float`). |
panjang | dapatkanInt64Nilai () Represents a signed integer value, limited to 64 bits. |
Nilai Terstruktur.KindCase | |
DaftarNilai | dapatkanNilaiDaftar () Represents a list of `Value`. |
DaftarValueOrBuilder | dapatkanListValueOrBuilder () Represents a list of `Value`. |
BernamaTupleValue | getNamedTupleValue () Represents Python's namedtuple. |
BernamaTupleValueOrBuilder | getNamedTupleValueOrBuilder () Represents Python's namedtuple. |
Tidak adaNilai | dapatkanNoneValue () Represents None. |
NoneValueOrBuilder | dapatkanNoneValueOrBuilder () Represents None. |
ke dalam | |
Rangkaian | dapatkanStringValue () Represents a string of Unicode characters stored in a Python `str`. |
com.google.protobuf.ByteString | dapatkanStringValueBytes () Represents a string of Unicode characters stored in a Python `str`. |
Tipe Data | dapatkanTensorDtypeValue () Represents an enum value for dtype. |
ke dalam | dapatkanTensorDtypeValueValue () Represents an enum value for dtype. |
TensorBentukProto | dapatkanTensorShapeValue () Represents a TensorShape. |
TensorShapeProtoOrBuilder | dapatkanTensorShapeValueOrBuilder () Represents a TensorShape. |
TensorSpecProto | dapatkanTensorSpecValue () Represents a value for tf.TensorSpec. |
TensorSpecProtoOrBuilder | dapatkanTensorSpecValueOrBuilder () Represents a value for tf.TensorSpec. |
Nilai Tuple | dapatkanTupleValue () Represents a tuple of `Value`. |
TupleValueOrBuilder | dapatkanTupleValueOrBuilder () Represents a tuple of `Value`. |
TypeSpecProto | getTypeSpecValue () Represents a value for tf.TypeSpec. |
TypeSpecProtoOrBuilder | 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 | memilikiNoneValue () 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. |
ke dalam | Kode hash () |
boolean terakhir | |
StructuredValue.Builder statis | newBuilder (prototipe StructuredValue ) |
StructuredValue.Builder statis | |
Nilai Terstruktur.Pembangun | |
Nilai Terstruktur statis | parseDelimitedFrom (masukan Aliran Masukan) |
Nilai Terstruktur statis | parseDelimitedFrom (masukan InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Nilai Terstruktur statis | parseFrom (data ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Nilai Terstruktur statis | parseFrom (com.google.protobuf.CodedInputStream masukan) |
Nilai Terstruktur statis | parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Nilai Terstruktur statis | parseFrom (data ByteBuffer) |
Nilai Terstruktur statis | parseFrom (com.google.protobuf.CodedInputStream masukan, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Nilai Terstruktur statis | parseFrom (com.google.protobuf.ByteString data) |
Nilai Terstruktur statis | parseFrom (masukan InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Nilai Terstruktur statis | parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
statis | pengurai () |
Nilai Terstruktur.Pembangun | |
ruang kosong | writeTo (com.google.protobuf.CodedOutputStream keluaran) |
Metode Warisan
Konstanta
int akhir statis publik BOOL_VALUE_FIELD_NUMBER
Nilai Konstan: 14
int final statis publik BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER
Nilai Konstan: 35
int final statis publik DICT_VALUE_FIELD_NUMBER
Nilai Konstan: 53
int final statis publik FLOAT64_VALUE_FIELD_NUMBER
Nilai Konstan: 11
int final statis publik INT64_VALUE_FIELD_NUMBER
Nilai Konstan: 12
int akhir statis publik LIST_VALUE_FIELD_NUMBER
Nilai Konstan: 51
int akhir statis publik NAMED_TUPLE_VALUE_FIELD_NUMBER
Nilai Konstan: 54
int final statis publik NONE_VALUE_FIELD_NUMBER
Nilai Konstan: 1
int final statis publik STRING_VALUE_FIELD_NUMBER
Nilai Konstan: 13
int akhir statis publik TENSOR_DTYPE_VALUE_FIELD_NUMBER
Nilai Konstan: 32
int final statis publik TENSOR_SHAPE_VALUE_FIELD_NUMBER
Nilai Konstan: 31
int final statis publik TENSOR_SPEC_VALUE_FIELD_NUMBER
Nilai Konstan: 33
int akhir statis publik TUPLE_VALUE_FIELD_NUMBER
Nilai Konstan: 52
int akhir statis publik TYPE_SPEC_VALUE_FIELD_NUMBER
Nilai Konstan: 34
Metode Publik
boolean publik sama (Obj objek)
getBoolValue boolean publik ()
Represents a boolean value.
bool bool_value = 14;
publik BoundedTensorSpecProto getBoundedTensorSpecValue ()
Represents a value for tf.BoundedTensorSpec.
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;
publik BoundedTensorSpecProtoOrBuilder getBoundedTensorSpecValueOrBuilder ()
Represents a value for tf.BoundedTensorSpec.
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
DictValueOrBuilder publik getDictValueOrBuilder ()
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;
getFloat64Value ganda publik ()
Represents a double-precision floating-point value (a Python `float`).
double float64_value = 11;
getInt64Value panjang publik ()
Represents a signed integer value, limited to 64 bits. Larger values from Python's arbitrary-precision integers are unsupported.
sint64 int64_value = 12;
ListValue publik getListValue ()
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;
ListValueOrBuilder publik getListValueOrBuilder ()
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;
NamedTupleValue publik getNamedTupleValue ()
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;
publik NamedTupleValueOrBuilder getNamedTupleValueOrBuilder ()
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;
publik NoneValueOrBuilder getNoneValueOrBuilder ()
Represents None.
.tensorflow.NoneValue none_value = 1;
publik dapatkanParserForType ()
publik int getSerializedSize ()
String publik 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;
com.google.protobuf.ByteString publik 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;
Tipe Data publik getTensorDtypeValue ()
Represents an enum value for dtype.
.tensorflow.DataType tensor_dtype_value = 32;
int publik getTensorDtypeValueValue ()
Represents an enum value for dtype.
.tensorflow.DataType tensor_dtype_value = 32;
TensorShapeProto publik untuk mendapatkanTensorShapeValue ()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;
TensorShapeProtoOrBuilder publik getTensorShapeValueOrBuilder ()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;
TensorSpecProto publik dapatkanTensorSpecValue ()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;
TensorSpecProtoOrBuilder publik getTensorSpecValueOrBuilder ()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;
TupleValue publik getTupleValue ()
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;
publik TupleValueOrBuilder getTupleValueOrBuilder ()
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;
TypeSpecProto publik getTypeSpecValue ()
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;
TypeSpecProtoOrBuilder publik getTypeSpecValueOrBuilder ()
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;
public final com.google.protobuf.UnknownFieldSet getUnknownFields ()
boolean publik hasBoundedTensorSpecValue ()
Represents a value for tf.BoundedTensorSpec.
.tensorflow.BoundedTensorSpecProto bounded_tensor_spec_value = 35;
boolean publik hasDictValue ()
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;
boolean publik hasListValue ()
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;
boolean publik hasNamedTupleValue ()
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;
boolean publik hasNoneValue ()
Represents None.
.tensorflow.NoneValue none_value = 1;
boolean publik hasTensorShapeValue ()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;
boolean publik hasTensorSpecValue ()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;
boolean publik hasTupleValue ()
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;
boolean publik hasTypeSpecValue ()
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;
kode hash int publik ()
boolean akhir publik diinisialisasi ()
public static StructuredValue parseDelimitedFrom (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
Pengecualian IO |
---|
parseFrom StructuredValue statis publik (data ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
ProtokolBufferException Tidak Valid |
---|
parseFrom StructuredValue statis publik (com.google.protobuf.CodedInputStream input)
Melempar
Pengecualian IO |
---|
parseFrom StructuredValue statis publik (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
ProtokolBufferException Tidak Valid |
---|
parseFrom StructuredValue statis publik (data ByteBuffer)
Melempar
ProtokolBufferException Tidak Valid |
---|
parseFrom StructuredValue statis publik (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
Pengecualian IO |
---|
parseFrom StructuredValue statis publik (com.google.protobuf.ByteString data)
Melempar
ProtokolBufferException Tidak Valid |
---|
parseFrom StructuredValue statis publik (input InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
Pengecualian IO |
---|
parseFrom StructuredValue statis publik (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Melempar
ProtokolBufferException Tidak Valid |
---|
statis publik pengurai ()
public void writeTo (com.google.protobuf.CodedOutputStream keluaran)
Melempar
Pengecualian IO |
---|