Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix paddle2cinn float16 type support bug #48249

Merged
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