OpDef.AttrDefOrBuilder
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Subkelas Tidak Langsung yang Diketahui 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. |
|
Metode Publik
Nilai AttrValue abstrak | |
abstrak AttrValueOrBuilder | |
Nilai AttrValue abstrak | |
abstrak AttrValueOrBuilder | |
Tali abstrak | |
abstrak com.google.protobuf.ByteString | |
boolean abstrak | |
abstrak panjang | |
Tali abstrak | |
abstrak com.google.protobuf.ByteString | |
Tali abstrak | dapatkan Tipe ()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.). |
abstrak com.google.protobuf.ByteString | dapatkanTypeBytes ()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.). |
boolean abstrak | |
boolean abstrak | memilikiDefaultValue ()
A reasonable default for this attribute if the user does not supply
a value. |
Metode Publik
abstrak publik 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;
abstrak publik 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;
abstrak publik 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;
abstrak publik 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;
abstrak publik String getDescription ()
Human-readable description.
string description = 4;
abstrak publik com.google.protobuf.ByteString getDescriptionBytes ()
Human-readable description.
string description = 4;
boolean abstrak publik getHasMinimum ()
For type == "int", this is a minimum value. For "list(___)"
types, this is the minimum length.
bool has_minimum = 5;
abstrak publik getMinimum panjang ()
abstrak publik String 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;
abstrak publik 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;
abstrak publik String getType ()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
string type = 2;
abstrak publik com.google.protobuf.ByteString getTypeBytes ()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
string type = 2;
boolean abstrak publik 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 abstrak publik 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;
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[null,null,["Terakhir diperbarui pada 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"]]