-
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
fix matrix_inverse_op with rocm #32128
Conversation
Thanks for your contribution! |
#endif | ||
#ifdef PADDLE_WITH_HIP | ||
template <typename T> | ||
class MatrixInverseFunctor<platform::CUDADeviceContext, T> { |
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.
和CPU同样的实现,代码不用重复一遍。把Eigen版本作为默认实现就行。
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.
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
#include "paddle/fluid/framework/tensor.h" | ||
#include "paddle/fluid/platform/device_context.h" | ||
|
||
namespace paddle { | ||
namespace operators { | ||
namespace math { | ||
|
||
template <typename DeviceContext, typename T> | ||
void compute_inverse_eigen(const DeviceContext& context, |
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.
函数命名用AxxBxx
这种大小写驼峰式命名,后续PR改下吧。
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.
好的
PR types
Bug fixes
PR changes
OPs
Describe
fix matrix_inverse_op with rocm