OpDef.AttrDefOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
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. |
|
Public Methods
abstract
AttrValue
|
|
abstract
AttrValueOrBuilder
|
|
abstract
AttrValue
|
getDefaultValue()
A reasonable default for this attribute if the user does not supply
a value.
|
abstract
AttrValueOrBuilder
|
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
boolean
|
|
abstract
long
|
|
abstract
String
|
getName()
A descriptive name for the argument.
|
abstract
com.google.protobuf.ByteString
|
|
abstract
String
|
getType()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
|
abstract
com.google.protobuf.ByteString
|
getTypeBytes()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
|
abstract
boolean
|
|
abstract
boolean
|
hasDefaultValue()
A reasonable default for this attribute if the user does not supply
a value.
|
Public Methods
public
abstract
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;
public
abstract
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;
public
abstract
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;
public
abstract
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;
public
abstract
String
getDescription
()
Human-readable description.
string description = 4;
public
abstract
com.google.protobuf.ByteString
getDescriptionBytes
()
Human-readable description.
string description = 4;
public
abstract
boolean
getHasMinimum
()
For type == "int", this is a minimum value. For "list(___)"
types, this is the minimum length.
bool has_minimum = 5;
public
abstract
long
getMinimum
()
public
abstract
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;
public
abstract
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;
public
abstract
String
getType
()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
string type = 2;
public
abstract
com.google.protobuf.ByteString
getTypeBytes
()
One of the type names from attr_value.proto ("string", "list(string)",
"int", etc.).
string type = 2;
public
abstract
boolean
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;
public
abstract
boolean
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;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2021-11-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-11-29 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"]]