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

Function AddV2

tensorflow/go/op/wrappers.go:32913–32925  ·  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

32911// *NOTE*: `Add` supports broadcasting. `AddN` does not. More about broadcasting
32912// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
32913func AddV2(scope *Scope, x tf.Output, y tf.Output) (z tf.Output) {
32914 if scope.Err() != nil {
32915 return
32916 }
32917 opspec := tf.OpSpec{
32918 Type: "AddV2",
32919 Input: []tf.Input{
32920 x, y,
32921 },
32922 }
32923 op := scope.AddOperation(opspec)
32924 return op.Output(0)
32925}
32926
32927// Constructs an Optional variant from a tuple of tensors.
32928func OptionalFromValue(scope *Scope, components []tf.Output) (optional tf.Output) {

Callers 4

VerifyCwiseOpsMethod · 0.85
TEST_FFunction · 0.85

Calls 3

ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by 4

VerifyCwiseOpsMethod · 0.68
TEST_FFunction · 0.68