Skip to content

Commit

Permalink
Update test_amp_check_finite_and_scale_op_xpu.py (#61782)
Browse files Browse the repository at this point in the history
* Update test_amp_check_finite_and_scale_op_xpu.py

* ci
  • Loading branch information
co63oc authored Feb 20, 2024
1 parent 3611c08 commit 0964401
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/xpu/test_amp_check_finite_and_scale_op_xpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def setUp(self):
x[idx1][idx2] = np.nan
x[idx2][idx1] = np.nan
scale = np.random.random(1).astype(np.float32)
myscale = np.array([0.05]).astype(self.dtype)
self.inputs = {'X': [('x0', x)], 'Scale': scale}
self.outputs = {
'FoundInfinite': np.array([1]),
Expand All @@ -116,7 +115,6 @@ def setUp(self):
x[idx1][idx2] = np.inf
x[idx2][idx1] = np.nan
scale = np.random.random(1).astype(np.float32)
myscale = np.array([0.05]).astype(self.dtype)
self.inputs = {'X': [('x0', x)], 'Scale': scale}
self.outputs = {
'FoundInfinite': np.array([1]),
Expand Down

0 comments on commit 0964401

Please sign in to comment.