Skip to content

Commit

Permalink
lint correction
Browse files Browse the repository at this point in the history
  • Loading branch information
cocotdf committed Jan 8, 2025
1 parent 153ec61 commit 4504ecd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions orttraining/orttraining/core/graph/gradient_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2228,7 +2228,7 @@ IMPLEMENT_GRADIENT_BUILDER(GetResizeGradient) {
}

IMPLEMENT_GRADIENT_BUILDER(GetAtanGradient) {
// dl/dx = dl/dy * (1/(1+x^2))
// dl/dx = dl/dy * (1/(1+x^2))
NodeDef one_const_node = OneConstantNode(IElemType(0));
ArgDef one = one_const_node.output_args[0];
std::vector<NodeDef> result;
Expand All @@ -2239,6 +2239,5 @@ IMPLEMENT_GRADIENT_BUILDER(GetAtanGradient) {
return result;
}


} // namespace training
} // namespace onnxruntime
1 change: 0 additions & 1 deletion orttraining/orttraining/core/graph/gradient_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ DECLARE_GRADIENT_BUILDER(GetConvTransposeGradient)
DECLARE_GRADIENT_BUILDER(GetResizeGradient)
DECLARE_GRADIENT_BUILDER(GetAtanGradient)


DECLARE_GRADIENT_BUILDER(GetExternalGradient)

} // namespace training
Expand Down

0 comments on commit 4504ecd

Please sign in to comment.