ApiDef.AttrOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
ApiDef.Attr |
Description of the graph-construction-time configuration of this
Op. |
ApiDef.Attr.Builder |
Description of the graph-construction-time configuration of this
Op. |
|
Public Methods
abstract
AttrValue
|
|
abstract
AttrValueOrBuilder
|
|
abstract
String
|
getDescription()
Note: this will replace any inherited attr doc, there is no current
way of modifying attr descriptions as can be done with op descriptions.
|
abstract
com.google.protobuf.ByteString
|
getDescriptionBytes()
Note: this will replace any inherited attr doc, there is no current
way of modifying attr descriptions as can be done with op descriptions.
|
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
String
|
getRenameTo()
Change the name used to access this attr in the API from what
is used in the GraphDef.
|
abstract
com.google.protobuf.ByteString
|
getRenameToBytes()
Change the name used to access this attr in the API from what
is used in the GraphDef.
|
abstract
boolean
|
|
Public Methods
public
abstract
AttrValue
getDefaultValue
()
Specify a new default value to use for this attr. This default
will be used when creating new graphs, as opposed to the
default in the OpDef, which will be used when interpreting old
GraphDefs.
.tensorflow.AttrValue default_value = 3;
public
abstract
AttrValueOrBuilder
getDefaultValueOrBuilder
()
Specify a new default value to use for this attr. This default
will be used when creating new graphs, as opposed to the
default in the OpDef, which will be used when interpreting old
GraphDefs.
.tensorflow.AttrValue default_value = 3;
public
abstract
String
getDescription
()
Note: this will replace any inherited attr doc, there is no current
way of modifying attr descriptions as can be done with op descriptions.
string description = 4;
public
abstract
com.google.protobuf.ByteString
getDescriptionBytes
()
Note: this will replace any inherited attr doc, there is no current
way of modifying attr descriptions as can be done with op descriptions.
string description = 4;
public
abstract
String
getName
()
public
abstract
com.google.protobuf.ByteString
getNameBytes
()
public
abstract
String
getRenameTo
()
Change the name used to access this attr in the API from what
is used in the GraphDef. Note that these names in `backticks`
will also be replaced in the summary & description fields.
string rename_to = 2;
public
abstract
com.google.protobuf.ByteString
getRenameToBytes
()
Change the name used to access this attr in the API from what
is used in the GraphDef. Note that these names in `backticks`
will also be replaced in the summary & description fields.
string rename_to = 2;
public
abstract
boolean
hasDefaultValue
()
Specify a new default value to use for this attr. This default
will be used when creating new graphs, as opposed to the
default in the OpDef, which will be used when interpreting old
GraphDefs.
.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,["# ApiDef.AttrOrBuilder\n\npublic static interface **ApiDef.AttrOrBuilder** \n\n|---|---|---|\n| Known Indirect Subclasses [ApiDef.Attr](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.Attr), [ApiDef.Attr.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.Attr.Builder) |----------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------| | [ApiDef.Attr](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.Attr) | ``` Description of the graph-construction-time configuration of this Op. ``` | | [ApiDef.Attr.Builder](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.Attr.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) | [getDefaultValue](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.AttrOrBuilder#getDefaultValue())() ``` Specify a new default value to use for this attr. ``` |\n| abstract [AttrValueOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/AttrValueOrBuilder) | [getDefaultValueOrBuilder](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.AttrOrBuilder#getDefaultValueOrBuilder())() ``` Specify a new default value to use for this attr. ``` |\n| abstract String | [getDescription](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.AttrOrBuilder#getDescription())() ``` Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions. ``` |\n| abstract com.google.protobuf.ByteString | [getDescriptionBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.AttrOrBuilder#getDescriptionBytes())() ``` Note: this will replace any inherited attr doc, there is no current way of modifying attr descriptions as can be done with op descriptions. ``` |\n| abstract String | [getName](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.AttrOrBuilder#getName())() `string name = 1;` |\n| abstract com.google.protobuf.ByteString | [getNameBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.AttrOrBuilder#getNameBytes())() `string name = 1;` |\n| abstract String | [getRenameTo](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.AttrOrBuilder#getRenameTo())() ``` Change the name used to access this attr in the API from what is used in the GraphDef. ``` |\n| abstract com.google.protobuf.ByteString | [getRenameToBytes](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.AttrOrBuilder#getRenameToBytes())() ``` Change the name used to access this attr in the API from what is used in the GraphDef. ``` |\n| abstract boolean | [hasDefaultValue](/jvm/api_docs/java/org/tensorflow/proto/framework/ApiDef.AttrOrBuilder#hasDefaultValue())() ``` Specify a new default value to use for this attr. ``` |\n\nPublic Methods\n--------------\n\n#### public abstract [AttrValue](/jvm/api_docs/java/org/tensorflow/proto/framework/AttrValue)\n**getDefaultValue**\n()\n\n\u003cbr /\u003e\n\n```\n Specify a new default value to use for this attr. This default\n will be used when creating new graphs, as opposed to the\n default in the OpDef, which will be used when interpreting old\n GraphDefs.\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 Specify a new default value to use for this attr. This default\n will be used when creating new graphs, as opposed to the\n default in the OpDef, which will be used when interpreting old\n GraphDefs.\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 Note: this will replace any inherited attr doc, there is no current\n way of modifying attr descriptions as can be done with op descriptions.\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 Note: this will replace any inherited attr doc, there is no current\n way of modifying attr descriptions as can be done with op descriptions.\n \n```\n`string description = 4;`\n\n\u003cbr /\u003e\n\n#### public abstract String\n**getName**\n()\n\n`string name = 1;` \n\n#### public abstract com.google.protobuf.ByteString\n**getNameBytes**\n()\n\n`string name = 1;` \n\n#### public abstract String\n**getRenameTo**\n()\n\n\u003cbr /\u003e\n\n```\n Change the name used to access this attr in the API from what\n is used in the GraphDef. Note that these names in `backticks`\n will also be replaced in the summary & description fields.\n \n```\n`string rename_to = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract com.google.protobuf.ByteString\n**getRenameToBytes**\n()\n\n\u003cbr /\u003e\n\n```\n Change the name used to access this attr in the API from what\n is used in the GraphDef. Note that these names in `backticks`\n will also be replaced in the summary & description fields.\n \n```\n`string rename_to = 2;`\n\n\u003cbr /\u003e\n\n#### public abstract boolean\n**hasDefaultValue**\n()\n\n\u003cbr /\u003e\n\n```\n Specify a new default value to use for this attr. This default\n will be used when creating new graphs, as opposed to the\n default in the OpDef, which will be used when interpreting old\n GraphDefs.\n \n```\n`.tensorflow.AttrValue default_value = 3;`\n\n\u003cbr /\u003e"]]