CollectionDef.Builder

genel statik son sınıf 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 türü tensorflow.CollectionDef

Genel Yöntemler

KoleksiyonDef.Builder
addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor alanı, Nesne değeri)
KoleksiyonDef
KoleksiyonDef
KoleksiyonDef.Builder
KoleksiyonDef.Builder
clearAnyList ()
.tensorflow.CollectionDef.AnyList any_list = 5;
KoleksiyonDef.Builder
clearBytesList ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
KoleksiyonDef.Builder
clearField (com.google.protobuf.Descriptors.FieldDescriptor alanı)
KoleksiyonDef.Builder
clearFloatList ()
.tensorflow.CollectionDef.FloatList float_list = 4;
KoleksiyonDef.Builder
clearInt64List ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
KoleksiyonDef.Builder
KoleksiyonDef.Builder
clearNodeList ()
.tensorflow.CollectionDef.NodeList node_list = 1;
KoleksiyonDef.Builder
clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
KoleksiyonDef.Builder
klon ()
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;
KoleksiyonDef
final statik 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;
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;
KoleksiyonDef.KindCase
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;
boolean
herhangibirlistesi var ()
.tensorflow.CollectionDef.AnyList any_list = 5;
boolean
hasBytesList ()
.tensorflow.CollectionDef.BytesList bytes_list = 2;
boolean
hasFloatList ()
.tensorflow.CollectionDef.FloatList float_list = 4;
boolean
hasInt64List ()
.tensorflow.CollectionDef.Int64List int64_list = 3;
boolean
hasNodeList ()
.tensorflow.CollectionDef.NodeList node_list = 1;
son boole değeri
KoleksiyonDef.Builder
mergeAnyList ( CollectionDef.AnyList değeri)
.tensorflow.CollectionDef.AnyList any_list = 5;
KoleksiyonDef.Builder
mergeBytesList ( CollectionDef.BytesList değeri)
.tensorflow.CollectionDef.BytesList bytes_list = 2;
KoleksiyonDef.Builder
mergeFloatList ( CollectionDef.FloatList değeri)
.tensorflow.CollectionDef.FloatList float_list = 4;
KoleksiyonDef.Builder
mergeFrom (com.google.protobuf.Message other)
KoleksiyonDef.Builder
mergeFrom (com.google.protobuf.CodedInputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
KoleksiyonDef.Builder
mergeInt64List ( CollectionDef.Int64List değeri)
.tensorflow.CollectionDef.Int64List int64_list = 3;
KoleksiyonDef.Builder
mergeNodeList ( CollectionDef.NodeList değeri)
.tensorflow.CollectionDef.NodeList node_list = 1;
final CollectionDef.Builder
mergeUnknownFields (com.google.protobuf.UnknownFieldSet bilinmiyorFields)
KoleksiyonDef.Builder
setAnyList ( CollectionDef.AnyList değeri)
.tensorflow.CollectionDef.AnyList any_list = 5;
KoleksiyonDef.Builder
setAnyList ( CollectionDef.AnyList.Builder builderForValue)
.tensorflow.CollectionDef.AnyList any_list = 5;
KoleksiyonDef.Builder
setBytesList ( CollectionDef.BytesList.Builder builderForValue)
.tensorflow.CollectionDef.BytesList bytes_list = 2;
KoleksiyonDef.Builder
setBytesList ( CollectionDef.BytesList değeri)
.tensorflow.CollectionDef.BytesList bytes_list = 2;
KoleksiyonDef.Builder
setField (com.google.protobuf.Descriptors.FieldDescriptor alanı, Nesne değeri)
KoleksiyonDef.Builder
setFloatList ( CollectionDef.FloatList değeri)
.tensorflow.CollectionDef.FloatList float_list = 4;
KoleksiyonDef.Builder
setFloatList ( CollectionDef.FloatList.Builder builderForValue)
.tensorflow.CollectionDef.FloatList float_list = 4;
KoleksiyonDef.Builder
setInt64List ( CollectionDef.Int64List değeri)
.tensorflow.CollectionDef.Int64List int64_list = 3;
KoleksiyonDef.Builder
setInt64List ( CollectionDef.Int64List.Builder builderForValue)
.tensorflow.CollectionDef.Int64List int64_list = 3;
KoleksiyonDef.Builder
setNodeList ( CollectionDef.NodeList.Builder builderForValue)
.tensorflow.CollectionDef.NodeList node_list = 1;
KoleksiyonDef.Builder
setNodeList ( CollectionDef.NodeList değeri)
.tensorflow.CollectionDef.NodeList node_list = 1;
KoleksiyonDef.Builder
setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor alanı, int dizini, Nesne değeri)
final CollectionDef.Builder
setUnknownFields (com.google.protobuf.UnknownFieldSet bilinmeyenFields)

Kalıtsal Yöntemler

Genel Yöntemler

public CollectionDef.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor alanı, Nesne değeri)

genel CollectionDef yapısı ()

public CollectionDef buildPartial ()

genel CollectionDef.Builder clear ()

genel CollectionDef.Builder clearAnyList ()

.tensorflow.CollectionDef.AnyList any_list = 5;

genel CollectionDef.Builder clearBytesList ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

herkese açık CollectionDef.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor alanı)

public CollectionDef.Builder clearFloatList ()

.tensorflow.CollectionDef.FloatList float_list = 4;

genel CollectionDef.Builder clearInt64List ()

.tensorflow.CollectionDef.Int64List int64_list = 3;

genel CollectionDef.Builder clearKind ()

genel CollectionDef.Builder clearNodeList ()

.tensorflow.CollectionDef.NodeList node_list = 1;

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

genel CollectionDef.Builder klonu ()

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;

genel CollectionDef.BytesList getBytesList ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

genel 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 ()

public 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;

genel CollectionDef.Int64List.Builder getInt64ListBuilder ()

.tensorflow.CollectionDef.Int64List int64_list = 3;

public CollectionDef.Int64ListOrBuilder getInt64ListOrBuilder ()

.tensorflow.CollectionDef.Int64List int64_list = 3;

genel 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;

genel boolean hasAnyList ()

.tensorflow.CollectionDef.AnyList any_list = 5;

genel boolean hasBytesList ()

.tensorflow.CollectionDef.BytesList bytes_list = 2;

genel boolean hasFloatList ()

.tensorflow.CollectionDef.FloatList float_list = 4;

genel boolean hasInt64List ()

.tensorflow.CollectionDef.Int64List int64_list = 3;

genel boolean hasNodeList ()

.tensorflow.CollectionDef.NodeList node_list = 1;

genel final boolean isInitialized ()

public CollectionDef.Builder mergeAnyList ( CollectionDef.AnyList değeri)

.tensorflow.CollectionDef.AnyList any_list = 5;

public CollectionDef.Builder mergeBytesList ( CollectionDef.BytesList değeri)

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef.Builder mergeFloatList ( CollectionDef.FloatList değeri)

.tensorflow.CollectionDef.FloatList float_list = 4;

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

public CollectionDef.Builder mergeFrom (com.google.protobuf.CodedInputStream girişi, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Atar
IOİstisnası

public CollectionDef.Builder mergeInt64List ( CollectionDef.Int64List değeri)

.tensorflow.CollectionDef.Int64List int64_list = 3;

public CollectionDef.Builder mergeNodeList ( CollectionDef.NodeList değeri)

.tensorflow.CollectionDef.NodeList node_list = 1;

genel final CollectionDef.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet bilinmiyorFields)

public CollectionDef.Builder setAnyList ( CollectionDef.AnyList değeri)

.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 ( CollectionDef.BytesList değeri)

.tensorflow.CollectionDef.BytesList bytes_list = 2;

public CollectionDef.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor alanı, Nesne değeri)

public CollectionDef.Builder setFloatList ( CollectionDef.FloatList değeri)

.tensorflow.CollectionDef.FloatList float_list = 4;

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

.tensorflow.CollectionDef.FloatList float_list = 4;

public CollectionDef.Builder setInt64List ( CollectionDef.Int64List değeri)

.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 ( CollectionDef.NodeList değeri)

.tensorflow.CollectionDef.NodeList node_list = 1;

public CollectionDef.Builder setRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor alanı, int dizini, Nesne değeri)

genel final CollectionDef.Builder setUnknownFields (com.google.protobuf.UnknownFieldSet bilinmiyorFields)