JobDefOrBuilder
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Các lớp con gián tiếp đã biết JobDef |
Defines a single job in a TensorFlow cluster. | JobDef.Builder |
Defines a single job in a TensorFlow cluster. |
|
Phương pháp công khai
trừu tượng boolean | chứa Nhiệm vụ (khóa int)
Mapping from task ID to "hostname:port" string. |
chuỗi trừu tượng | |
tóm tắt com.google.protobuf.ByteString | |
Bản đồ trừu tượng<Số nguyên, Chuỗi> | |
int trừu tượng | |
Bản đồ trừu tượng<Số nguyên, Chuỗi> | getTasksMap ()
Mapping from task ID to "hostname:port" string. |
chuỗi trừu tượng | getTasksOrDefault (khóa int, Chuỗi defaultValue)
Mapping from task ID to "hostname:port" string. |
chuỗi trừu tượng | |
Phương pháp công khai
boolean trừu tượng công khai chứaTasks (khóa 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;
Chuỗi tóm tắt công khai getName ()
The name of this job.
string name = 1;
tóm tắt công khai com.google.protobuf.ByteString getNameBytes ()
The name of this job.
string name = 1;
Bản đồ trừu tượng công khai<Integer, String> getTasks ()
tóm tắt công khai 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;
Bản đồ trừu tượng công khai<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;
Chuỗi tóm tắt công khai getTasksOrDefault (khóa int, Chuỗi 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;
Chuỗi trừu tượng công khai getTasksOrThrow (khóa 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;
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[],[],null,["# JobDefOrBuilder\n\npublic interface **JobDefOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [JobDef](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDef), [JobDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDef.Builder) |--------------------------------------------------------------------------------------|--------------------------------------------------------| | [JobDef](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDef) | ``` Defines a single job in a TensorFlow cluster. ``` | | [JobDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDef.Builder) | ``` Defines a single job in a TensorFlow cluster. ``` | |||\n\n### Public Methods\n\n|-----------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract boolean | [containsTasks](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#containsTasks(int))(int key) ``` Mapping from task ID to \"hostname:port\" string. ``` |\n| abstract String | [getName](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getName())() ``` The name of this job. ``` |\n| abstract com.google.protobuf.ByteString | [getNameBytes](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getNameBytes())() ``` The name of this job. ``` |\n| abstract Map\\\u003cInteger, String\\\u003e | [getTasks](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasks())() Use [getTasksMap()](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksMap()) instead. |\n| abstract int | [getTasksCount](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksCount())() ``` Mapping from task ID to \"hostname:port\" string. ``` |\n| abstract Map\\\u003cInteger, String\\\u003e | [getTasksMap](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksMap())() ``` Mapping from task ID to \"hostname:port\" string. ``` |\n| abstract String | [getTasksOrDefault](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksOrDefault(int, java.lang.String))(int key, String defaultValue) ``` Mapping from task ID to \"hostname:port\" string. ``` |\n| abstract String | [getTasksOrThrow](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksOrThrow(int))(int key) ``` Mapping from task ID to \"hostname:port\" string. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract boolean\n**containsTasks**\n(int key)\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getName**\n()\n\n\u003cbr /\u003e\n\n```\n The name of this job.\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getNameBytes**\n()\n\n\u003cbr /\u003e\n\n```\n The name of this job.\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract Map\\\u003cInteger, String\\\u003e\n**getTasks**\n()\n\nUse [getTasksMap()](/jvm/api_docs/java/org/tensorflow/proto/distruntime/JobDefOrBuilder#getTasksMap()) instead. \n\n#### public abstract int\n**getTasksCount**\n()\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract Map\\\u003cInteger, String\\\u003e\n**getTasksMap**\n()\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getTasksOrDefault**\n(int key, String defaultValue)\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getTasksOrThrow**\n(int key)\n\n\u003cbr /\u003e\n\n```\n Mapping from task ID to \"hostname:port\" string.\n If the `name` field contains \"worker\", and the `tasks` map contains a\n mapping from 7 to \"example.org:2222\", then the device prefix\n \"/job:worker/task:7\" will be assigned to \"example.org:2222\".\n \n```\n`map\u003cint32, string\u003e tasks = 2;`\n\n\u003cbr /\u003e"]]