CollectionDef

공개 최종 클래스 CollectionDef

 CollectionDef should cover most collections.
 To add a user-defined collection, do one of the following:
 1. For simple data types, such as string, int, float:
      tf.add_to_collection("your_collection_name", your_simple_value)
    strings will be stored as bytes_list.
 2. For Protobuf types, there are three ways to add them:
    1) tf.add_to_collection("your_collection_name",
         your_proto.SerializeToString())
       collection_def {
         key: "user_defined_bytes_collection"
         value {
           bytes_list {
             value: "queue_name: \"test_queue\"\n"
           }
         }
       }
  or
    2) tf.add_to_collection("your_collection_name", str(your_proto))
       collection_def {
         key: "user_defined_string_collection"
         value {
          bytes_list {
             value: "\n\ntest_queue"
           }
         }
       }
  or
    3) any_buf = any_pb2.Any()
       tf.add_to_collection("your_collection_name",
         any_buf.Pack(your_proto))
       collection_def {
         key: "user_defined_any_collection"
         value {
           any_list {
             value {
               type_url: "type.googleapis.com/tensorflow.QueueRunnerDef"
               value: "\n\ntest_queue"
             }
           }
         }
       }
 3. For Python objects, implement to_proto() and from_proto(), and register
    them in the following manner:
    ops.register_proto_function("your_collection_name",
                                proto_type,
                                to_proto=YourPythonObject.to_proto,
                                from_proto=YourPythonObject.from_proto)
    These functions will be invoked to serialize and de-serialize the
    collection. For example,
    ops.register_proto_function(ops.GraphKeys.GLOBAL_VARIABLES,
                                proto_type=variable_pb2.VariableDef,
                                to_proto=Variable.to_proto,
                                from_proto=Variable.from_proto)
 
Protobuf 유형 tensorflow.CollectionDef

중첩 클래스

수업 CollectionDef.AnyList
 AnyList is used for collecting Any protos. 
상호 작용 CollectionDef.AnyListOrBuilder
수업 CollectionDef.Builder
 CollectionDef should cover most collections. 
수업 CollectionDef.BytesList
 BytesList is used for collecting strings and serialized protobufs. 
상호 작용 CollectionDef.BytesListOrBuilder
수업 CollectionDef.FloatList
 FloatList is used for collecting float values. 
상호 작용 CollectionDef.FloatListOrBuilder
수업 CollectionDef.Int64List
 Int64List is used for collecting int, int64 and long values. 
상호 작용 CollectionDef.Int64ListOrBuilder
열거형 CollectionDef.KindCase
수업 CollectionDef.NodeList
 NodeList is used for collecting nodes in graph. 
상호 작용 CollectionDef.NodeListOrBuilder

상수

정수 ANY_LIST_FIELD_NUMBER
정수 BYTES_LIST_FIELD_NUMBER
정수 FLOAT_LIST_FIELD_NUMBER
정수 INT64_LIST_FIELD_NUMBER
정수 NODE_LIST_FIELD_NUMBER

공개 방법

부울
같음 (객체 객체)
CollectionDef.AnyList
getAnyList ()
.tensorflow.CollectionDef.AnyList any_list = 5;
CollectionDef.AnyListOrBuilder
getAnyListOrBuilder ()
.tensorflow.CollectionDef.AnyList any_list = 5;
CollectionDef.BytesList
getBytesList ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
CollectionDef.BytesListOrBuilder
getBytesListOrBuilder ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
정적 CollectionDef
컬렉션Def
최종 정적 com.google.protobuf.Descriptors.Descriptor
CollectionDef.FloatList
getFloatList ()
.tensorflow.CollectionDef.FloatList float_list = 4;
CollectionDef.FloatListOrBuilder
getFloatListOrBuilder ()
.tensorflow.CollectionDef.FloatList float_list = 4;
CollectionDef.Int64List
getInt64List ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
CollectionDef.Int64ListOrBuilder
getInt64ListOrBuilder ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
CollectionDef.KindCase
CollectionDef.NodeList
getNodeList ()
.tensorflow.CollectionDef.NodeList node_list = 1;
CollectionDef.NodeListOrBuilder
getNodeListOrBuilder ()
.tensorflow.CollectionDef.NodeList node_list = 1;
정수
최종 com.google.protobuf.UnknownFieldSet
부울
hasAnyList ()
.tensorflow.CollectionDef.AnyList any_list = 5;
부울
해시바이트목록 ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
부울
hasFloatList ()
.tensorflow.CollectionDef.FloatList float_list = 4;
부울
hasInt64List ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
부울
hasNodeList ()
.tensorflow.CollectionDef.NodeList node_list = 1;
정수
최종 부울
정적 CollectionDef.Builder
newBuilder ( CollectionDef 프로토타입)
정적 CollectionDef.Builder
CollectionDef.Builder
정적 CollectionDef
parsDelimitedFrom (InputStream 입력)
정적 CollectionDef
parseDelimitedFrom (InputStream 입력, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
정적 CollectionDef
parsFrom (ByteBuffer 데이터)
정적 CollectionDef
ParseFrom (com.google.protobuf.CodedInputStream 입력, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
정적 CollectionDef
ParseFrom (ByteBuffer 데이터, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
정적 CollectionDef
ParseFrom (com.google.protobuf.CodedInputStream 입력)
정적 CollectionDef
parseFrom (byte[] 데이터, com.google.protobuf.ExtensionRegistryLite 확장Registry)
정적 CollectionDef
ParseFrom (com.google.protobuf.ByteString 데이터)
정적 CollectionDef
ParseFrom (InputStream 입력, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
정적 CollectionDef
ParseFrom (com.google.protobuf.ByteString 데이터, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
공전
파서 ()
CollectionDef.Builder
무효의
writeTo (com.google.protobuf.CodedOutputStream 출력)

상속된 메서드

상수

공개 정적 최종 int ANY_LIST_FIELD_NUMBER

상수값: 5

공개 정적 최종 int BYTES_LIST_FIELD_NUMBER

상수값: 2

공개 정적 최종 int FLOAT_LIST_FIELD_NUMBER

상수값: 4

공개 정적 최종 int INT64_LIST_FIELD_NUMBER

상수값: 3

공개 정적 최종 int NODE_LIST_FIELD_NUMBER

상수값: 1

공개 방법

공개 부울은 (객체 obj)와 같습니다 .

공개 CollectionDef.AnyList getAnyList ()

.tensorflow.CollectionDef.AnyList any_list = 5;

공개 CollectionDef.AnyListOrBuilder getAnyListOrBuilder ()

.tensorflow.CollectionDef.AnyList any_list = 5;

공개 CollectionDef.BytesList getBytesList ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

공개 CollectionDef.BytesListOrBuilder getBytesListOrBuilder ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

공개 정적 CollectionDef getDefaultInstance ()

공개 CollectionDef getDefaultInstanceForType ()

공개 정적 최종 com.google.protobuf.Descriptors.Descriptor getDescriptor ()

공개 CollectionDef.FloatList getFloatList ()

.tensorflow.CollectionDef.FloatList float_list = 4;

공개 CollectionDef.FloatListOrBuilder getFloatListOrBuilder ()

.tensorflow.CollectionDef.FloatList float_list = 4;

공개 CollectionDef.Int64List getInt64List ()

.tensorflow.CollectionDef.Int64List int64_list = 3;

공개 CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder ()

.tensorflow.CollectionDef.Int64List int64_list = 3;

공개 CollectionDef.KindCase getKindCase ()

공공 CollectionDef.NodeList getNodeList ()

.tensorflow.CollectionDef.NodeList node_list = 1;

공개 CollectionDef.NodeListOrBuilder getNodeListOrBuilder ()

.tensorflow.CollectionDef.NodeList node_list = 1;

공공의 getParserForType ()

공개 int getSerializedSize ()

공개 최종 com.google.protobuf.UnknownFieldSet getUnknownFields ()

공개 부울 hasAnyList ()

.tensorflow.CollectionDef.AnyList any_list = 5;

공개 부울 hasBytesList ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

공개 부울 hasFloatList ()

.tensorflow.CollectionDef.FloatList float_list = 4;

공개 부울 hasInt64List ()

.tensorflow.CollectionDef.Int64List int64_list = 3;

공개 부울 hasNodeList ()

.tensorflow.CollectionDef.NodeList node_list = 1;

공개 int hashCode ()

공개 최종 부울 isInitialized ()

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

공개 정적 CollectionDef.Builder newBuilder ()

공개 CollectionDef.Builder newBuilderForType ()

공개 정적 CollectionDefparseDelimitedFrom ( InputStream 입력)

던지기
IO예외

공개 정적 CollectionDefparseDelimitedFrom ( InputStream 입력, com.google.protobuf.ExtensionRegistryLite 확장Registry)

던지기
IO예외

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

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

공개 정적 CollectionDef 구문 분석 (com.google.protobuf.CodedInputStream 입력, com.google.protobuf.ExtensionRegistryLite 확장 레지스트리)

던지기
IO예외

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

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

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

던지기
IO예외

공개 정적 CollectionDef 구문 분석 (byte[] 데이터, com.google.protobuf.ExtensionRegistryLite 확장Registry)

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

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

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

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

던지기
IO예외

공개 정적 CollectionDef 구문 분석 (com.google.protobuf.ByteString 데이터, com.google.protobuf.ExtensionRegistryLite 확장Registry)

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

공개 정적 파서 ()

공개 CollectionDef.Builder toBuilder ()

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

던지기
IO예외