OpDef.ArgDefOrBuilder
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
Public Methods
abstract
String
|
|
abstract
com.google.protobuf.ByteString
|
|
abstract
boolean
|
getIsRef()
For inputs: if true, the inputs are required to be refs.
|
abstract
String
|
getName()
Name for the input/output.
|
abstract
com.google.protobuf.ByteString
|
|
abstract
String
|
getNumberAttr()
if specified, attr must have type "int"
string number_attr = 5;
|
abstract
com.google.protobuf.ByteString
|
|
abstract
DataType
|
getType()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg.
|
abstract
String
|
getTypeAttr()
if specified, attr must have type "type"
string type_attr = 4;
|
abstract
com.google.protobuf.ByteString
|
getTypeAttrBytes()
if specified, attr must have type "type"
string type_attr = 4;
|
abstract
String
|
getTypeListAttr()
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified.
|
abstract
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.
|
abstract
int
|
getTypeValue()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg.
|
Public Methods
public
abstract
String
getDescription
()
Human readable description.
string description = 2;
public
abstract
com.google.protobuf.ByteString
getDescriptionBytes
()
Human readable description.
string description = 2;
public
abstract
boolean
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;
public
abstract
String
getName
()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
public
abstract
com.google.protobuf.ByteString
getNameBytes
()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
public
abstract
String
getNumberAttr
()
if specified, attr must have type "int"
string number_attr = 5;
public
abstract
com.google.protobuf.ByteString
getNumberAttrBytes
()
if specified, attr must have type "int"
string number_attr = 5;
public
abstract
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;
public
abstract
String
getTypeAttr
()
if specified, attr must have type "type"
string type_attr = 4;
public
abstract
com.google.protobuf.ByteString
getTypeAttrBytes
()
if specified, attr must have type "type"
string type_attr = 4;
public
abstract
String
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;
public
abstract
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;
public
abstract
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;
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.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"]]