Repository navigation
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
|
Sorry to inform you that a468601's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
|
Sorry to inform you that 1fd3797's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
| 'float32', | ||
| 'float64', | ||
| 'complex64', | ||
| 'complex128', |
There was a problem hiding this comment.
docstring也添加上复数的两个类型
| self.enable_cinn = False | ||
|
|
||
|
|
||
| class TestRsqrt_Complex64(TestRsqrt): |
There was a problem hiding this comment.
没有complex128类型的test
| np.testing.assert_allclose(ddx.numpy(), expected_ddx, rtol=1e-3) | ||
|
|
||
|
|
||
| class TestRsqrt_Complex128(TestRsqrt): |
There was a problem hiding this comment.
是不是应该继承 TestRsqrt_Complex64
| ) | ||
|
|
||
| def test_grad_grad(self): | ||
| paddle.disable_static() |
There was a problem hiding this comment.
建议使用这种方式控制动态图下运行:
Paddle/test/legacy_test/test_activation_op.py
Line 335 in 2565b9a
| def init_dtype(self): | ||
| self.dtype = np.complex64 | ||
|
|
||
| def test_check_grad(self): |
There was a problem hiding this comment.
GPU单测没运行,加下在GPU下运行的单测
| ['X'], | ||
| 'Out', | ||
| check_pir=True, | ||
| max_relative_error=0.007, |
There was a problem hiding this comment.
测试的时候误差是0.006多,这里设成了0.007
|
Sorry to inform you that c957264's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
|
Sorry to inform you that 1beb392's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually. |
|
Since you haven't replied for more than a year, we have closed this issue/pr. |
PR Category
Others
PR Types
New features
Description
add complex support for Rsqrt