Skip to content

Commit

Permalink
support fp16 with ibm ddl (#1465)
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Elnaggar <ahmed.elnaggar@tum.de>
  • Loading branch information
agemagician authored and tgaddair committed Oct 24, 2019
1 parent bb2134b commit bbf09d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions horovod/common/ops/ddl_operations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ DDL_Type GetDDLDataType(const std::shared_ptr<Tensor> tensor) {
switch (tensor->dtype()) {
case HOROVOD_FLOAT32:
return DDL_TYPE_FLOAT;
case HOROVOD_FLOAT16:
return DDL_TYPE_HALF;
default:
throw std::logic_error("Type " + DataType_Name(tensor->dtype()) +
" is not supported in DDL mode.");
Expand Down

0 comments on commit bbf09d7

Please sign in to comment.