StructuredValue

کلاس نهایی عمومی 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 tensorflow.StructuredValue

کلاس های تو در تو

کلاس 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

ثابت ها

بین المللی BOOL_VALUE_FIELD_NUMBER
بین المللی BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER
بین المللی DICT_VALUE_FIELD_NUMBER
بین المللی FLOAT64_VALUE_FIELD_NUMBER
بین المللی INT64_VALUE_FIELD_NUMBER
بین المللی LIST_VALUE_FIELD_NUMBER
بین المللی NAMED_TUPLE_VALUE_FIELD_NUMBER
بین المللی NONE_VALUE_FIELD_NUMBER
بین المللی STRING_VALUE_FIELD_NUMBER
بین المللی TENSOR_DTYPE_VALUE_FIELD_NUMBER
بین المللی TENSOR_SHAPE_VALUE_FIELD_NUMBER
بین المللی TENSOR_SPEC_VALUE_FIELD_NUMBER
بین المللی TUPLE_VALUE_FIELD_NUMBER
بین المللی TYPE_SPEC_VALUE_FIELD_NUMBER

روش های عمومی

بولی
برابر است (object obj)
بولی
getBoolValue ()
 Represents a boolean value.
BoundedTensorSpecProto
getBoundedTensorSpecValue ()
 Represents a value for tf.BoundedTensorSpec.
BoundedTensorSpecProtoOrBuilder
getBoundedTensorSpecValueOrBuilder ()
 Represents a value for tf.BoundedTensorSpec.
استاتیک StructuredValue
StructuredValue
نهایی static com.google.protobuf.Descriptors.Descriptor
DictValue
getDictValue ()
 Represents a dict `Value`.
DictValueOrBuilder
getDictValueOrBuilder ()
 Represents a dict `Value`.
دو برابر
getFloat64Value ()
 Represents a double-precision floating-point value (a Python `float`).
طولانی
getInt64Value ()
 Represents a signed integer value, limited to 64 bits.
StructuredValue.KindCase
ListValue
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.
NoneValue
getNoneValue ()
 Represents None.
NoneValueOrBuilder
getNoneValueOrBuilder ()
 Represents None.
بین المللی
رشته
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`.
نوع داده
getTensorDtypeValue ()
 Represents an enum value for dtype.
بین المللی
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.
com.google.protobuf.UnknownFieldSet نهایی
بولی
hasBoundedTensorSpecValue ()
 Represents a value for tf.BoundedTensorSpec.
بولی
hasDictValue ()
 Represents a dict `Value`.
بولی
hasListValue ()
 Represents a list of `Value`.
بولی
hasNamedTupleValue ()
 Represents Python's namedtuple.
بولی
hasNoneValue ()
 Represents None.
بولی
hasTensorShapeValue ()
 Represents a TensorShape.
بولی
hasTensorSpecValue ()
 Represents a value for tf.TensorSpec.
بولی
hasTupleValue ()
 Represents a tuple of `Value`.
بولی
hasTypeSpecValue ()
 Represents a value for tf.TypeSpec.
بین المللی
بولی نهایی
Static StructuredValue.Builder
newBuilder (نمونه اولیه StructuredValue )
Static StructuredValue.Builder
StructuredValue.Builder
استاتیک StructuredValue
parseDelimitedFrom (ورودی جریان ورودی)
استاتیک StructuredValue
parseDelimitedFrom (ورودی InputStream، com.google.protobuf.ExtensionRegistryLite extensionRegistry)
استاتیک StructuredValue
parseFrom (داده‌های ByteBuffer، com.google.protobuf.ExtensionRegistryLite extensionRegistry)
استاتیک StructuredValue
parseFrom (ورودی com.google.protobuf.CodedInputStream)
استاتیک StructuredValue
parseFrom (بایت[] داده، com.google.protobuf.ExtensionRegistryLite extensionRegistry)
استاتیک StructuredValue
parseFrom (داده های ByteBuffer)
استاتیک StructuredValue
parseFrom (ورودی com.google.protobuf.CodedInputStream، com.google.protobuf.ExtensionRegistryLite extensionRegistry)
استاتیک StructuredValue
parseFrom (داده های com.google.protobuf.ByteString)
استاتیک StructuredValue
parseFrom (ورودی InputStream، com.google.protobuf.ExtensionRegistryLite extensionRegistry)
استاتیک StructuredValue
parseFrom (داده‌های com.google.protobuf.ByteString، com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ایستا
StructuredValue.Builder
خالی
writeTo (خروجی com.google.protobuf.CodedOutputStream)

روش های ارثی

ثابت ها

نهایی استاتیک عمومی BOOL_VALUE_FIELD_NUMBER

ارزش ثابت: 14

نهایی استاتیک عمومی BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER

مقدار ثابت: 35

نهایی استاتیک عمومی DICT_VALUE_FIELD_NUMBER

مقدار ثابت: 53

نهایی استاتیک عمومی FLOAT64_VALUE_FIELD_NUMBER

ارزش ثابت: 11

نهایی استاتیک عمومی INT64_VALUE_FIELD_NUMBER

ارزش ثابت: 12

نهایی استاتیک عمومی LIST_VALUE_FIELD_NUMBER

ارزش ثابت: 51

نهایی استاتیک عمومی NAMED_TUPLE_VALUE_FIELD_NUMBER

ارزش ثابت: 54

نهایی استاتیک عمومی NONE_VALUE_FIELD_NUMBER

ارزش ثابت: 1

نهایی استاتیک عمومی STRING_VALUE_FIELD_NUMBER

ارزش ثابت: 13

نهایی استاتیک عمومی TENSOR_DTYPE_VALUE_FIELD_NUMBER

مقدار ثابت: 32

نهایی استاتیک عمومی TENSOR_SHAPE_VALUE_FIELD_NUMBER

مقدار ثابت: 31

نهایی استاتیک عمومی TENSOR_SPEC_VALUE_FIELD_NUMBER

مقدار ثابت: 33

نهایی استاتیک عمومی TUPLE_VALUE_FIELD_NUMBER

مقدار ثابت: 52

نهایی استاتیک عمومی TYPE_SPEC_VALUE_FIELD_NUMBER

مقدار ثابت: 34

روش های عمومی

بولین عمومی برابر است (Object Obj)

بولی عمومی getBoolValue ()

 Represents a boolean value.
 
bool bool_value = 14;

عمومی BoundedTensorSpecProto getBoundedTensorSpecValue ()

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

عمومی BoundedTensorSpecProtoOrBuilder getBoundedTensorSpecValueOrBuilder ()

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

عمومی static StructuredValue getDefaultInstance ()

عمومی StructuredValue getDefaultInstanceForType ()

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

عمومی DictValue getDictValue ()

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

عمومی DictValueOrBuilder getDictValueOrBuilder ()

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

عمومی دوبل getFloat64Value ()

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

public long getInt64Value ()

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

عمومی StructuredValue.KindCase getKindCase ()

عمومی ListValue getListValue ()

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

عمومی ListValueOrBuilder getListValueOrBuilder ()

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

عمومی NamedTupleValue getNamedTupleValue ()

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

عمومی NamedTupleValueOrBuilder getNamedTupleValueOrBuilder ()

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

عمومی NoneValue getNoneValue ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

عمومی NoneValueOrBuilder getNoneValueOrBuilder ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

عمومی getParserForType ()

عمومی int getSerializedSize ()

رشته عمومی 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 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;

عمومی DataType getTensorDtypeValue ()

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

عمومی int getTensorDtypeValueValue ()

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

عمومی TensorShapeProto getTensorShapeValue ()

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

عمومی TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder ()

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

عمومی TensorSpecProto getTensorSpecValue ()

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

عمومی TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder ()

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

عمومی TupleValue getTupleValue ()

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

عمومی TupleValueOrBuilder getTupleValueOrBuilder ()

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

عمومی TypeSpecProto getTypeSpecValue ()

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

عمومی TypeSpecProtoOrBuilder getTypeSpecValueOrBuilder ()

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

عمومی نهایی com.google.protobuf.UnknownFieldSet getUnknownFields ()

بولی عمومی hasBoundedTensorSpecValue ()

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

بولی عمومی hasDictValue ()

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

hasListValue بولی عمومی ()

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

بولی عمومی hasNamedTupleValue ()

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

بولین عمومی hasNoneValue ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

بولی عمومی hasTensorShapeValue ()

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

بولی عمومی hasTensorSpecValue ()

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

بولی عمومی hasTupleValue ()

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

بولی عمومی hasTypeSpecValue ()

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

هش کد عمومی ()

بولین نهایی عمومی isInitialized ()

عمومی static StructuredValue.Builder newBuilder (نمونه اولیه StructuredValue )

عمومی static StructuredValue.Builder newBuilder ()

عمومی StructuredValue.Builder newBuilderForType ()

عمومی static StructuredValue parseDelimitedFrom (ورودی جریان ورودی)

پرتاب می کند
IOException

عمومی static StructuredValue parseDelimitedFrom (ورودی InputStream، com.google.protobuf.ExtensionRegistryLite extensionRegistry)

پرتاب می کند
IOException

عمومی static StructuredValue parseFrom (داده های ByteBuffer، com.google.protobuf.ExtensionRegistryLite extensionRegistry)

پرتاب می کند
InvalidProtocolBufferException

عمومی static StructuredValue parseFrom (ورودی com.google.protobuf.CodedInputStream)

پرتاب می کند
IOException

عمومی static StructuredValue parseFrom (بایت[] داده، com.google.protobuf.ExtensionRegistryLite extensionRegistry)

پرتاب می کند
InvalidProtocolBufferException

عمومی static StructuredValue parseFrom (داده ByteBuffer)

پرتاب می کند
InvalidProtocolBufferException

عمومی static StructuredValue parseFrom (ورودی com.google.protobuf.CodedInputStream، com.google.protobuf.ExtensionRegistryLite extensionRegistry)

پرتاب می کند
IOException

عمومی static StructuredValue parseFrom (داده های com.google.protobuf.ByteString)

پرتاب می کند
InvalidProtocolBufferException

عمومی static StructuredValue parseFrom (ورودی InputStream، com.google.protobuf.ExtensionRegistryLite extensionRegistry)

پرتاب می کند
IOException

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

پرتاب می کند
InvalidProtocolBufferException

استاتیک عمومی تجزیه کننده ()

عمومی StructuredValue.Builder toBuilder ()

public void writeTo (خروجی com.google.protobuf.CodedOutputStream)

پرتاب می کند
IOException