Skip to content

Commit

Permalink
graph: backend: dnnl: fixup f16 data type check on gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
TaoLv committed Apr 27, 2024
1 parent d50fa18 commit fdff2ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/graph/backend/dnnl/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ bool get_dtype_support_status(engine_kind_t eng, data_type_t dtype, dir_t dir) {
break;
}
case dnnl_f16: {
// f16 is supported on GPU for inference only.
is_supported = is_gpu(eng) && (dir & dir_t::FLAG_FWD);
// TODO(zhitao): f16 for backward on gpu?
is_supported = is_gpu(eng);
break;
}
case dnnl_f8_e5m2: {
Expand Down

0 comments on commit fdff2ef

Please sign in to comment.