Skip to content

Commit

Permalink
Update test_lerp_op.py
Browse files Browse the repository at this point in the history
modify the input dtype
  • Loading branch information
longranger2 authored Apr 22, 2023
1 parent d390a49 commit 739d6e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/paddle/fluid/tests/unittests/test_lerp_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,9 @@ def setUp(self):
self.python_api = paddle.lerp
self.init_dtype()
self.init_shape()
x = np.arange(1.0, 101.0).astype(np.float64).reshape(self.shape)
y = np.full(100, 10.0).astype(np.float64).reshape(self.shape)
w = np.asarray([0.5]).astype(np.float64)
x = np.arange(1.0, 101.0).astype(np.float32).reshape(self.shape)
y = np.full(100, 10.0).astype(np.float32).reshape(self.shape)
w = np.asarray([0.5]).astype(np.float32)
self.inputs = {
'X': convert_float_to_uint16(x),
'Y': convert_float_to_uint16(y),
Expand Down

0 comments on commit 739d6e7

Please sign in to comment.