OpDef.ArgDefOrBuilder
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
الفئات الفرعية غير المباشرة المعروفة |
الأساليب العامة
سلسلة مجردة | |
مجردة com.google.protobuf.ByteString | |
منطقية مجردة | getIsRef ()
For inputs: if true, the inputs are required to be refs. |
سلسلة مجردة | |
مجردة com.google.protobuf.ByteString | |
سلسلة مجردة | getNumberAttr ()
if specified, attr must have type "int"
string number_attr = 5; |
مجردة com.google.protobuf.ByteString | |
نوع البيانات الملخص | الحصول على النوع ()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg. |
سلسلة مجردة | |
مجردة com.google.protobuf.ByteString | |
سلسلة مجردة | getTypeListAttr ()
If specified, attr must have type "list(type)", and none of
type, type_attr, and number_attr may be specified. |
مجردة 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. |
كثافة العمليات مجردة | الحصول علىTypeValue ()
Describes the type of one or more tensors that are accepted/produced
by this input/output arg. |
الأساليب العامة
سلسلة getDescription () مجردة عامة
Human readable description.
string description = 2;
الملخص العام com.google.protobuf.ByteString getDescriptionBytes ()
Human readable description.
string description = 2;
الملخص المنطقي العام 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;
سلسلة getName () مجردة عامة
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
الملخص العام com.google.protobuf.ByteString getNameBytes ()
Name for the input/output. Should match the regexp "[a-z][a-z0-9_]*".
string name = 1;
سلسلة مجردة عامة getNumberAttr ()
if specified, attr must have type "int"
string number_attr = 5;
الملخص العام com.google.protobuf.ByteString getNumberAttrBytes ()
if specified, attr must have type "int"
string number_attr = 5;
الملخص العام 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;
سلسلة مجردة عامة getTypeAttr ()
if specified, attr must have type "type"
string type_attr = 4;
الملخص العام com.google.protobuf.ByteString getTypeAttrBytes ()
if specified, attr must have type "type"
string type_attr = 4;
سلسلة مجردة عامة 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;
الملخص العام 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;
الملخص العام 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;
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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"]]