OpDef.ArgDefOrBuilder
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Subkelas Tidak Langsung yang Diketahui |
Metode Publik
Tali abstrak | |
abstrak com.google.protobuf.ByteString | |
boolean abstrak | dapatkanIsRef ()
For inputs: if true, the inputs are required to be refs. |
Tali abstrak | |
abstrak com.google.protobuf.ByteString | |
Tali abstrak | |
abstrak com.google.protobuf.ByteString | |
Tipe Data abstrak | dapatkan Tipe ()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg. |
Tali abstrak | dapatkanTypeAttr ()
if specified, attr must have type "type"
string type_attr = 4; |
abstrak com.google.protobuf.ByteString | |
Tali abstrak | dapatkanTypeListAttr ()
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified. |
abstrak 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. |
abstrak ke dalam | dapatkanTypeValue ()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg. |
Metode Publik
abstrak publik String getDescription ()
Human readable description.
string description = 2;
abstrak publik com.google.protobuf.ByteString getDescriptionBytes ()
Human readable description.
string description = 2;
boolean abstrak publik 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;
abstrak publik String getName ()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
abstrak publik com.google.protobuf.ByteString getNameBytes ()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
String abstrak publik getNumberAttr ()
if specified, attr must have type "int"
string number_attr = 5;
abstrak publik com.google.protobuf.ByteString getNumberAttrBytes ()
if specified, attr must have type "int"
string number_attr = 5;
Tipe Data abstrak publik 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;
String abstrak publik getTypeAttr ()
if specified, attr must have type "type"
string type_attr = 4;
abstrak publik com.google.protobuf.ByteString getTypeAttrBytes ()
if specified, attr must have type "type"
string type_attr = 4;
String abstrak publik 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;
abstrak publik 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;
abstrak publik 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;
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.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"]]