Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
chenfeiyu committed Apr 18, 2022
1 parent b20d4b9 commit 1b0720a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/paddle/utils/code_gen/templates/operator_utils.c.j2
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class {{name | to_pascal_case}}OpMaker : public framework::SingleGradOpMaker<T>
grad_op->SetType("{{name}}");

{% for input in api["inputs"] %}
gard_op->SetInput("{{input["name"] | to_pascal_case}}", this->{{extract_input_from_forward(
grad_op->SetInput("{{input["name"] | to_pascal_case}}", this->{{extract_input_from_forward(
input["name"],
forward_input_names,
forward_output_names,
Expand All @@ -228,7 +228,7 @@ class {{name | to_pascal_case}}OpMaker : public framework::SingleGradOpMaker<T>
{% endfor %}

{% for output in api["outputs"] %}
gard_op->SetOutput("{{output["name"] | to_pascal_case}}", this->{{extract_output_from_forward(
grad_op->SetOutput("{{output["name"] | to_pascal_case}}", this->{{extract_output_from_forward(
output["name"],
forward_input_names,
forward_output_names,
Expand Down

0 comments on commit 1b0720a

Please sign in to comment.