-
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
[BUG FIX]Fix MetaTensor's bug when run infermeta #46265
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
paddle/phi/api/lib/tensor.cc
Outdated
@@ -92,7 +92,15 @@ int64_t Tensor::numel() const { return impl_->numel(); } | |||
|
|||
int64_t Tensor::size() const { return impl_->numel(); } | |||
|
|||
const phi::DDim &Tensor::dims() const { return impl_->dims(); } | |||
const phi::DDim &Tensor::dims() const { |
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.
下面selected_rows的dims实现没有变的话,这里是不是也不需要变
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.
done,3q
return impl_->dims(); | ||
// return phi::make_ddim(dims); | ||
} | ||
const DDim& dims() const noexcept override { return impl_->dims(); } |
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.
这里语义不正确的问题暂时没办法解决?
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.
后期解决
* fix sum bug * fix ci bugs * fix ci bugs * update code according comment
PR types
Bug fixes
PR changes
Others
Describe
迁移了sum算子后,dsin模型在执行infermeta的时候出现了断言错误如下:
原因是在获取dim的时候,selectedrows的Tensor未拿到正确的dim,该pr进行了修复