未验证 提交 35902ec6 编写于 作者: Z zyfncg 提交者: GitHub

Fix bug of wrong eigen dependency (#48485)

* fix bug of eigen_dependency

* fix xpu compile
上级 31e380ce
...@@ -19,8 +19,8 @@ limitations under the License. */ ...@@ -19,8 +19,8 @@ limitations under the License. */
#include "paddle/fluid/framework/data_layout.h" #include "paddle/fluid/framework/data_layout.h"
#include "paddle/fluid/framework/data_type.h" #include "paddle/fluid/framework/data_type.h"
#include "paddle/fluid/framework/library_type.h" #include "paddle/fluid/framework/library_type.h"
#include "paddle/fluid/platform/device_context.h"
#include "paddle/fluid/platform/place.h" #include "paddle/fluid/platform/place.h"
#include "paddle/phi/core/device_context.h"
namespace paddle { namespace paddle {
namespace framework { namespace framework {
...@@ -50,7 +50,7 @@ class OpKernelType { ...@@ -50,7 +50,7 @@ class OpKernelType {
customized_type_value_(customized_type_value) {} customized_type_value_(customized_type_value) {}
OpKernelType(proto::VarType::Type data_type, OpKernelType(proto::VarType::Type data_type,
const platform::DeviceContext& dev_ctx, const phi::DeviceContext& dev_ctx,
DataLayout data_layout = DataLayout::kAnyLayout, DataLayout data_layout = DataLayout::kAnyLayout,
LibraryType library_type = LibraryType::kPlain, LibraryType library_type = LibraryType::kPlain,
int customized_type_value = kDefaultCustomizedTypeValue) int customized_type_value = kDefaultCustomizedTypeValue)
......
...@@ -15,6 +15,7 @@ limitations under the License. */ ...@@ -15,6 +15,7 @@ limitations under the License. */
#include <unordered_map> #include <unordered_map>
#include "paddle/fluid/framework/op_kernel_type.h" #include "paddle/fluid/framework/op_kernel_type.h"
#include "paddle/fluid/platform/device/xpu/xpu_info.h"
#include "paddle/phi/backends/xpu/xpu_op_list.h" #include "paddle/phi/backends/xpu/xpu_op_list.h"
namespace paddle { namespace paddle {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册