OpDef.AttrDefOrBuilder
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 OpDef.AttrDef |
Description of the graph-construction-time configuration of this
Op. | OpDef.AttrDef.Builder |
Description of the graph-construction-time configuration of this
Op. |
|
Phương pháp công khai
trừu tượng AttrValue | |
trừu tượng AttrValueOrBuilder | |
trừu tượng AttrValue | getDefaultValue ()
A reasonable default for this attribute if the user does not supply
a value. |
trừu tượng AttrValueOrBuilder | |
chuỗi trừu tượng | |
tóm tắt com.google.protobuf.ByteString | |
trừu tượng boolean | |
trừu tượng dài | |
chuỗi trừu tượng | lấy Tên ()
A descriptive name for the argument. |
tóm tắt com.google.protobuf.ByteString | |
chuỗi trừu tượng | getType ()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.). |
tóm tắt com.google.protobuf.ByteString | getTypeBytes ()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.). |
trừu tượng boolean | |
trừu tượng boolean | hasDefaultValue ()
A reasonable default for this attribute if the user does not supply
a value. |
Phương pháp công khai
tóm tắt công khai AttrValue getAllowedValues ()
The set of allowed values. Has type that is the "list" version
of the "type" field above (uses the "list" field of AttrValue).
If type == "type" or "list(type)" above, then the "type" field
of "allowed_values.list" has the set of allowed DataTypes.
If type == "string" or "list(string)", then the "s" field of
"allowed_values.list" has the set of allowed strings.
.tensorflow.AttrValue allowed_values = 7;
tóm tắt công khai AttrValueOrBuilder getAllowedValuesOrBuilder ()
The set of allowed values. Has type that is the "list" version
of the "type" field above (uses the "list" field of AttrValue).
If type == "type" or "list(type)" above, then the "type" field
of "allowed_values.list" has the set of allowed DataTypes.
If type == "string" or "list(string)", then the "s" field of
"allowed_values.list" has the set of allowed strings.
.tensorflow.AttrValue allowed_values = 7;
tóm tắt công khai AttrValue getDefaultValue ()
A reasonable default for this attribute if the user does not supply
a value. If not specified, the user must supply a value.
.tensorflow.AttrValue default_value = 3;
tóm tắt công khai AttrValueOrBuilder getDefaultValueOrBuilder ()
A reasonable default for this attribute if the user does not supply
a value. If not specified, the user must supply a value.
.tensorflow.AttrValue default_value = 3;
Chuỗi tóm tắt công khai getDescription ()
Human-readable description.
string description = 4;
tóm tắt công khai com.google.protobuf.ByteString getDescriptionBytes ()
Human-readable description.
string description = 4;
boolean trừu tượng công khai getHasMinimum ()
For type == "int", this is a minimum value. For "list(___)"
types, this is the minimum length.
bool has_minimum = 5;
tóm tắt công khai dài getMinimum ()
Chuỗi tóm tắt công khai getName ()
A descriptive name for the argument. May be used, e.g. by the
Python client, as a keyword argument name, and so should match
the regexp "[a-z][a-z0-9_]+".
string name = 1;
tóm tắt công khai com.google.protobuf.ByteString getNameBytes ()
A descriptive name for the argument. May be used, e.g. by the
Python client, as a keyword argument name, and so should match
the regexp "[a-z][a-z0-9_]+".
string name = 1;
Chuỗi trừu tượng công khai getType ()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
string type = 2;
tóm tắt công khai com.google.protobuf.ByteString getTypeBytes ()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
string type = 2;
boolean trừu tượng công khai hasAllowedValues ()
The set of allowed values. Has type that is the "list" version
of the "type" field above (uses the "list" field of AttrValue).
If type == "type" or "list(type)" above, then the "type" field
of "allowed_values.list" has the set of allowed DataTypes.
If type == "string" or "list(string)", then the "s" field of
"allowed_values.list" has the set of allowed strings.
.tensorflow.AttrValue allowed_values = 7;
boolean trừu tượng công khai hasDefaultValue ()
A reasonable default for this attribute if the user does not supply
a value. If not specified, the user must supply a value.
.tensorflow.AttrValue default_value = 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.AttrDefOrBuilder\n\npublic static interface **OpDef.AttrDefOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [OpDef.AttrDef](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDef), [OpDef.AttrDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDef.Builder) |--------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------| | [OpDef.AttrDef](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDef) | ``` Description of the graph-construction-time configuration of this Op. ``` | | [OpDef.AttrDef.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDef.Builder) | ``` Description of the graph-construction-time configuration of this Op. ``` | |||\n\n### Public Methods\n\n|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [AttrValue](/jvm/api_docs/java/org/tensorflow/proto/framework/AttrValue) | [getAllowedValues](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#getAllowedValues())() ``` The set of allowed values. ``` |\n| abstract [AttrValueOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/AttrValueOrBuilder) | [getAllowedValuesOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#getAllowedValuesOrBuilder())() ``` The set of allowed values. ``` |\n| abstract [AttrValue](/jvm/api_docs/java/org/tensorflow/proto/framework/AttrValue) | [getDefaultValue](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#getDefaultValue())() ``` A reasonable default for this attribute if the user does not supply a value. ``` |\n| abstract [AttrValueOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/AttrValueOrBuilder) | [getDefaultValueOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#getDefaultValueOrBuilder())() ``` A reasonable default for this attribute if the user does not supply a value. ``` |\n| abstract String | [getDescription](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#getDescription())() ``` Human-readable description. ``` |\n| abstract com.google.protobuf.ByteString | [getDescriptionBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#getDescriptionBytes())() ``` Human-readable description. ``` |\n| abstract boolean | [getHasMinimum](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#getHasMinimum())() ``` For type == \"int\", this is a minimum value. ``` |\n| abstract long | [getMinimum](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#getMinimum())() `int64 minimum = 6;` |\n| abstract String | [getName](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#getName())() ``` A descriptive name for the argument. ``` |\n| abstract com.google.protobuf.ByteString | [getNameBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#getNameBytes())() ``` A descriptive name for the argument. ``` |\n| abstract String | [getType](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#getType())() ``` One of the type names from attr_value.proto (\"string\", \"list(string)\", \"int\", etc.). ``` |\n| abstract com.google.protobuf.ByteString | [getTypeBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#getTypeBytes())() ``` One of the type names from attr_value.proto (\"string\", \"list(string)\", \"int\", etc.). ``` |\n| abstract boolean | [hasAllowedValues](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#hasAllowedValues())() ``` The set of allowed values. ``` |\n| abstract boolean | [hasDefaultValue](/jvm/api_docs/java/org/tensorflow/proto/framework/OpDef.AttrDefOrBuilder#hasDefaultValue())() ``` A reasonable default for this attribute if the user does not supply a value. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract [AttrValue](/jvm/api_docs/java/org/tensorflow/proto/framework/AttrValue)\n**getAllowedValues**\n()\n\n\u003cbr /\u003e\n\n```\n The set of allowed values. Has type that is the \"list\" version\n of the \"type\" field above (uses the \"list\" field of AttrValue).\n If type == \"type\" or \"list(type)\" above, then the \"type\" field\n of \"allowed_values.list\" has the set of allowed DataTypes.\n If type == \"string\" or \"list(string)\", then the \"s\" field of\n \"allowed_values.list\" has the set of allowed strings.\n \n```\n`.tensorflow.AttrValue allowed_values = 7;`\n\n\u003cbr /\u003e\n\n#### public abstract [AttrValueOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/AttrValueOrBuilder)\n**getAllowedValuesOrBuilder**\n()\n\n\u003cbr /\u003e\n\n```\n The set of allowed values. Has type that is the \"list\" version\n of the \"type\" field above (uses the \"list\" field of AttrValue).\n If type == \"type\" or \"list(type)\" above, then the \"type\" field\n of \"allowed_values.list\" has the set of allowed DataTypes.\n If type == \"string\" or \"list(string)\", then the \"s\" field of\n \"allowed_values.list\" has the set of allowed strings.\n \n```\n`.tensorflow.AttrValue allowed_values = 7;`\n\n\u003cbr /\u003e\n\n#### public abstract [AttrValue](/jvm/api_docs/java/org/tensorflow/proto/framework/AttrValue)\n**getDefaultValue**\n()\n\n\u003cbr /\u003e\n\n```\n A reasonable default for this attribute if the user does not supply\n a value. If not specified, the user must supply a value.\n \n```\n`.tensorflow.AttrValue default_value = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract [AttrValueOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/AttrValueOrBuilder)\n**getDefaultValueOrBuilder**\n()\n\n\u003cbr /\u003e\n\n```\n A reasonable default for this attribute if the user does not supply\n a value. If not specified, the user must supply a value.\n \n```\n`.tensorflow.AttrValue default_value = 3;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getDescription**\n()\n\n\u003cbr /\u003e\n\n```\n Human-readable description.\n \n```\n`string description = 4;`\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 = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**getHasMinimum**\n()\n\n\u003cbr /\u003e\n\n```\n For type == \"int\", this is a minimum value. For \"list(___)\"\n types, this is the minimum length.\n \n```\n`bool has_minimum = 5;`\n\n\u003cbr /\u003e\n\n#### public abstract long\n**getMinimum**\n()\n\n`int64 minimum = 6;` \n\n#### public abstract String\n**getName**\n()\n\n\u003cbr /\u003e\n\n```\n A descriptive name for the argument. May be used, e.g. by the\n Python client, as a keyword argument name, and so should match\n 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 A descriptive name for the argument. May be used, e.g. by the\n Python client, as a keyword argument name, and so should match\n the regexp \"[a-z][a-z0-9_]+\".\n \n```\n`string name = 1;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getType**\n()\n\n\u003cbr /\u003e\n\n```\n One of the type names from attr_value.proto (\"string\", \"list(string)\",\n \"int\", etc.).\n \n```\n`string type = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getTypeBytes**\n()\n\n\u003cbr /\u003e\n\n```\n One of the type names from attr_value.proto (\"string\", \"list(string)\",\n \"int\", etc.).\n \n```\n`string type = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasAllowedValues**\n()\n\n\u003cbr /\u003e\n\n```\n The set of allowed values. Has type that is the \"list\" version\n of the \"type\" field above (uses the \"list\" field of AttrValue).\n If type == \"type\" or \"list(type)\" above, then the \"type\" field\n of \"allowed_values.list\" has the set of allowed DataTypes.\n If type == \"string\" or \"list(string)\", then the \"s\" field of\n \"allowed_values.list\" has the set of allowed strings.\n \n```\n`.tensorflow.AttrValue allowed_values = 7;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasDefaultValue**\n()\n\n\u003cbr /\u003e\n\n```\n A reasonable default for this attribute if the user does not supply\n a value. If not specified, the user must supply a value.\n \n```\n`.tensorflow.AttrValue default_value = 3;`\n\n\u003cbr /\u003e"]]