MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Add

Function Add

tensorflow/go/op/wrappers.go:32840–32852  ·  view source on GitHub ↗

Returns x + y element-wise. *NOTE*: `Add` supports broadcasting. `AddN` does not. More about broadcasting [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)

(scope *Scope, x tf.Output, y tf.Output)

Source from the content-addressed store, hash-verified

32838// *NOTE*: `Add` supports broadcasting. `AddN` does not. More about broadcasting
32839// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
32840func Add(scope *Scope, x tf.Output, y tf.Output) (z tf.Output) {
32841 if scope.Err() != nil {
32842 return
32843 }
32844 opspec := tf.OpSpec{
32845 Type: "Add",
32846 Input: []tf.Input{
32847 x, y,
32848 },
32849 }
32850 op := scope.AddOperation(opspec)
32851 return op.Output(0)
32852}
32853
32854// Invert (flip) each bit of supported types; for example, type `uint8` value 01010101 becomes 10101010.
32855//

Callers 1

TestShapeAttributeFunction · 0.70

Calls 3

ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by 1

TestShapeAttributeFunction · 0.56