Add all input tensors element wise. Inputs must be of same size and shape. ```python x = [9, 7, 10] tf.math.add_n(x) ==> 26 ```
(scope *Scope, inputs []tf.Output)
| 34424 | // tf.math.add_n(x) ==> 26 |
| 34425 | // ``` |
| 34426 | func AddN(scope *Scope, inputs []tf.Output) (sum tf.Output) { |
| 34427 | if scope.Err() != nil { |
| 34428 | return |
| 34429 | } |
| 34430 | opspec := tf.OpSpec{ |
| 34431 | Type: "AddN", |
| 34432 | Input: []tf.Input{ |
| 34433 | tf.OutputList(inputs), |
| 34434 | }, |
| 34435 | } |
| 34436 | op := scope.AddOperation(opspec) |
| 34437 | return op.Output(0) |
| 34438 | } |
| 34439 | |
| 34440 | // MatMulAttr is an optional argument to MatMul. |
| 34441 | type MatMulAttr func(optionalAttr) |