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

[PIR]Open uts for PReLU #60645

Merged
merged 2 commits into from
Jan 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix fp16 ut
  • Loading branch information
0x45f committed Jan 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit f7273fe035223b3c6ba2ee40aed8dff228a09967
9 changes: 5 additions & 4 deletions test/legacy_test/test_prelu_op.py
Original file line number Diff line number Diff line change
@@ -94,10 +94,11 @@ def test_error(self):
)
self.assertRaises(TypeError, F.prelu, x=x_int32, weight=weight_fp32)
# support the input dtype is float16
x_fp16 = paddle.static.data(
name='x_fp16', shape=[2, 3], dtype='float16'
)
F.prelu(x=x_fp16, weight=weight_fp32)
if core.is_compiled_with_cuda():
x_fp16 = paddle.static.data(
name='x_fp16', shape=[2, 3], dtype='float16'
)
F.prelu(x=x_fp16, weight=weight_fp32)


class TestNNPReluAPI(unittest.TestCase):