Commit 0226451c authored by xiaohanhuang's avatar xiaohanhuang Committed by Yuxin Wu

fix trainers.py error with latest version of horovod (0.17.0.post1) (#1306)

parent 047579df
......@@ -383,7 +383,7 @@ class HorovodTrainer(SingleCostTrainer):
# lazy import
import horovod.tensorflow as hvd
import horovod
hvd_version = tuple(map(int, horovod.__version__.split('.')))
hvd_version = tuple(map(int, horovod.__version__.split('.')[:3]))
self.hvd = hvd
hvd.init()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment