Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: BiasAddGrad
#include <nn_ops.h>
Operacja wsteczna dla „BiasAdd” na tensorze „bias”.
Streszczenie
Gromadzi wszystkie wartości z out_backprop w wymiarze cechy. W przypadku formatu danych NHWC wymiar cechy jest ostatnim. W przypadku formatu danych NCHW wymiar cechy jest trzeci od końca.
Argumenty:
Opcjonalne atrybuty (patrz Attrs
):
- data_format: Określ format danych wejściowych i wyjściowych. Przy domyślnym formacie „NHWC” tensor odchylenia zostanie dodany do ostatniego wymiaru tensora wartości. Alternatywnie formatem może być „NCHW”, a kolejność przechowywania danych to: [partia, kanały_w, wysokość_w, szerokość_w.]. Tensor zostanie dodany do „in_channels”, wymiaru od trzeciego do ostatniego.
Zwroty:
-
Output
: 1-D z rozmiarem wymiarem funkcji out_backprop
.
Publiczne funkcje statyczne |
---|
DataFormat (StringPiece x) | |
Atrybuty publiczne
Funkcje publiczne
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Attrs DataFormat(
StringPiece x
)
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-27 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.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- out_backprop: [Any](/versions/r2.3/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.3/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.3/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.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)` out_backprop)` ||\n| [BiasAddGrad](#classtensorflow_1_1ops_1_1_bias_add_grad_1a7ed7a556f0defe36d84e76b4e1d82520)`(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)` out_backprop, const `[BiasAddGrad::Attrs](/versions/r2.3/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.3/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.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_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.3/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.3/api_docs/cc/struct/tensorflow/ops/bias-add-grad/attrs) | Optional attribute setters for [BiasAddGrad](/versions/r2.3/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```"]]