Skip to content

Commit

Permalink
fix paddle2cinn float16 type support bug (PaddlePaddle#48249)
Browse files Browse the repository at this point in the history
  • Loading branch information
thisjiang authored Dec 8, 2022
1 parent 4385ad1 commit 1569f19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions paddle/fluid/framework/paddle2cinn/transform_type.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ ::phi::DataType TransToPaddleDataType(const cinn_type_t& type) {
SET_TYPE_CASE_ITEM(cinn_uint64_t, UINT64)
SET_TYPE_CASE_ITEM(cinn_float32_t, FLOAT32)
SET_TYPE_CASE_ITEM(cinn_float64_t, FLOAT64)
#ifdef CINN_COMMON_FLOAT16_H
SET_TYPE_CASE_ITEM(cinn_float16_t, FLOAT16)
#endif // CINN_COMMON_FLOAT16_H

PADDLE_THROW(platform::errors::Unimplemented("Input type not supported yet"));
return ::phi::DataType::UNDEFINED;
Expand Down

0 comments on commit 1569f19

Please sign in to comment.