public static final class JobDef.Builder
Defines a single job in a TensorFlow cluster.
tensorflow.JobDef
tipo tensorflow.JobDef
Métodos Públicos
JobDef.Builder | addRepeatedField (campo com.google.protobuf.Descriptors.FieldDescriptor, valor do objeto) |
JobDef | build () |
JobDef | buildPartial () |
JobDef.Builder | limpar () |
JobDef.Builder | clearField (campo com.google.protobuf.Descriptors.FieldDescriptor) |
JobDef.Builder | clearName () The name of this job. |
JobDef.Builder | clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof) |
JobDef.Builder | clearTasks () |
JobDef.Builder | clone () |
boleano | contémTasks (chave int) Mapping from task ID to "hostname:port" string. |
JobDef | |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
Map <Integer, String> | getMutableTasks () Em vez disso, use acessadores de mutação alternativos. |
Fragmento | getName () The name of this job. |
com.google.protobuf.ByteString | getNameBytes () The name of this job. |
Map <Integer, String> | getTasks () Use getTasksMap() vez disso. |
int | getTasksCount () Mapping from task ID to "hostname:port" string. |
Map <Integer, String> | getTasksMap () Mapping from task ID to "hostname:port" string. |
Fragmento | getTasksOrDefault (int key, String defaultValue) Mapping from task ID to "hostname:port" string. |
Fragmento | getTasksOrThrow (int key) Mapping from task ID to "hostname:port" string. |
final booleano | |
JobDef.Builder | mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
JobDef.Builder | mergeFrom (com.google.protobuf.Message other) |
JobDef.Builder final | mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields) |
JobDef.Builder | putAllTasks (valores Map <Integer, String>) Mapping from task ID to "hostname:port" string. |
JobDef.Builder | putTasks (int key, String value) Mapping from task ID to "hostname:port" string. |
JobDef.Builder | removeTasks (chave int) Mapping from task ID to "hostname:port" string. |
JobDef.Builder | setField (campo com.google.protobuf.Descriptors.FieldDescriptor, valor do objeto) |
JobDef.Builder | setName (valor String) The name of this job. |
JobDef.Builder | setNameBytes (com.google.protobuf.ByteString value) The name of this job. |
JobDef.Builder | setRepeatedField (campo com.google.protobuf.Descriptors.FieldDescriptor, índice int, valor do objeto) |
JobDef.Builder final | setUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields) |
Métodos herdados
Métodos Públicos
public JobDef.Builder addRepeatedField (campo com.google.protobuf.Descriptors.FieldDescriptor, valor do objeto)
public boolean containsTasks (chave int)
Mapping from task ID to "hostname:port" string. If the `name` field contains "worker", and the `tasks` map contains a mapping from 7 to "example.org:2222", then the device prefix "/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public Map <Integer, String> getMutableTasks ()
Em vez disso, use acessadores de mutação alternativos.
public String getName ()
The name of this job.
string name = 1;
public com.google.protobuf.ByteString getNameBytes ()
The name of this job.
string name = 1;
public int getTasksCount ()
Mapping from task ID to "hostname:port" string. If the `name` field contains "worker", and the `tasks` map contains a mapping from 7 to "example.org:2222", then the device prefix "/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
public Map <Integer, String> getTasksMap ()
Mapping from task ID to "hostname:port" string. If the `name` field contains "worker", and the `tasks` map contains a mapping from 7 to "example.org:2222", then the device prefix "/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
public String getTasksOrDefault (int key, String defaultValue)
Mapping from task ID to "hostname:port" string. If the `name` field contains "worker", and the `tasks` map contains a mapping from 7 to "example.org:2222", then the device prefix "/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
public String getTasksOrThrow (int key)
Mapping from task ID to "hostname:port" string. If the `name` field contains "worker", and the `tasks` map contains a mapping from 7 to "example.org:2222", then the device prefix "/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
public final boolean isInitialized ()
public JobDef.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Lança
IOException |
---|
public JobDef.Builder putAllTasks (Map <Integer, String> values)
Mapping from task ID to "hostname:port" string. If the `name` field contains "worker", and the `tasks` map contains a mapping from 7 to "example.org:2222", then the device prefix "/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
public JobDef.Builder putTasks (int key, String value)
Mapping from task ID to "hostname:port" string. If the `name` field contains "worker", and the `tasks` map contains a mapping from 7 to "example.org:2222", then the device prefix "/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
public JobDef.Builder removeTasks (chave int)
Mapping from task ID to "hostname:port" string. If the `name` field contains "worker", and the `tasks` map contains a mapping from 7 to "example.org:2222", then the device prefix "/job:worker/task:7" will be assigned to "example.org:2222".
map<int32, string> tasks = 2;
public JobDef.Builder setField (campo com.google.protobuf.Descriptors.FieldDescriptor, valor do objeto)
public JobDef.Builder setNameBytes (com.google.protobuf.ByteString value)
The name of this job.
string name = 1;