tensorflow:: אופס:: BiasAdd
#include <nn_ops.h>
מוסיף bias
value
.
תַקצִיר
זהו מקרה מיוחד של tf.add
שבו bias
מוגבלת להיות 1-D. שידור נתמך, כך value
עשוי להיות כל מספר ממדים.
טיעונים:
מאפיינים אופציונליים (ראה Attrs
):
- data_format: ציין את פורמט הנתונים של נתוני הקלט והפלט. עם פורמט ברירת המחדל "NHWC", טנזור ההטיה יתווסף לממד האחרון של טנסור הערך. לחלופין, הפורמט יכול להיות "NCHW", סדר אחסון הנתונים של: [אצווה, in_channels, in_height, in_width]. הטנזור יתווסף ל-"in_channels", המימד השלישי-לאחרון.
החזרות:
-
Output
: סכום משודר שלvalue
bias
.
בנאים והורסים | |
---|---|
BiasAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input value, :: tensorflow::Input bias) | |
BiasAdd (const :: tensorflow::Scope & scope, :: tensorflow::Input value, :: tensorflow::Input bias, const BiasAdd::Attrs & attrs) |
תכונות ציבוריות | |
---|---|
operation | |
output |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
פונקציות סטטיות ציבוריות | |
---|---|
DataFormat (StringPiece x) |
מבנים | |
---|---|
tensorflow:: ops:: BiasAdd:: Attrs | קובעי תכונות אופציונליים עבור BiasAdd . |
תכונות ציבוריות
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
BiasAdd
BiasAdd( const ::tensorflow::Scope & scope, ::tensorflow::Input value, ::tensorflow::Input bias )
BiasAdd
BiasAdd( const ::tensorflow::Scope & scope, ::tensorflow::Input value, ::tensorflow::Input bias, const BiasAdd::Attrs & attrs )
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
DataFormat
Attrs DataFormat( StringPiece x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# tensorflow::ops::BiasAdd Class Reference\n\ntensorflow::ops::BiasAdd\n========================\n\n`#include \u003cnn_ops.h\u003e`\n\nAdds `bias` to `value`.\n\nSummary\n-------\n\nThis is a special case of `tf.add` where `bias` is restricted to be 1-D. Broadcasting is supported, so `value` may have any number of dimensions.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- value: [Any](/versions/r2.3/api_docs/cc/class/tensorflow/ops/any#classtensorflow_1_1ops_1_1_any) number of dimensions.\n- bias: 1-D with size the last dimension of `value`.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/bias-add/attrs#structtensorflow_1_1ops_1_1_bias_add_1_1_attrs)):\n\n- data_format: Specify the data format of the input and output data. With the default format \"NHWC\", the bias tensor will be added to the last dimension of the value tensor. Alternatively, the format could be \"NCHW\", the data storage order of: \\[batch, in_channels, in_height, in_width\\]. The tensor will be added to \"in_channels\", the third-to-the-last dimension.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): Broadcasted sum of `value` and `bias`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [BiasAdd](#classtensorflow_1_1ops_1_1_bias_add_1a557f3731192ba1a1281f5e93feda8b09)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` value, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` bias)` ||\n| [BiasAdd](#classtensorflow_1_1ops_1_1_bias_add_1a59db6709f414edec0beb3a52ea21a4ba)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` value, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` bias, const `[BiasAdd::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/bias-add/attrs#structtensorflow_1_1ops_1_1_bias_add_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_bias_add_1a4745da3d9a9423c0ddb653a80ba0b81e) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_bias_add_1a8894dda0cc6b6456db95a303256ccf38) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_bias_add_1a0be2c046b83f6a0710802e14a772e392)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_bias_add_1a8e189ec658d703610e8f20b60eae0498)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_bias_add_1af1515b8af002cafdd40ef73b44794553)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|\n| [DataFormat](#classtensorflow_1_1ops_1_1_bias_add_1a48906c6a8a955f34d82526187493f433)`(StringPiece x)` | [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/bias-add/attrs#structtensorflow_1_1ops_1_1_bias_add_1_1_attrs) |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::BiasAdd::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/bias-add/attrs) | Optional attribute setters for [BiasAdd](/versions/r2.3/api_docs/cc/class/tensorflow/ops/bias-add#classtensorflow_1_1ops_1_1_bias_add). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### BiasAdd\n\n```gdscript\n BiasAdd(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input value,\n ::tensorflow::Input bias\n)\n``` \n\n### BiasAdd\n\n```gdscript\n BiasAdd(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input value,\n ::tensorflow::Input bias,\n const BiasAdd::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### DataFormat\n\n```text\nAttrs DataFormat(\n StringPiece x\n)\n```"]]