-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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] A-12 Adapt concat test_errors #61036
[PIR] A-12 Adapt concat test_errors #61036
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
create_lod_tensor这个接口在pir下没有适配,后面应该也不会适配了,所以本PR里的涉及到的两个test_error单测不需要适配,先恢复原样吧。可以尝试加一个新的测试error的case,老静态图和PIR下都可以跑,然后用test_with_pir_api装饰一下~ |
收到,我看合入的示例里面还是create_lod_tensor,我改的试试。 |
这里应该是PIR CPP端的检查逻辑不够完善,我来修改一下~ |
… Add-test_with_pir_api-in-error-test-12
… Add-test_with_pir_api-in-error-test-12
if (vector_value.size() <= 1) { | ||
return true; | ||
} | ||
auto dtype = GetValueDataType(vector_value[0]); |
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.
这里为何只取index为0的元素进行比较
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.
这个函数是检查vector中的value的dtype是否全都相同,所以取了第0个元素进行比较
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 for docs
PR types
Others
PR changes
Others
Description
A-12 concat