Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【PaddlePaddle Hackathon 3 No.14】为 Paddle 新增 remainder_ API #45266

Merged
merged 9 commits into from Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -142,7 +142,7 @@ def _executed_api(self, x, y, name=None):
return x.remainder_(y, name)


class TestRemainderInplaceBroadcastSuccess(TestRemainderOp):
class TestRemainderInplaceBroadcastSuccess(unittest.TestCase):

def init_data(self):
self.x_numpy = np.random.rand(2, 3, 4).astype('float')
Expand Down
2 changes: 1 addition & 1 deletion python/paddle/fluid/tests/unittests/test_inplace.py
Expand Up @@ -483,7 +483,7 @@ def inplace_api_processing(self, var):
return var.subtract_(input_var_2)


class TestDygraphInplaceRemainder(unittest.TestCase):
class TestDygraphInplaceRemainder(TestDygraphInplace):
zrr1999 marked this conversation as resolved.
Show resolved Hide resolved

def non_inplace_api_processing(self, var):
input_var_2 = paddle.to_tensor(self.input_var_numpy_2)
Expand Down