OpDef.ArgDefOrBuilder
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 |
Phương pháp công cộng
chuỗi trừu tượng | |
tóm tắt com.google.protobuf.ByteString | |
trừu tượng boolean | getIsRef ()
For inputs: if true, the inputs are required to be refs. |
chuỗi trừu tượng | lấy Tên ()
Name for the input/output. |
tóm tắt com.google.protobuf.ByteString | |
chuỗi trừu tượng | getNumberAttr ()
if specified, attr must have type "int"
string number_attr = 5; |
tóm tắt com.google.protobuf.ByteString | |
kiểu dữ liệu trừu tượng | getType ()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg. |
chuỗi trừu tượng | getTypeAttr ()
if specified, attr must have type "type"
string type_attr = 4; |
tóm tắt com.google.protobuf.ByteString | getTypeAttrBytes ()
if specified, attr must have type "type"
string type_attr = 4; |
chuỗi trừu tượng | getTypeListAttr ()
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified. |
tóm tắt com.google.protobuf.ByteString | getTypeListAttrBytes ()
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified. |
int trừu tượng | getTypeValue ()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg. |
Phương pháp công cộng
Chuỗi tóm tắt công khai getDescription ()
Human readable description.
string description = 2;
tóm tắt công khai com.google.protobuf.ByteString getDescriptionBytes ()
Human readable description.
string description = 2;
boolean trừu tượng công khai getIsRef ()
For inputs: if true, the inputs are required to be refs.
By default, inputs can be either refs or non-refs.
For outputs: if true, outputs are refs, otherwise they are not.
bool is_ref = 16;
Chuỗi tóm tắt công khai getName ()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
tóm tắt công khai com.google.protobuf.ByteString getNameBytes ()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
Chuỗi tóm tắt công khai getNumberAttr ()
if specified, attr must have type "int"
string number_attr = 5;
tóm tắt công khai com.google.protobuf.ByteString getNumberAttrBytes ()
if specified, attr must have type "int"
string number_attr = 5;
tóm tắt công khai DataType getType ()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg. The only legal combinations are:
* For a single tensor: either the "type" field is set or the
"type_attr" field is set to the name of an attr with type "type".
* For a sequence of tensors with the same type: the "number_attr"
field will be set to the name of an attr with type "int", and
either the "type" or "type_attr" field will be set as for
single tensors.
* For a sequence of tensors, the "type_list_attr" field will be set
to the name of an attr with type "list(type)".
.tensorflow.DataType type = 3;
Chuỗi trừu tượng công khai getTypeAttr ()
if specified, attr must have type "type"
string type_attr = 4;
tóm tắt công khai com.google.protobuf.ByteString getTypeAttrBytes ()
if specified, attr must have type "type"
string type_attr = 4;
Chuỗi tóm tắt công khai getTypeListAttr ()
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified.
string type_list_attr = 6;
tóm tắt công khai com.google.protobuf.ByteString getTypeListAttrBytes ()
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified.
string type_list_attr = 6;
tóm tắt công khai int getTypeValue ()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg. The only legal combinations are:
* For a single tensor: either the "type" field is set or the
"type_attr" field is set to the name of an attr with type "type".
* For a sequence of tensors with the same type: the "number_attr"
field will be set to the name of an attr with type "int", and
either the "type" or "type_attr" field will be set as for
single tensors.
* For a sequence of tensors, the "type_list_attr" field will be set
to the name of an attr with type "list(type)".
.tensorflow.DataType type = 3;
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,["# OpDef.ArgDefOrBuilder\n\npublic static interface **OpDef.ArgDefOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [OpDef.ArgDef](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDef), [OpDef.ArgDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDef.Builder) |------------------------------------------------------------------------------------------------|---------------------------------------------| | [OpDef.ArgDef](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDef) | ``` For describing inputs and outputs. ``` | | [OpDef.ArgDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDef.Builder) | ``` For describing inputs and outputs. ``` | |||\n\n### Public Methods\n\n|---------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract String | [getDescription](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getDescription())() ``` Human readable description. ``` |\n| abstract com.google.protobuf.ByteString | [getDescriptionBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getDescriptionBytes())() ``` Human readable description. ``` |\n| abstract boolean | [getIsRef](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getIsRef())() ``` For inputs: if true, the inputs are required to be refs. ``` |\n| abstract String | [getName](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getName())() ``` Name for the input/output. ``` |\n| abstract com.google.protobuf.ByteString | [getNameBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getNameBytes())() ``` Name for the input/output. ``` |\n| abstract String | [getNumberAttr](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getNumberAttr())() ``` if specified, attr must have type \"int\" ``` `string number_attr = 5;` |\n| abstract com.google.protobuf.ByteString | [getNumberAttrBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getNumberAttrBytes())() ``` if specified, attr must have type \"int\" ``` `string number_attr = 5;` |\n| abstract [DataType](/jvm/api_docs/java/org/tensorflow/proto/framework/DataType) | [getType](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getType())() ``` Describes the type of one or more tensors that are accepted/produced by this input/output arg. ``` |\n| abstract String | [getTypeAttr](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getTypeAttr())() ``` if specified, attr must have type \"type\" ``` `string type_attr = 4;` |\n| abstract com.google.protobuf.ByteString | [getTypeAttrBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getTypeAttrBytes())() ``` if specified, attr must have type \"type\" ``` `string type_attr = 4;` |\n| abstract String | [getTypeListAttr](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getTypeListAttr())() ``` If specified, attr must have type \"list(type)\", and none of type, type_attr, and number_attr may be specified. ``` |\n| abstract com.google.protobuf.ByteString | [getTypeListAttrBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getTypeListAttrBytes())() ``` If specified, attr must have type \"list(type)\", and none of type, type_attr, and number_attr may be specified. ``` |\n| abstract int | [getTypeValue](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.ArgDefOrBuilder#getTypeValue())() ``` Describes the type of one or more tensors that are accepted/produced by this input/output arg. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract String\n**getDescription**\n()\n\n\u003cbr /\u003e\n\n```\n Human readable description.\n \n```\n`string description = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getDescriptionBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Human readable description.\n \n```\n`string description = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getIsRef**\n()\n\n\u003cbr /\u003e\n\n```\n For inputs: if true, the inputs are required to be refs.\n By default, inputs can be either refs or non-refs.\n For outputs: if true, outputs are refs, otherwise they are not.\n \n```\n`bool is_ref = 16;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getName**\n()\n\n\u003cbr /\u003e\n\n```\n Name for the input/output. Should match the regexp \"[a-z][a-z0-9_]*\".\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 Name for the input/output. Should match the regexp \"[a-z][a-z0-9_]*\".\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getNumberAttr**\n()\n\n\u003cbr /\u003e\n\n```\n if specified, attr must have type \"int\"\n \n```\n`string number_attr = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getNumberAttrBytes**\n()\n\n\u003cbr /\u003e\n\n```\n if specified, attr must have type \"int\"\n \n```\n`string number_attr = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract [DataType](/jvm/api_docs/java/org/tensorflow/proto/framework/DataType)\n**getType**\n()\n\n\u003cbr /\u003e\n\n```\n Describes the type of one or more tensors that are accepted/produced\n by this input/output arg. The only legal combinations are:\n * For a single tensor: either the \"type\" field is set or the\n \"type_attr\" field is set to the name of an attr with type \"type\".\n * For a sequence of tensors with the same type: the \"number_attr\"\n field will be set to the name of an attr with type \"int\", and\n either the \"type\" or \"type_attr\" field will be set as for\n single tensors.\n * For a sequence of tensors, the \"type_list_attr\" field will be set\n to the name of an attr with type \"list(type)\".\n \n```\n`.tensorflow.DataType type = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getTypeAttr**\n()\n\n\u003cbr /\u003e\n\n```\n if specified, attr must have type \"type\"\n \n```\n`string type_attr = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getTypeAttrBytes**\n()\n\n\u003cbr /\u003e\n\n```\n if specified, attr must have type \"type\"\n \n```\n`string type_attr = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getTypeListAttr**\n()\n\n\u003cbr /\u003e\n\n```\n If specified, attr must have type \"list(type)\", and none of\n type, type_attr, and number_attr may be specified.\n \n```\n`string type_list_attr = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getTypeListAttrBytes**\n()\n\n\u003cbr /\u003e\n\n```\n If specified, attr must have type \"list(type)\", and none of\n type, type_attr, and number_attr may be specified.\n \n```\n`string type_list_attr = 6;`\n\n\u003cbr /\u003e\n\n#### public abstract int\n**getTypeValue**\n()\n\n\u003cbr /\u003e\n\n```\n Describes the type of one or more tensors that are accepted/produced\n by this input/output arg. The only legal combinations are:\n * For a single tensor: either the \"type\" field is set or the\n \"type_attr\" field is set to the name of an attr with type \"type\".\n * For a sequence of tensors with the same type: the \"number_attr\"\n field will be set to the name of an attr with type \"int\", and\n either the \"type\" or \"type_attr\" field will be set as for\n single tensors.\n * For a sequence of tensors, the \"type_list_attr\" field will be set\n to the name of an attr with type \"list(type)\".\n \n```\n`.tensorflow.DataType type = 3;`\n\n\u003cbr /\u003e"]]