CollectionDef.Builder

publiczna statyczna klasa końcowa 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 typu tensorflow.CollectionDef

Metody publiczne

KolekcjaDef.Builder
addRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu)
Kolekcja Def
Kolekcja Def
KolekcjaDef.Builder
jasne ()
KolekcjaDef.Builder
wyczyść dowolną listę ()
.tensorflow.CollectionDef.AnyList any_list = 5;
KolekcjaDef.Builder
wyczyść listę bajtów ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
KolekcjaDef.Builder
clearField (pole com.google.protobuf.Descriptors.FieldDescriptor)
KolekcjaDef.Builder
wyczyśćFloatList ()
.tensorflow.CollectionDef.FloatList float_list = 4;
KolekcjaDef.Builder
clearInt64List ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
KolekcjaDef.Builder
KolekcjaDef.Builder
wyczyść listę węzłów ()
.tensorflow.CollectionDef.NodeList node_list = 1;
KolekcjaDef.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
KolekcjaDef.Builder
klon ()
KolekcjaDef.AnyList
pobierz dowolną listę ()
.tensorflow.CollectionDef.AnyList any_list = 5;
KolekcjaDef.AnyList.Builder
getAnyListBuilder ()
.tensorflow.CollectionDef.AnyList any_list = 5;
KolekcjaDef.AnyListOrBuilder
getAnyListOrBuilder ()
.tensorflow.CollectionDef.AnyList any_list = 5;
KolekcjaDef.BytesList
getBytesList ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
KolekcjaDef.BytesList.Builder
getBytesListBuilder ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
CollectionDef.BytesListOrBuilder
getBytesListOrBuilder ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
Kolekcja Def
końcowy statyczny com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
KolekcjaDef.FloatList
getFloatList ()
.tensorflow.CollectionDef.FloatList float_list = 4;
KolekcjaDef.FloatList.Builder
getFloatListBuilder ()
.tensorflow.CollectionDef.FloatList float_list = 4;
KolekcjaDef.FloatListOrBuilder
getFloatListOrBuilder ()
.tensorflow.CollectionDef.FloatList float_list = 4;
KolekcjaDef.Int64List
getInt64List ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
KolekcjaDef.Int64List.Builder
getInt64ListBuilder ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
KolekcjaDef.Int64ListOrBuilder
getInt64ListOrBuilder ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
KolekcjaDef.KindCase
KolekcjaDef.NodeList
getNodeList ()
.tensorflow.CollectionDef.NodeList node_list = 1;
KolekcjaDef.NodeList.Builder
getNodeListBuilder ()
.tensorflow.CollectionDef.NodeList node_list = 1;
CollectionDef.NodeListOrBuilder
getNodeListOrBuilder ()
.tensorflow.CollectionDef.NodeList node_list = 1;
wartość logiczna
maAnyList ()
.tensorflow.CollectionDef.AnyList any_list = 5;
wartość logiczna
maBytesList ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
wartość logiczna
maFloatList ()
.tensorflow.CollectionDef.FloatList float_list = 4;
wartość logiczna
maInt64List ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
wartość logiczna
maNodeList ()
.tensorflow.CollectionDef.NodeList node_list = 1;
końcowa wartość logiczna
KolekcjaDef.Builder
mergeAnyList (wartość CollectionDef.AnyList )
.tensorflow.CollectionDef.AnyList any_list = 5;
KolekcjaDef.Builder
mergeBytesList (wartość CollectionDef.BytesList )
.tensorflow.CollectionDef.BytesList bytes_list = 2;
KolekcjaDef.Builder
mergeFloatList (wartość CollectionDef.FloatList )
.tensorflow.CollectionDef.FloatList float_list = 4;
KolekcjaDef.Builder
mergeFrom (com.google.protobuf.Wiadomość inna)
KolekcjaDef.Builder
mergeFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite ExtensionRegistry)
KolekcjaDef.Builder
mergeInt64List (wartość CollectionDef.Int64List )
.tensorflow.CollectionDef.Int64List int64_list = 3;
KolekcjaDef.Builder
mergeNodeList (wartość CollectionDef.NodeList )
.tensorflow.CollectionDef.NodeList node_list = 1;
final CollectionDef.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldUstaw nieznane pola)
KolekcjaDef.Builder
setAnyList (wartość CollectionDef.AnyList )
.tensorflow.CollectionDef.AnyList any_list = 5;
KolekcjaDef.Builder
setAnyList ( CollectionDef.AnyList.Builder builderForValue)
.tensorflow.CollectionDef.AnyList any_list = 5;
KolekcjaDef.Builder
setBytesList ( CollectionDef.BytesList.Builder builderForValue)
.tensorflow.CollectionDef.BytesList bytes_list = 2;
KolekcjaDef.Builder
setBytesList (wartość CollectionDef.BytesList )
.tensorflow.CollectionDef.BytesList bytes_list = 2;
KolekcjaDef.Builder
setField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu)
KolekcjaDef.Builder
setFloatList (wartość CollectionDef.FloatList )
.tensorflow.CollectionDef.FloatList float_list = 4;
KolekcjaDef.Builder
setFloatList ( CollectionDef.FloatList.Builder builderForValue)
.tensorflow.CollectionDef.FloatList float_list = 4;
KolekcjaDef.Builder
setInt64List (wartość CollectionDef.Int64List )
.tensorflow.CollectionDef.Int64List int64_list = 3;
KolekcjaDef.Builder
setInt64List ( CollectionDef.Int64List.Builder builderForValue)
.tensorflow.CollectionDef.Int64List int64_list = 3;
KolekcjaDef.Builder
setNodeList ( CollectionDef.NodeList.Builder builderForValue)
.tensorflow.CollectionDef.NodeList node_list = 1;
KolekcjaDef.Builder
setNodeList (wartość CollectionDef.NodeList )
.tensorflow.CollectionDef.NodeList node_list = 1;
KolekcjaDef.Builder
setRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, indeks int, wartość obiektu)
final CollectionDef.Builder
setUnknownFields (com.google.protobuf.UnknownFieldUstaw nieznane pola)

Metody dziedziczone

Metody publiczne

public CollectionDef.Builder addRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu)

publiczna kompilacja CollectionDef ()

public CollectionDef buildPartial ()

public CollectionDef.Builder wyczyść ()

public CollectionDef.Builder clearAnyList ()

.tensorflow.CollectionDef.AnyList any_list = 5;

public CollectionDef.Builder clearBytesList ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef.Builder clearField (pole com.google.protobuf.Descriptors.FieldDescriptor)

public CollectionDef.Builder clearFloatList ()

.tensorflow.CollectionDef.FloatList float_list = 4;

public CollectionDef.Builder clearInt64List ()

.tensorflow.CollectionDef.Int64List int64_list = 3;

public CollectionDef.Builder clearKind ()

public CollectionDef.Builder clearNodeList ()

.tensorflow.CollectionDef.NodeList node_list = 1;

public CollectionDef.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)

public CollectionDef.Builder klon ()

public CollectionDef.AnyList getAnyList ()

.tensorflow.CollectionDef.AnyList any_list = 5;

public CollectionDef.AnyList.Builder getAnyListBuilder ()

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

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef.BytesListOrBuilder getBytesListOrBuilder ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef getDefaultInstanceForType ()

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

publiczny com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()

public CollectionDef.FloatList getFloatList ()

.tensorflow.CollectionDef.FloatList float_list = 4;

public CollectionDef.FloatList.Builder getFloatListBuilder ()

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

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

.tensorflow.CollectionDef.NodeList node_list = 1;

public CollectionDef.NodeListOrBuilder getNodeListOrBuilder ()

.tensorflow.CollectionDef.NodeList node_list = 1;

publiczna wartość logiczna hasAnyList ()

.tensorflow.CollectionDef.AnyList any_list = 5;

publiczna wartość logiczna hasBytesList ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

publiczna wartość logiczna hasFloatList ()

.tensorflow.CollectionDef.FloatList float_list = 4;

publiczna wartość logiczna hasInt64List ()

.tensorflow.CollectionDef.Int64List int64_list = 3;

publiczna wartość logiczna hasNodeList ()

.tensorflow.CollectionDef.NodeList node_list = 1;

publiczna końcowa wartość logiczna isInitialized ()

public CollectionDef.Builder mergeAnyList (wartość CollectionDef.AnyList )

.tensorflow.CollectionDef.AnyList any_list = 5;

public CollectionDef.Builder mergeBytesList (wartość CollectionDef.BytesList )

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef.Builder mergeFloatList (wartość CollectionDef.FloatList )

.tensorflow.CollectionDef.FloatList float_list = 4;

public CollectionDef.Builder mergeFrom (com.google.protobuf.Message other)

public CollectionDef.Builder mergeFrom (wejście com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite rozszerzenieRegistry)

Rzuca
Wyjątek IO

public CollectionDef.Builder mergeInt64List (wartość CollectionDef.Int64List )

.tensorflow.CollectionDef.Int64List int64_list = 3;

public CollectionDef.Builder mergeNodeList (wartość CollectionDef.NodeList )

.tensorflow.CollectionDef.NodeList node_list = 1;

publiczna wersja końcowa CollectionDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)

public CollectionDef.Builder setAnyList (wartość CollectionDef.AnyList )

.tensorflow.CollectionDef.AnyList any_list = 5;

public CollectionDef.Builder setAnyList ( CollectionDef.AnyList.Builder builderForValue)

.tensorflow.CollectionDef.AnyList any_list = 5;

public CollectionDef.Builder setBytesList ( CollectionDef.BytesList.Builder builderForValue)

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef.Builder setBytesList (wartość CollectionDef.BytesList )

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef.Builder setField (pole com.google.protobuf.Descriptors.FieldDescriptor, wartość obiektu)

public CollectionDef.Builder setFloatList (wartość CollectionDef.FloatList )

.tensorflow.CollectionDef.FloatList float_list = 4;

public CollectionDef.Builder setFloatList ( CollectionDef.FloatList.Builder builderForValue)

.tensorflow.CollectionDef.FloatList float_list = 4;

public CollectionDef.Builder setInt64List (wartość CollectionDef.Int64List )

.tensorflow.CollectionDef.Int64List int64_list = 3;

public CollectionDef.Builder setInt64List ( CollectionDef.Int64List.Builder builderForValue)

.tensorflow.CollectionDef.Int64List int64_list = 3;

public CollectionDef.Builder setNodeList ( CollectionDef.NodeList.Builder builderForValue)

.tensorflow.CollectionDef.NodeList node_list = 1;

public CollectionDef.Builder setNodeList (wartość CollectionDef.NodeList )

.tensorflow.CollectionDef.NodeList node_list = 1;

public CollectionDef.Builder setRepeatedField (pole com.google.protobuf.Descriptors.FieldDescriptor, indeks int, wartość obiektu)

publiczna wersja końcowa CollectionDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSetknownFields)