-
Notifications
You must be signed in to change notification settings - Fork 5.7k
【PIR API adaptor No.50、57、67】fix for 58466 #58541
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
Conversation
done |
你的PR提交成功,感谢你对开源项目的贡献! |
从 @test_with_pir_api
def test_in_static_mode(self):
def init_input_output(dtype):
input = np.random.random(self._shape).astype(dtype)
return {'x': input}, psi(input)
for dtype in self.dtypes:
input_dict, sc_res = init_input_output(dtype)
for place in self.places:
with static.program_guard(static.Program()):
x = static.data(name="x", shape=self._shape, dtype=dtype)
out = paddle.digamma(x)
exe = static.Executor(place)
# out_value = exe.run(feed=input_dict, fetch_list=[out.name]) # <--------- 报错的地方
# 改成试试:
out_value = exe.run(feed=input_dict, fetch_list=[out])
np.testing.assert_allclose(out_value[0], sc_res, rtol=1e-05) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
Others
PR changes
APIs
Description
将cumprod和digamma剩余的单测都打开
【PIR API adaptor No.50、57、67】Migrate some ops into pir #58466
新IR Python API适配升级 #58067