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

Function BroadcastGradientArgs

tensorflow/go/op/wrappers.go:42567–42579  ·  view source on GitHub ↗

Return the reduction indices for computing gradients of s0 op s1 with broadcast. This is typically used by gradient computations for a broadcasting operation.

(scope *Scope, s0 tf.Output, s1 tf.Output)

Source from the content-addressed store, hash-verified

42565//
42566// This is typically used by gradient computations for a broadcasting operation.
42567func BroadcastGradientArgs(scope *Scope, s0 tf.Output, s1 tf.Output) (r0 tf.Output, r1 tf.Output) {
42568 if scope.Err() != nil {
42569 return
42570 }
42571 opspec := tf.OpSpec{
42572 Type: "BroadcastGradientArgs",
42573 Input: []tf.Input{
42574 s0, s1,
42575 },
42576 }
42577 op := scope.AddOperation(opspec)
42578 return op.Output(0), op.Output(1)
42579}
42580
42581// Returns the cardinality of `input_dataset`.
42582//

Callers 6

TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
BroadcastToGradFunction · 0.85
BinaryGradCommonFunction · 0.85
SelectV2GradFunction · 0.85

Calls 3

ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68