Skip to content

Commit e7da638

Browse files
committed
Fix
1 parent 3c1ad32 commit e7da638

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

paddle/phi/backends/xpu/xpu_op_list.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ limitations under the License. */
1919
namespace phi {
2020
namespace backends {
2121
namespace xpu {
22-
constexpr int FLOAT32 = phi::DataType::FLOAT32;
23-
constexpr int FLOAT64 = phi::DataType::FLOAT64;
24-
constexpr int FLOAT16 = phi::DataType::FLOAT16;
25-
constexpr int BFLOAT16 = phi::DataType::BFLOAT16;
26-
constexpr int INT32 = phi::DataType::INT32;
27-
constexpr int INT64 = phi::DataType::INT64;
28-
constexpr int UINT8 = phi::DataType::UINT8;
29-
constexpr int INT16 = phi::DataType::INT16;
30-
constexpr int INT8 = phi::DataType::INT8;
31-
constexpr int BOOL = phi::DataType::BOOL;
32-
constexpr int COMPLEX64 = phi::DataType::COMPLEX64;
33-
constexpr int COMPLEX128 = phi::DataType::COMPLEX128;
22+
constexpr DataType FLOAT32 = DataType::FLOAT32;
23+
constexpr DataType FLOAT64 = DataType::FLOAT64;
24+
constexpr DataType FLOAT16 = DataType::FLOAT16;
25+
constexpr DataType BFLOAT16 = DataType::BFLOAT16;
26+
constexpr DataType INT32 = DataType::INT32;
27+
constexpr DataType INT64 = DataType::INT64;
28+
constexpr DataType UINT8 = DataType::UINT8;
29+
constexpr DataType INT16 = DataType::INT16;
30+
constexpr DataType INT8 = DataType::INT8;
31+
constexpr DataType BOOL = DataType::BOOL;
32+
constexpr DataType COMPLEX64 = DataType::COMPLEX64;
33+
constexpr DataType COMPLEX128 = DataType::COMPLEX128;
3434
using XPUKernelSet = std::unordered_set<phi::DataType>;
3535
using XPUOpMap = std::unordered_map<std::string, XPUKernelSet>;
3636

0 commit comments

Comments
 (0)