コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
テンソルフロー::作戦::バイアス追加グラッド
#include <nn_ops.h>
「バイアス」テンソルに対する「BiasAdd」の逆方向操作。
まとめ
out_backprop からのすべての値を特徴ディメンションに蓄積します。 NHWC データ形式の場合、フィーチャ ディメンションが最後です。 NCHW データ形式の場合、フィーチャ ディメンションは最後から 3 番目です。
引数:
- スコープ:スコープオブジェクト
- out_backprop:任意の数の次元。
オプションの属性 ( Attrs
を参照):
- data_format: 入出力データのデータ形式を指定します。デフォルト形式「NHWC」では、バイアス テンソルは値テンソルの最後の次元に追加されます。あるいは、形式を「NCHW」、つまりデータ保存順序を [batch、in_channels、in_height、in_width] にすることもできます。テンソルは、最後から 3 番目の次元である「in_channels」に追加されます。
戻り値:
-
Output
: out_backprop
のフィーチャー次元のサイズを持つ 1 次元。
パブリック属性
公共機能
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input() const
演算子::tensorflow::出力
operator::tensorflow::Output() const
パブリック静的関数
Attrs DataFormat(
StringPiece x
)
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[],[],null,["# tensorflow::ops::BiasAddGrad Class Reference\n\ntensorflow::ops::BiasAddGrad\n============================\n\n`#include \u003cnn_ops.h\u003e`\n\nThe backward operation for \"BiasAdd\" on the \"bias\" tensor.\n\nSummary\n-------\n\nIt accumulates all the values from out_backprop into the feature dimension. For NHWC data format, the feature dimension is the last. For NCHW data format, the feature dimension is the third-to-last.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- out_backprop: [Any](/versions/r2.0/api_docs/cc/class/tensorflow/ops/any#classtensorflow_1_1ops_1_1_any) number of dimensions.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/bias-add-grad/attrs#structtensorflow_1_1ops_1_1_bias_add_grad_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.0/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): 1-D with size the feature dimension of `out_backprop`.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [BiasAddGrad](#classtensorflow_1_1ops_1_1_bias_add_grad_1a0b471227bda69729c6aef3eedee7ce76)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` out_backprop)` ||\n| [BiasAddGrad](#classtensorflow_1_1ops_1_1_bias_add_grad_1a7ed7a556f0defe36d84e76b4e1d82520)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` out_backprop, const `[BiasAddGrad::Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/bias-add-grad/attrs#structtensorflow_1_1ops_1_1_bias_add_grad_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_bias_add_grad_1aac9a30fd0d04953d33bfab584e16129e) | [Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_bias_add_grad_1ad08acfbdc2d0884b697b7a5bbc697ae8) | `::`[tensorflow::Output](/versions/r2.0/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_bias_add_grad_1aeccff457f3c53d6baabeb9c55f6652f2)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_bias_add_grad_1a5bad18eefc1b7c3abb7e355a2ac9f7e8)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_bias_add_grad_1a2599155ff799c242f1114fe34acc6280)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|-------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| [DataFormat](#classtensorflow_1_1ops_1_1_bias_add_grad_1a2d3136a07563909023605499a1fd4600)`(StringPiece x)` | [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/bias-add-grad/attrs#structtensorflow_1_1ops_1_1_bias_add_grad_1_1_attrs) |\n\n| ### Structs ||\n|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::BiasAddGrad::Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/bias-add-grad/attrs) | Optional attribute setters for [BiasAddGrad](/versions/r2.0/api_docs/cc/class/tensorflow/ops/bias-add-grad#classtensorflow_1_1ops_1_1_bias_add_grad). |\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### BiasAddGrad\n\n```gdscript\n BiasAddGrad(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input out_backprop\n)\n``` \n\n### BiasAddGrad\n\n```gdscript\n BiasAddGrad(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input out_backprop,\n const BiasAddGrad::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```"]]