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 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
列挙型コレクションDef.KindCase
クラスCollectionDef.NodeList
 NodeList is used for collecting nodes in graph. 
インタフェースCollectionDef.NodeListOrBuilder

定数

整数任意のリストフィールド番号
整数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
コレクション定義
最終的な静的 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;
コレクションDef.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;
ブール値
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;
整数
最終ブール値
静的CollectionDef.Builder
newBuilder ( CollectionDefプロトタイプ)
静的CollectionDef.Builder
コレクション定義ビルダー
静的CollectionDef
parseDelimitedFrom (InputStream 入力)
静的CollectionDef
parseDelimitedFrom (InputStream 入力、com.google.protobuf.ExtensionRegistryLite extensionRegistry)
静的CollectionDef
parseFrom (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 extensionRegistry)
静的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)
静的
コレクション定義ビルダー
空所
writeTo (com.google.protobuf.CodedOutputStream 出力)

継承されたメソッド

定数

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

定数値: 5

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

定数値: 2

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

定数値: 4

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

定数値: 3

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

定数値: 1

パブリックメソッド

public booleanに等しい(オブジェクト obj)

public CollectionDef.AnyList getAnyList ()

.tensorflow.CollectionDef.AnyList any_list = 5;

public CollectionDef.AnyListOrBuilder getAnyListOrBuilder ()

.tensorflow.CollectionDef.AnyList any_list = 5;

public CollectionDef.BytesList getBytesList ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef.BytesListOrBuilder getBytesListOrBuilder ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public static CollectionDef getDefaultInstance ()

public CollectionDef getDefaultInstanceForType ()

public static Final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

public CollectionDef.FloatList getFloatList ()

.tensorflow.CollectionDef.FloatList float_list = 4;

public CollectionDef.FloatListOrBuilder getFloatListOrBuilder ()

.tensorflow.CollectionDef.FloatList float_list = 4;

public CollectionDef.Int64List getInt64List ()

.tensorflow.CollectionDef.Int64List int64_list = 3;

public CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder ()

.tensorflow.CollectionDef.Int64List int64_list = 3;

public CollectionDef.KindCase getKindCase ()

public CollectionDef.NodeList getNodeList ()

.tensorflow.CollectionDef.NodeList node_list = 1;

public CollectionDef.NodeListOrBuilder getNodeListOrBuilder ()

.tensorflow.CollectionDef.NodeList node_list = 1;

公共getParserForType ()

public int getSerializedSize ()

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

public boolean hasAnyList ()

.tensorflow.CollectionDef.AnyList any_list = 5;

public boolean hasBytesList ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public boolean hasFloatList ()

.tensorflow.CollectionDef.FloatList float_list = 4;

public boolean hasInt64List ()

.tensorflow.CollectionDef.Int64List int64_list = 3;

public boolean hasNodeList ()

.tensorflow.CollectionDef.NodeList node_list = 1;

public int hashCode ()

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

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

public static CollectionDef.Builder newBuilder ()

public CollectionDef.Builder newBuilderForType ()

public static CollectionDef parseDelimitedFrom (InputStream 入力)

投げる
IO例外

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

投げる
IO例外

public static CollectionDef parseFrom (ByteBuffer データ)

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

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

投げる
IO例外

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

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

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

投げる
IO例外

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

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

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

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

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

投げる
IO例外

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

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

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

public CollectionDef.Builder toBuilder ()

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

投げる
IO例外