Stay organized with collections
Save and categorize content based on your preferences.
tensorflow::
ops::
AddN
#include <math_ops.h>
Add
all input tensors element wise.
Summary
Inputs must be of same size and shape.
x = [9, 7, 10]
tf.math.add_n(x) ==> 26
Args:
Returns:
Public attributes
Public functions
node
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-05-14 UTC.
[null,null,["Last updated 2021-05-14 UTC."],[],[],null,["# tensorflow::ops::AddN Class Reference\n\ntensorflow::\nops::\nAddN\n=======================\n\n`\n#include \u003cmath_ops.h\u003e\n`\n\n\n[Add](/versions/r2.5/api_docs/cc/class/tensorflow/ops/add#classtensorflow_1_1ops_1_1_add)\nall input tensors element wise.\n\nSummary\n-------\n\n\nInputs must be of same size and shape.\n\n\n```scdoc\n x = [9, 7, 10]\n tf.math.add_n(x) ==\u003e 26\n \n```\n\n\u003cbr /\u003e\n\n\nArgs:\n\n- scope: A [Scope](/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n\n\u003cbr /\u003e\n\n\nReturns:\n\n- `\n `[Output](/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output)`\n ` : The sum tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| ` `[AddN](#classtensorflow_1_1ops_1_1_add_n_1a4deb1509689964000fe0ba7f9e6cc389)` (const :: `[tensorflow::Scope](/versions/r2.5/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, :: `[tensorflow::InputList](/versions/r2.5/api_docs/cc/class/tensorflow/input-list#classtensorflow_1_1_input_list)` inputs) ` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------|\n| ` `[operation](#classtensorflow_1_1ops_1_1_add_n_1a6b5c41c59d7668a8daa548dc97c3dc29)` ` | ` `[Operation](/versions/r2.5/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation)` ` |\n| ` `[sum](#classtensorflow_1_1ops_1_1_add_n_1ad45f4b4b33007f7bbe3d87cfdee5550f)` ` | ` :: `[tensorflow::Output](/versions/r2.5/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output)` ` |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------|--------------------------|\n| ` `[node](#classtensorflow_1_1ops_1_1_add_n_1a6d9d07e9f1a37f6dfa533fab704c6962)` () const ` | ` ::tensorflow::Node * ` |\n| ` `[operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_add_n_1af8279db594037317319083a18ad2173e)` () const ` | ` ` |\n| ` `[operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_add_n_1a601981a899a6788c21d9b3abdbb5cca8)` () const ` | ` ` |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### sum\n\n```text\n::tensorflow::Output sum\n``` \n\nPublic functions\n----------------\n\n### AddN\n\n```gdscript\n AddN(\n const ::tensorflow::Scope & scope,\n ::tensorflow::InputList inputs\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```"]]