Skip to content

Commit

Permalink
revert dtype layout change to fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
chenwhql committed Oct 22, 2021
1 parent 24ef6c5 commit 1685b67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paddle/pten/common/data_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ inline std::ostream& operator<<(std::ostream& os, DataType dtype) {
return os;
}

inline DataType& operator++(DataType dtype, int) {
inline DataType& operator++(DataType& dtype, int) {
dtype =
DataType(static_cast<std::underlying_type<DataType>::type>(dtype) + 1);
return dtype;
Expand Down
2 changes: 1 addition & 1 deletion paddle/pten/common/layout.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ inline std::ostream& operator<<(std::ostream& os, DataLayout layout) {
return os;
}

inline DataLayout& operator++(DataLayout layout, int) {
inline DataLayout& operator++(DataLayout& layout, int) {
layout = DataLayout(
static_cast<std::underlying_type<DataLayout>::type>(layout) + 1);
return layout;
Expand Down

1 comment on commit 1685b67

@paddle-bot-old
Copy link

@paddle-bot-old paddle-bot-old bot commented on 1685b67 Oct 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵️ CI failures summary

🔍 PR: #34425 Commit ID: 1685b67 contains failed CI.

🔹 Failed: PR-CI-APPROVAL

approve_failed
2021-10-22 16:31:49 正在保存至: “bk.txt”
2021-10-22 16:31:49 0K 100% 2.77M=0s
2021-10-22 16:31:49 2021-10-22 16:31:49 (2.77 MB/s) - 已保存 “bk.txt” [5/5])
2021-10-22 16:31:56 ****************
2021-10-22 16:31:57 0. You must have one RD (lanxianghit (Recommend), phlrain or luotao1) approval for changing the FLAGS, which manages the environment variables.
2021-10-22 16:31:57 1. You must have Dianhai approval for change 20+ files or add than 1000+ lines of content.
2021-10-22 16:31:57 2. You must have one RD (XiaoguangHu01,chenwhql,zhiqiu,Xreki,luotao1) approval for paddle/fluid/framework/operator.h, which manages the underlying code for fluid.
2021-10-22 16:31:57 3. You must have one RD (zhiqiu (Recommend) , phlrain) approval for the changes of paddle/fluid/pybind/op_function_generator.cc, which manages the logic of automatic generating op functions for dygraph.
2021-10-22 16:31:57 4. You must have one RD (XiaoguangHu01,chenwhql,zhiqiu,Xreki,luotao1) approval for the usage of const_cast.
2021-10-22 16:31:57 5. You must have one RD (Avin0323(Recommend) or zhouwei25 or wanghuancoder or luotao1) approval for modifying unity_build_rule.cmake which the rules of Unity Build.
2021-10-22 16:31:57 There are 6 approved errors.
2021-10-22 16:31:57 ****************
2021-10-22 16:31:57 + EXCODE=6
2021-10-22 16:31:57 + echo 'EXCODE: 6'
2021-10-22 16:31:57 EXCODE: 6
2021-10-22 16:31:57 + echo 'ipipe_log_param_EXCODE: 6'
2021-10-22 16:31:57 ipipe_log_param_EXCODE: 6
2021-10-22 16:31:57 + exit 6

Please sign in to comment.