Skip to content

Commit

Permalink
Fix formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrekobi committed Oct 26, 2021
1 parent c05284c commit bf6d2cd
Showing 1 changed file with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,23 +134,24 @@ def test_check_output(self):
self.check_output_with_place(core.CPUPlace())

def test_check_grad_normal(self):
self.check_grad_with_place(core.CPUPlace(), ["X", "Y"],
"Out",
user_defined_grads=[
np.divide(self.x, self.y),
np.divide((np.multiply(-self.x, self.x)),
np.multiply(self.y, self.y))
],
user_defined_grad_outputs=[self.x_bf16])
self.check_grad_with_place(
core.CPUPlace(), ["X", "Y"],
"Out",
user_defined_grads=[
np.divide(self.x, self.y), np.divide(
(np.multiply(-self.x, self.x)), np.multiply(self.y, self.y))
],
user_defined_grad_outputs=[self.x_bf16])

def test_check_grad_ignore_x(self):
self.check_grad_with_place(core.CPUPlace(), ["Y"],
"Out",
user_defined_grads=[
np.divide((np.multiply(-self.x, self.y)),
np.multiply(self.y, self.y))
],
user_defined_grad_outputs=[self.y_bf16])
self.check_grad_with_place(
core.CPUPlace(), ["Y"],
"Out",
user_defined_grads=[
np.divide((np.multiply(-self.x, self.y)),
np.multiply(self.y, self.y))
],
user_defined_grad_outputs=[self.y_bf16])

def test_check_grad_ignore_y(self):
self.check_grad_with_place(
Expand Down

1 comment on commit bf6d2cd

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.