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

공개 방법

부울
같음 (객체 객체)
부울
getBool값 ()
 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
Dict값
getDict값 ()
 Represents a dict `Value`.
DictValueOrBuilder
getDictValueOrBuilder ()
 Represents a dict `Value`.
더블
getFloat64값 ()
 Represents a double-precision floating-point value (a Python `float`).
getInt64값 ()
 Represents a signed integer value, limited to 64 bits.
StructuredValue.KindCase
목록값
getList값 ()
 Represents a list of `Value`.
ListValueOrBuilder
getListValueOrBuilder ()
 Represents a list of `Value`.
NamedTupleValue
getNamedTupleValue ()
 Represents Python's namedtuple.
NamedTupleValueOrBuilder
getNamedTupleValueOrBuilder ()
 Represents Python's namedtuple.
없음값
getNone값 ()
 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
getTensorShape값 ()
 Represents a TensorShape.
TensorShapeProtoOrBuilder
getTensorShapeValueOrBuilder ()
 Represents a TensorShape.
TensorSpecProto
getTensorSpec값 ()
 Represents a value for tf.TensorSpec.
TensorSpecProtoOrBuilder
getTensorSpecValueOrBuilder ()
 Represents a value for tf.TensorSpec.
튜플값
getTupleValue ()
 Represents a tuple of `Value`.
TupleValueOrBuilder
getTupleValueOrBuilder ()
 Represents a tuple of `Value`.
유형SpecProto
getTypeSpec값 ()
 Represents a value for tf.TypeSpec.
유형SpecProtoOrBuilder
getTypeSpecValueOrBuilder ()
 Represents a value for tf.TypeSpec.
최종 com.google.protobuf.UnknownFieldSet
부울
hasBoundedTensorSpecValue ()
 Represents a value for tf.BoundedTensorSpec.
부울
hasDict값 ()
 Represents a dict `Value`.
부울
hasList값 ()
 Represents a list of `Value`.
부울
hasNamedTupleValue ()
 Represents Python's namedtuple.
부울
hasNone값 ()
 Represents None.
부울
hasTensorShape값 ()
 Represents a TensorShape.
부울
hasTensorSpec값 ()
 Represents a value for tf.TensorSpec.
부울
hasTupleValue ()
 Represents a tuple of `Value`.
부울
hasTypeSpec값 ()
 Represents a value for tf.TypeSpec.
정수
최종 부울
정적 StructuredValue.Builder
newBuilder ( StructuredValue 프로토타입)
정적 StructuredValue.Builder
StructuredValue.Builder
정적 구조화된 값
parsDelimitedFrom (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 확장Registry)
정적 구조화된 값
parsFrom (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 출력)

상속된 메서드

상수

공개 정적 최종 int BOOL_VALUE_FIELD_NUMBER

상수값: 14

공개 정적 최종 int BOUNDED_TENSOR_SPEC_VALUE_FIELD_NUMBER

상수값: 35

공개 정적 최종 int DICT_VALUE_FIELD_NUMBER

상수값: 53

공개 정적 최종 int FLOAT64_VALUE_FIELD_NUMBER

상수값: 11

공개 정적 최종 int INT64_VALUE_FIELD_NUMBER

상수값: 12

공개 정적 최종 int LIST_VALUE_FIELD_NUMBER

상수값: 51

공개 정적 최종 정수 NAMED_TUPLE_VALUE_FIELD_NUMBER

상수값: 54

공개 정적 최종 int NONE_VALUE_FIELD_NUMBER

상수값: 1

공개 정적 최종 정수 STRING_VALUE_FIELD_NUMBER

상수값: 13

공개 정적 최종 int TENSOR_DTYPE_VALUE_FIELD_NUMBER

상수값: 32

공개 정적 최종 int TENSOR_SHAPE_VALUE_FIELD_NUMBER

상수값: 31

공개 정적 최종 int TENSOR_SPEC_VALUE_FIELD_NUMBER

상수값: 33

공개 정적 최종 int TUPLE_VALUE_FIELD_NUMBER

상수값: 52

공개 정적 최종 int TYPE_SPEC_VALUE_FIELD_NUMBER

상수값: 34

공개 방법

공개 부울은 (객체 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;

공개 정적 StructuredValue getDefaultInstance ()

공개 구조화된 값 getDefaultInstanceForType ()

공개 정적 최종 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;

공개 긴 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;

공개 데이터 유형 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;

공개 int hashCode ()

공개 최종 부울 isInitialized ()

공개 정적 StructuredValue.Builder newBuilder ( StructuredValue 프로토타입)

공개 정적 StructuredValue.Builder newBuilder ()

공개 StructuredValue.Builder newBuilderForType ()

공개 정적 StructuredValue parDelimitedFrom (InputStream 입력)

던지기
IO예외

공개 정적 StructuredValueparseDelimitedFrom ( InputStream 입력, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

던지기
IO예외

공개 정적 StructuredValue 구문 분석 (ByteBuffer 데이터, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

던지기
잘못된프로토콜버퍼예외

공개 정적 StructuredValue 구문 분석 (com.google.protobuf.CodedInputStream 입력)

던지기
IO예외

공개 정적 StructuredValue 구문 분석 (바이트[] 데이터, com.google.protobuf.ExtensionRegistryLite 확장 레지스트리)

던지기
잘못된프로토콜버퍼예외

공개 정적 StructuredValue 구문 분석 (ByteBuffer 데이터)

던지기
잘못된프로토콜버퍼예외

공개 정적 StructuredValue 구문 분석 (com.google.protobuf.CodedInputStream 입력, com.google.protobuf.ExtensionRegistryLite 확장Registry)

던지기
IO예외

공개 정적 StructuredValue 구문 분석 (com.google.protobuf.ByteString 데이터)

던지기
잘못된프로토콜버퍼예외

공개 정적 StructuredValue parsFrom (InputStream 입력, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

던지기
IO예외

공개 정적 StructuredValue parsFrom (com.google.protobuf.ByteString 데이터, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

던지기
잘못된프로토콜버퍼예외

공개 정적 파서 ()

공개 StructuredValue.Builder toBuilder ()

공개 무효 writeTo (com.google.protobuf.CodedOutputStream 출력)

던지기
IO예외