Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 45071c4

Browse files
committed
Fix bug in Tape example
1 parent c763448 commit 45071c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rfcs/20201201-cpp-gradients.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Status ExpGradModel(AbstractContext* ctx,
237237
ForwardOperation forward_op;
238238
forward_op.op_name = “Exp”;
239239
forward_op.inputs.push_back(inputs[0]);
240-
forward_op.outputs.push_back(outputs[0]);
240+
forward_op.outputs.push_back(exp_outputs[0]);
241241
TF_RETURN_IF_ERROR(registry.Lookup(forward_op, &gradient_function));
242242
tape.RecordOperation(inputs, exp_outputs, gradient_function.release());
243243
TF_RETURN_IF_ERROR(tape.ComputeGradient(ctx,

0 commit comments

Comments
 (0)