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.
 
tensorflow.StructuredValue מסוג Protobuf.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

קבועים

שיטות ציבוריות

בוליאני
שווה (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
final 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.
בשם TupleValueOrBuilder
getNamedTupleValueOrBuilder ()
 Represents Python's namedtuple.
NoneValue
getNoneValue ()
 Represents None.
NoneValueOrBuilder
getNoneValueOrBuilder ()
 Represents None.
int
חוּט
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`.
DataType
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`.
TypeSpecProto
getTypeSpecValue ()
 Represents a value for tf.TypeSpec.
TypeSpecProtoOrBuilder
getTypeSpecValueOrBuilder ()
 Represents a value for tf.TypeSpec.
final 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.
int
בוליאנית סופית
סטטי StructuredValue.Builder
newBuilder (אב טיפוס StructuredValue )
סטטי StructuredValue.Builder
StructuredValue.Builder
סטטי StructuredValue
parseDelimitedFrom (קלט InputStream)
סטטי StructuredValue
parseDelimitedFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
סטטי StructuredValue
parseFrom (נתוני ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
סטטי StructuredValue
parseFrom (קלט com.google.protobuf.CodedInputStream)
סטטי StructuredValue
parseFrom (נתוני byte[], 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)

שיטות בירושה

בוליאני
שווה (Object arg0)
כיתה אחרונה<?>
getClass ()
int
hashcode ()
ריק סופי
להודיע ​​()
ריק סופי
הודע הכל ()
חוּט
toString ()
ריק סופי
המתן (ארג0 ארוך, אינט arg1)
ריק סופי
המתן (ארג0 ארוך)
ריק סופי
חכה ()
org.tensorflow.proto.framework.StructuredValueOrBuilder
בוליאני מופשט
getBoolValue ()
 Represents a boolean value.
תקציר BoundedTensorSpecProto
getBoundedTensorSpecValue ()
 Represents a value for tf.BoundedTensorSpec.
תקציר BoundedTensorSpecProtoOrBuilder
getBoundedTensorSpecValueOrBuilder ()
 Represents a value for tf.BoundedTensorSpec.
מופשט 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`.
תקציר DataType
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`.
מופשט TypeSpecProto
getTypeSpecValue ()
 Represents a value for tf.TypeSpec.
תקציר TypeSpecProtoOrBuilder
getTypeSpecValueOrBuilder ()
 Represents a value for tf.TypeSpec.
בוליאני מופשט
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.

קבועים

גמר סטטי ציבורי 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;

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 ()

public DictValue getDictValue ()

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

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

public StructuredValue.KindCase getKindCase ()

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 NoneValue getNoneValue ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

public NoneValueOrBuilder getNoneValueOrBuilder ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

פּוּמְבֵּי getParserForType ()

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

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;

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

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

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

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;

public final com.google.protobuf.UnknownFieldSet getUnknownFields ()

בוליאני ציבורי hasBoundedTensorSpecValue ()

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

יש DictValue בוליאני ציבורי ()

 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;

בוליאני ציבורי ישNoneValue ()

 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;

public int hashCode ()

בוליאני הסופי הציבורי הוא אתחול ()

public static StructuredValue.Builder newBuilder (אב-טיפוס StructuredValue )

public static StructuredValue.Builder newBuilder ()

public StructuredValue.Builder newBuilderForType ()

public static StructuredValue parseDelimitedFrom (קלט InputStream)

זורק
IOException

public static StructuredValue parseDelimitedFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

זורק
IOException

public static StructuredValue parseFrom (נתוני ByteBuffer, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

זורק
InvalidProtocolBufferException

public static StructuredValue parseFrom (קלט com.google.protobuf.CodedInputStream)

זורק
IOException

public static StructuredValue parseFrom (נתוני byte[], com.google.protobuf.ExtensionRegistryLite extensionRegistry)

זורק
InvalidProtocolBufferException

public static StructuredValue parseFrom (נתוני ByteBuffer)

זורק
InvalidProtocolBufferException

public static StructuredValue parseFrom (קלט com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

זורק
IOException

public static StructuredValue parseFrom (נתוני com.google.protobuf.ByteString)

זורק
InvalidProtocolBufferException

public static StructuredValue parseFrom (קלט InputStream, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

זורק
IOException

public static StructuredValue parseFrom (נתוני com.google.protobuf.ByteString, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

זורק
InvalidProtocolBufferException

סטטי ציבורי מנתח ()

public StructuredValue.Builder toBuilder ()

public void writeTo (פלט com.google.protobuf.CodedOutputStream)

זורק
IOException