Skip to content

Commit

Permalink
Fix custom device compile error caused by dist marco changing (Paddle…
Browse files Browse the repository at this point in the history
…Paddle#56760)

* fix custom device errro by dist

* polish details
  • Loading branch information
chenwhql authored and BeingGod committed Sep 9, 2023
1 parent 5655892 commit bc12e68
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions paddle/phi/core/meta_tensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License. */
#include "glog/logging.h"

#include "paddle/phi/core/dense_tensor.h"
#include "paddle/phi/core/distributed/auto_parallel/dist_tensor.h"
#include "paddle/phi/core/enforce.h"
#include "paddle/phi/core/selected_rows.h"
#include "paddle/phi/core/string_tensor.h"
Expand Down
1 change: 0 additions & 1 deletion paddle/phi/core/tensor_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ limitations under the License. */

#include "paddle/phi/core/dense_tensor.h"
#include "paddle/phi/core/device_context.h"
#include "paddle/phi/core/distributed/auto_parallel/dist_tensor.h"
#include "paddle/phi/core/selected_rows.h"
#include "paddle/phi/core/sparse_coo_tensor.h"
#include "paddle/phi/core/sparse_csr_tensor.h"
Expand Down

0 comments on commit bc12e68

Please sign in to comment.