StructuredValue

lớp cuối cùng công khai 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.
 
Tenorflow loại tensorflow.StructuredValue

Các lớp lồng nhau

lớp học 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. 
liệt kê StructuredValue.KindCase

Hằng số

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 NONE_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

Phương pháp công khai

boolean
bằng (Đối tượng obj)
boolean
getBoolValue ()
 Represents a boolean value.
Giới hạn TensorSpecProto
getBoundedTensorSpecValue ()
 Represents a value for tf.BoundedTensorSpec.
BoundedTensorSpecProtoOrBuilder
getBoundedTensorSpecValueOrBuilder ()
 Represents a value for tf.BoundedTensorSpec.
Giá trị cấu trúc tĩnh
Giá trị có cấu trúc
com.google.protobuf.Descriptors.Descriptor tĩnh cuối cùng
Giá trị Dict
getDictValue ()
 Represents a dict `Value`.
DictValueOrBuilder
getDictValueOrBuilder ()
 Represents a dict `Value`.
gấp đôi
getFloat64Value ()
 Represents a double-precision floating-point value (a Python `float`).
dài
getInt64Value ()
 Represents a signed integer value, limited to 64 bits.
StructuredValue.KindCase
Danh sách Giá trị
getListValue ()
 Represents a list of `Value`.
ListValueOrBuilder
getListValueOrBuilder ()
 Represents a list of `Value`.
Được đặt tênTupleValue
getNamedTupleValue ()
 Represents Python's namedtuple.
Được đặt tênTupleValueOrBuilder
getNamedTupleValueOrBuilder ()
 Represents Python's namedtuple.
Không có giá trị
getNoneValue ()
 Represents None.
NoneValueOrBuilder
getNoneValueOrBuilder ()
 Represents None.
int
Sợi dây
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`.
Loại dữ liệu
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`.
LoạiSpecProto
getTypeSpecValue ()
 Represents a value for tf.TypeSpec.
LoạiSpecProtoOrBuilder
getTypeSpecValueOrBuilder ()
 Represents a value for tf.TypeSpec.
com.google.protobuf.UnknownFieldSet cuối cùng
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
boolean cuối cùng
StructuredValue.Builder tĩnh
newBuilder (nguyên mẫu StructuredValue )
StructuredValue.Builder tĩnh
StructuredValue.Builder
Giá trị cấu trúc tĩnh
phân tích cú phápDelimitedFrom (Đầu vào luồng đầu vào)
Giá trị cấu trúc tĩnh
phân tích cú phápDelimitedFrom (Đầu vào luồng đầu vào, com.google.protobuf.ExtensionRegistryLite tiện ích mở rộngRegistry)
Giá trị cấu trúc tĩnh
ParseFrom (Dữ liệu ByteBuffer, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Giá trị cấu trúc tĩnh
ParseFrom (đầu vào com.google.protobuf.CodedInputStream)
Giá trị cấu trúc tĩnh
ParseFrom (dữ liệu byte[], com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Giá trị cấu trúc tĩnh
ParseFrom (dữ liệu ByteBuffer)
Giá trị cấu trúc tĩnh
ParseFrom (đầu vào com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Giá trị cấu trúc tĩnh
ParseFrom (dữ liệu com.google.protobuf.ByteString)
Giá trị cấu trúc tĩnh
ParseFrom (Đầu vào inputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
Giá trị cấu trúc tĩnh
ParsFrom (dữ liệu com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
tĩnh
StructuredValue.Builder
trống rỗng
writeTo (đầu ra com.google.protobuf.CodedOutputStream)

Phương pháp kế thừa

Hằng số

int tĩnh cuối cùng BOOL_VALUE_FIELD_NUMBER

Giá trị không đổi: 14

int tĩnh công khai BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER

Giá trị không đổi: 35

int cuối cùng tĩnh công khai DICT_VALUE_FIELD_NUMBER

Giá trị không đổi: 53

int tĩnh công khai FLOAT64_VALUE_FIELD_NUMBER

Giá trị không đổi: 11

int tĩnh công khai INT64_VALUE_FIELD_NUMBER

Giá trị không đổi: 12

int cuối cùng tĩnh công khai LIST_VALUE_FIELD_NUMBER

Giá trị không đổi: 51

int tĩnh công khai NAMED_TUPLE_VALUE_FIELD_NUMBER

Giá trị không đổi: 54

int tĩnh cuối cùng NONE_VALUE_FIELD_NUMBER

Giá trị không đổi: 1

int tĩnh cuối cùng STRING_VALUE_FIELD_NUMBER

Giá trị không đổi: 13

int cuối cùng tĩnh công khai TENSOR_DTYPE_VALUE_FIELD_NUMBER

Giá trị không đổi: 32

int tĩnh cuối cùng TENSOR_SHAPE_VALUE_FIELD_NUMBER

Giá trị không đổi: 31

int tĩnh cuối cùng TENSOR_SPEC_VALUE_FIELD_NUMBER

Giá trị không đổi: 33

int tĩnh công khai TUPLE_VALUE_FIELD_NUMBER

Giá trị không đổi: 52

int tĩnh công khai TYPE_SPEC_VALUE_FIELD_NUMBER

Giá trị không đổi: 34

Phương pháp công khai

boolean công khai bằng (Object obj)

boolean công khai 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 ()

công khai StructuredValue getDefaultInstanceForType ()

công khai tĩnh cuối cùng com.google.protobuf.Descriptors.Descriptor getDescriptor ()

DictValue công khai getDictValue ()

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

công khai DictValueOrBuilder getDictValueOrBuilder ()

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

công khai gấp đôi getFloat64Value ()

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

công khai getInt64Value ()

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

công khai StructuredValue.KindCase getKindCase ()

Danh sách công khai getListValue ()

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

ListValueOrBuilder công khai getListValueOrBuilder ()

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

công khai NamedTupleValue getNamedTupleValue ()

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

công khai NamedTupleValueOrBuilder getNamedTupleValueOrBuilder ()

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

công khai NoneValue getNoneValue ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

công khai NoneValueOrBuilder getNoneValueOrBuilder ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

công cộng getParserForType ()

int công khai getSerializedSize ()

Chuỗi công khai 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 () công khai

 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 công khai getTensorDtypeValue ()

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

int công khai getTensorDtypeValueValue ()

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

công khai TensorShapeProto getTensorShapeValue ()

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

công khai TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder ()

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

công khai TensorSpecProto getTensorSpecValue ()

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

công khai TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder ()

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

TupleValue công khai getTupleValue ()

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

công khai 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;

trận chung kết công khai com.google.protobuf.UnknownFieldSet getUnknownFields ()

boolean công khai hasBoundedTensorSpecValue ()

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

boolean công khai hasDictValue ()

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

boolean công khai hasListValue ()

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

boolean công khai hasNamedTupleValue ()

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

boolean công khai hasNoneValue ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

boolean công khai hasTensorShapeValue ()

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

boolean công khai hasTensorSpecValue ()

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

boolean công khai hasTupleValue ()

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

boolean công khai hasTypeSpecValue ()

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

mã băm int công khai ()

boolean cuối cùng công khai được khởi tạo ()

public static StructuredValue.Builder newBuilder (nguyên mẫu StructuredValue )

public static StructuredValue.Builder newBuilder ()

công khai StructuredValue.Builder newBuilderForType ()

public static StructuredValue phân tích cú phápDelimitedFrom (Đầu vào luồng đầu vào)

Ném
IOException

public static StructuredValue phân tích cú phápDelimitedFrom (đầu vào InputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Ném
IOException

public static StructuredValue phân tích cú phápFrom (dữ liệu ByteBuffer, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Ném
Giao thức đệm ngoại lệ không hợp lệ

phân tích cú pháp StructuredValue tĩnh công khaiFrom (đầu vào com.google.protobuf.CodedInputStream)

Ném
IOException

phân tích giá trị cấu trúc tĩnh công khaiTừ (dữ liệu byte[], com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Ném
Giao thức đệm ngoại lệ không hợp lệ

phân tích cú pháp StructuredValue tĩnh công khaiTừ (dữ liệu ByteBuffer)

Ném
Giao thức đệm ngoại lệ không hợp lệ

phân tích giá trị cấu trúc tĩnh công khaiFrom (đầu vào com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Ném
IOException

phân tích cú pháp StructuredValue tĩnh công khaiTừ (dữ liệu com.google.protobuf.ByteString)

Ném
Giao thức đệm ngoại lệ không hợp lệ

phân tích giá trị cấu trúc tĩnh công khaiFrom (Đầu vào luồng đầu vào, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Ném
IOException

phân tích giá trị cấu trúc tĩnh công khaiFrom (dữ liệu com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Ném
Giao thức đệm ngoại lệ không hợp lệ

công cộng tĩnh trình phân tích cú pháp ()

công khai StructuredValue.Builder toBuilder ()

public void writeTo (đầu ra com.google.protobuf.CodedOutputStream)

Ném
IOException