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. 
列挙型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

パブリックメソッド

ブール値
等しい(オブジェクトオブジェクト)
ブール値
getBoolValue ()
 Represents a boolean value.
BoundedTensorSpecProto
getBoundedTensorSpecValue ()
 Represents a value for tf.BoundedTensorSpec.
BoundedTensorSpecProtoOrBuilder
getBoundedTensorSpecValueOrBuilder ()
 Represents a value for tf.BoundedTensorSpec.
静的構造化値
構造化された価値
最終的な静的 com.google.protobuf.Descriptors.Descriptor
辞書値
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
リスト値
getListValue ()
 Represents a list of `Value`.
リスト値またはビルダー
getListValueOrBuilder ()
 Represents a list of `Value`.
名前付きタプル値
getNamedTupleValue ()
 Represents Python's namedtuple.
NamedTupleValueOrBuilder
getNamedTupleValueOrBuilder ()
 Represents Python's namedtuple.
なし値
getNoneValue ()
 Represents None.
なし値またはビルダー
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.
テンソル形状プロト
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.
タプル値
getTupleValue ()
 Represents a tuple of `Value`.
タプル値またはビルダー
getTupleValueOrBuilder ()
 Represents a tuple of `Value`.
タイプスペックプロト
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.
整数
最終ブール値
静的StructuredValue.Builder
newBuilder ( StructuredValueプロトタイプ)
静的StructuredValue.Builder
StructuredValue.Builder
静的構造化値
parseDelimitedFrom (InputStream 入力)
静的構造化値
parseDelimitedFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
静的構造化値
parseFrom (ByteBuffer データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
静的構造化値
parseFrom (com.google.protobuf.CodedInputStream 入力)
静的構造化値
parseFrom (byte[] データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
静的構造化値
parseFrom (ByteBuffer データ)
静的構造化値
parseFrom (com.google.protobuf.CodedInputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
静的構造化値
parseFrom (com.google.protobuf.ByteString データ)
静的構造化値
parseFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
静的構造化値
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

public static Final int TENSOR_DTYPE_VALUE_FIELD_NUMBER

定数値: 32

public static Final int TENSOR_SHAPE_VALUE_FIELD_NUMBER

定数値: 31

public static Final int TENSOR_SPEC_VALUE_FIELD_NUMBER

定数値: 33

パブリック静的最終整数TUPLE_VALUE_FIELD_NUMBER

定数値: 52

パブリック静的最終整数TYPE_SPEC_VALUE_FIELD_NUMBER

定数値: 34

パブリックメソッド

public booleanに等しい(オブジェクト 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;

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

パブリック String 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;

public TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder ()

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

public TensorSpecProto getTensorSpecValue ()

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

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

public boolean hasBoundedTensorSpecValue ()

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

public boolean hasDictValue ()

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

public boolean hasListValue ()

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

public boolean hasNamedTupleValue ()

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

public boolean hasNoneValue ()

 Represents None.
 
.tensorflow.NoneValue none_value = 1;

public boolean hasTensorShapeValue ()

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

public boolean hasTensorSpecValue ()

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

public boolean hasTupleValue ()

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

public boolean hasTypeSpecValue ()

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

public int hashCode ()

パブリック最終ブール値isInitialized ()

public static StructuredValue.Builder newBuilder ( StructuredValueプロトタイプ)

public static StructuredValue.Builder newBuilder ()

public StructuredValue.Builder newBuilderForType ()

public static StructuredValue parseDelimitedFrom (InputStream 入力)

投げる
IO例外

public static StructuredValue parseDelimitedFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
IO例外

public static StructuredValue parseFrom (ByteBuffer データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
無効なプロトコルバッファ例外

public static StructuredValue parseFrom (com.google.protobuf.CodedInputStream 入力)

投げる
IO例外

public static StructuredValue parseFrom (byte[] データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
無効なプロトコルバッファ例外

public static StructuredValue parseFrom (ByteBuffer データ)

投げる
無効なプロトコルバッファ例外

public static StructuredValue parseFrom (com.google.protobuf.CodedInputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
IO例外

public static StructuredValue parseFrom (com.google.protobuf.ByteString データ)

投げる
無効なプロトコルバッファ例外

public static StructuredValue parseFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
IO例外

public static StructuredValue parseFrom (com.google.protobuf.ByteString データ、com.google.protobuf.ExtensionRegistryLite extensionRegistry)

投げる
無効なプロトコルバッファ例外

パブリック静的パーサー()

public StructuredValue.Builder toBuilder ()

public void writeTo (com.google.protobuf.CodedOutputStream 出力)

投げる
IO例外