CollectionDef.Builder

публичный статический финальный класс CollectionDef.Builder

 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

Публичные методы

КоллекцияDef.Builder
addRepeatedField (поле com.google.protobuf.Descriptors.FieldDescriptor, значение объекта)
КоллекцияDef
КоллекцияDef
КоллекцияDef.Builder
КоллекцияDef.Builder
ОчиститьАниЛист ()
.tensorflow.CollectionDef.AnyList any_list = 5;
КоллекцияDef.Builder
ОчиститьБайтслист ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
КоллекцияDef.Builder
ClearField (поле com.google.protobuf.Descriptors.FieldDescriptor)
КоллекцияDef.Builder
очиститьFloatList ()
.tensorflow.CollectionDef.FloatList float_list = 4;
КоллекцияDef.Builder
очиститьInt64List ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
КоллекцияDef.Builder
КоллекцияDef.Builder
ОчиститьСписокНодов ()
.tensorflow.CollectionDef.NodeList node_list = 1;
КоллекцияDef.Builder
ClearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
КоллекцияDef.Builder
КоллекцияDef.AnyList
получитьЛюбойСписок ()
.tensorflow.CollectionDef.AnyList any_list = 5;
CollectionDef.AnyList.Builder
getAnyListBuilder ()
.tensorflow.CollectionDef.AnyList any_list = 5;
CollectionDef.AnyListOrBuilder
getAnyListOrBuilder ()
.tensorflow.CollectionDef.AnyList any_list = 5;
КоллекцияDef.BytesList
получить байтсписок ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
CollectionDef.BytesList.Builder
getBytesListBuilder ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
CollectionDef.BytesListOrBuilder
getBytesListOrBuilder ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
КоллекцияDef
окончательный статический com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
CollectionDef.FloatList
getFloatList ()
.tensorflow.CollectionDef.FloatList float_list = 4;
CollectionDef.FloatList.Builder
getFloatListBuilder ()
.tensorflow.CollectionDef.FloatList float_list = 4;
CollectionDef.FloatListOrBuilder
getFloatListOrBuilder ()
.tensorflow.CollectionDef.FloatList float_list = 4;
КоллекцияDef.Int64List
getInt64List ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
CollectionDef.Int64List.Builder
getInt64ListBuilder ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
CollectionDef.Int64ListOrBuilder
getInt64ListOrBuilder ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
CollectionDef.KindCase
CollectionDef.NodeList
получитьСписокНодов ()
.tensorflow.CollectionDef.NodeList node_list = 1;
CollectionDef.NodeList.Builder
getNodeListBuilder ()
.tensorflow.CollectionDef.NodeList node_list = 1;
CollectionDef.NodeListOrBuilder
getNodeListOrBuilder ()
.tensorflow.CollectionDef.NodeList node_list = 1;
логическое значение
имеетЛюбойСписок ()
.tensorflow.CollectionDef.AnyList any_list = 5;
логическое значение
имеетБайтслист ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
логическое значение
имеетFloatList ()
.tensorflow.CollectionDef.FloatList float_list = 4;
логическое значение
имеетInt64List ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
логическое значение
имеетСписокНодов ()
.tensorflow.CollectionDef.NodeList node_list = 1;
последнее логическое значение
КоллекцияDef.Builder
mergeAnyList (значение CollectionDef.AnyList )
.tensorflow.CollectionDef.AnyList any_list = 5;
КоллекцияDef.Builder
mergeBytesList (значение CollectionDef.BytesList )
.tensorflow.CollectionDef.BytesList bytes_list = 2;
КоллекцияDef.Builder
mergeFloatList (значение CollectionDef.FloatList )
.tensorflow.CollectionDef.FloatList float_list = 4;
КоллекцияDef.Builder
mergeFrom (com.google.protobuf.Message другое)
КоллекцияDef.Builder
mergeFrom (ввод com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
КоллекцияDef.Builder
mergeInt64List (значение CollectionDef.Int64List )
.tensorflow.CollectionDef.Int64List int64_list = 3;
КоллекцияDef.Builder
mergeNodeList (значение CollectionDef.NodeList )
.tensorflow.CollectionDef.NodeList node_list = 1;
окончательный CollectionDef.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)
КоллекцияDef.Builder
setAnyList (значение CollectionDef.AnyList )
.tensorflow.CollectionDef.AnyList any_list = 5;
КоллекцияDef.Builder
setAnyList ( CollectionDef.AnyList.Builder builderForValue)
.tensorflow.CollectionDef.AnyList any_list = 5;
КоллекцияDef.Builder
setBytesList ( CollectionDef.BytesList.Builder builderForValue)
.tensorflow.CollectionDef.BytesList bytes_list = 2;
КоллекцияDef.Builder
setBytesList (значение CollectionDef.BytesList )
.tensorflow.CollectionDef.BytesList bytes_list = 2;
КоллекцияDef.Builder
setField (поле com.google.protobuf.Descriptors.FieldDescriptor, значение объекта)
КоллекцияDef.Builder
setFloatList (значение CollectionDef.FloatList )
.tensorflow.CollectionDef.FloatList float_list = 4;
КоллекцияDef.Builder
setFloatList ( CollectionDef.FloatList.Builder builderForValue)
.tensorflow.CollectionDef.FloatList float_list = 4;
КоллекцияDef.Builder
setInt64List (значение CollectionDef.Int64List )
.tensorflow.CollectionDef.Int64List int64_list = 3;
КоллекцияDef.Builder
setInt64List ( CollectionDef.Int64List.Builder builderForValue)
.tensorflow.CollectionDef.Int64List int64_list = 3;
КоллекцияDef.Builder
setNodeList ( CollectionDef.NodeList.Builder builderForValue)
.tensorflow.CollectionDef.NodeList node_list = 1;
КоллекцияDef.Builder
setNodeList (значение CollectionDef.NodeList )
.tensorflow.CollectionDef.NodeList node_list = 1;
КоллекцияDef.Builder
setRepeatedField (поле com.google.protobuf.Descriptors.FieldDescriptor, индекс int, значение объекта)
окончательный CollectionDef.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)

Унаследованные методы

Публичные методы

public CollectionDef.Builder addRepeatedField (поле com.google.protobuf.Descriptors.FieldDescriptor, значение объекта)

общедоступная сборка CollectionDef ()

общедоступная CollectionDef buildPartial ()

общедоступный CollectionDef.Builder очистить ()

общедоступный CollectionDef.Builder ClearAnyList ()

.tensorflow.CollectionDef.AnyList any_list = 5;

общественный CollectionDef.Builder ClearBytesList ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef.Builder ClearField (поле com.google.protobuf.Descriptors.FieldDescriptor)

общественный CollectionDef.Builder ClearFloatList ()

.tensorflow.CollectionDef.FloatList float_list = 4;

публичный CollectionDef.BuildercleInt64List ( )

.tensorflow.CollectionDef.Int64List int64_list = 3;

общедоступная CollectionDef.Builder ClearKind ()

общедоступный CollectionDef.Builder ClearNodeList ()

.tensorflow.CollectionDef.NodeList node_list = 1;

общедоступная CollectionDef.Builder ClearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

общедоступный клон CollectionDef.Builder ()

общественный CollectionDef.AnyList getAnyList ()

.tensorflow.CollectionDef.AnyList any_list = 5;

общественный CollectionDef.AnyList.Builder getAnyListBuilder ()

.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.BytesList.Builder getBytesListBuilder ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

общественный CollectionDef.BytesListOrBuilder getBytesListOrBuilder ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

общественный CollectionDef getDefaultInstanceForType ()

общедоступный статический окончательный com.google.protobuf.Descriptors.Descriptor getDescriptor ()

общедоступный com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

общественная коллекцияDef.FloatList getFloatList ()

.tensorflow.CollectionDef.FloatList float_list = 4;

общественный CollectionDef.FloatList.Builder getFloatListBuilder ()

.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.Int64List.Builder getInt64ListBuilder ()

.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.NodeList.Builder getNodeListBuilder ()

.tensorflow.CollectionDef.NodeList node_list = 1;

общественный CollectionDef.NodeListOrBuilder getNodeListOrBuilder ()

.tensorflow.CollectionDef.NodeList node_list = 1;

общедоступное логическое значение 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;

публичное окончательное логическое значение isInitialized ()

public CollectionDef.Builder mergeAnyList (значение CollectionDef.AnyList )

.tensorflow.CollectionDef.AnyList any_list = 5;

public CollectionDef.Builder mergeBytesList (значение CollectionDef.BytesList )

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef.Builder mergeFloatList (значение CollectionDef.FloatList )

.tensorflow.CollectionDef.FloatList float_list = 4;

public CollectionDef.Builder mergeFrom (com.google.protobuf.Message другое)

public CollectionDef.Builder mergeFrom (вход com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)

Броски
Исключение IO

public CollectionDef.Builder mergeInt64List (значение CollectionDef.Int64List )

.tensorflow.CollectionDef.Int64List int64_list = 3;

public CollectionDef.Builder mergeNodeList (значение CollectionDef.NodeList )

.tensorflow.CollectionDef.NodeList node_list = 1;

общедоступный финальный CollectionDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)

public CollectionDef.Builder setAnyList (значение CollectionDef.AnyList )

.tensorflow.CollectionDef.AnyList any_list = 5;

общедоступный CollectionDef.Builder setAnyList ( CollectionDef.AnyList.Builder builderForValue)

.tensorflow.CollectionDef.AnyList any_list = 5;

общедоступный CollectionDef.Builder setBytesList ( CollectionDef.BytesList.Builder builderForValue)

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef.Builder setBytesList (значение CollectionDef.BytesList )

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef.Builder setField (поле com.google.protobuf.Descriptors.FieldDescriptor, значение объекта)

public CollectionDef.Builder setFloatList (значение CollectionDef.FloatList )

.tensorflow.CollectionDef.FloatList float_list = 4;

общедоступный CollectionDef.Builder setFloatList ( CollectionDef.FloatList.Builder builderForValue)

.tensorflow.CollectionDef.FloatList float_list = 4;

public CollectionDef.Builder setInt64List (значение CollectionDef.Int64List )

.tensorflow.CollectionDef.Int64List int64_list = 3;

общедоступный CollectionDef.Builder setInt64List ( CollectionDef.Int64List.Builder builderForValue)

.tensorflow.CollectionDef.Int64List int64_list = 3;

общедоступный CollectionDef.Builder setNodeList ( CollectionDef.NodeList.Builder builderForValue)

.tensorflow.CollectionDef.NodeList node_list = 1;

public CollectionDef.Builder setNodeList (значение CollectionDef.NodeList )

.tensorflow.CollectionDef.NodeList node_list = 1;

public CollectionDef.Builder setRepeatedField (поле com.google.protobuf.Descriptors.FieldDescriptor, индекс int, значение объекта)

общедоступный окончательный CollectionDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)