You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test_imperative_mnist 纯写法修改,PIR 下从 scope 拿 startup program 初始化的 params(发现 CPU 下有精度 diff,此方法弃用) 因为 parameters 返回的是 main program parameter OP 得到的 Value,直接用它们是不能在 startup program 里 fetch 的,因此 PIR 下将其映射回了 startup program 的 Value
你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册。
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.
SigureMo
changed the title
[PIR] Fix 2 uts in PIR mode (test_imperative_mnist, test_imperative_reinforcement)
[PIR] Fix 3 uts in PIR mode (test_imperative_mnist, test_imperative_reinforcement, test_imperative_transformer_sorted_gradient)
Jul 5, 2024
SigureMo
changed the title
[PIR] Fix 3 uts in PIR mode (test_imperative_mnist, test_imperative_reinforcement, test_imperative_transformer_sorted_gradient)
[PIR] Fix 4 uts in PIR mode (test_imperative_mnist, test_imperative_reinforcement, test_imperative_transformer_sorted_gradient, test_inverse_op)
Jul 5, 2024
SigureMo
changed the title
[PIR] Fix 4 uts in PIR mode (test_imperative_mnist, test_imperative_reinforcement, test_imperative_transformer_sorted_gradient, test_inverse_op)
[PIR] Fix 4 uts in PIR mode (test_imperative_mnist, test_imperative_mnist_sorted_gradient, test_imperative_reinforcement, test_imperative_transformer_sorted_gradient, test_inverse_op)
Jul 5, 2024
SigureMo
changed the title
[PIR] Fix 4 uts in PIR mode (test_imperative_mnist, test_imperative_mnist_sorted_gradient, test_imperative_reinforcement, test_imperative_transformer_sorted_gradient, test_inverse_op)
[PIR] Fix 5 uts in PIR mode (test_imperative_mnist, test_imperative_mnist_sorted_gradient, test_imperative_reinforcement, test_imperative_transformer_sorted_gradient, test_inverse_op)
Jul 5, 2024
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
Execute Infrastructure
PR Types
Bug fixes
Description
修复 5 个 PIR 模式单测,主要是写法修改
test_imperative_mnist
纯写法修改,PIR 下从 scope 拿 startup program 初始化的 params(发现 CPU 下有精度 diff,此方法弃用)因为 parameters 返回的是 main program parameter OP 得到的 Value,直接用它们是不能在 startup program 里 fetch 的,因此 PIR 下将其映射回了 startup program 的 Valuetest_imperative_mnist_sorted_gradient
同上test_imperative_reinforcement
同上,加了 manual seed 修改test_imperative_transformer_sorted_gradient
同上,加了对动态 shape 的特判,这里batch_size
为 -1,不修改的话会-1x4
得到-4
,作为奇怪的 shape 传进 data OP,这种 -4 应该直接从 API 层面杜绝,因此加了报错和相应单测test_inverse_op
见代码处的 reviewPCard-66972