Skip to content

Commit

Permalink
add distributed API for model, datasets, trainer.
Browse files Browse the repository at this point in the history
  • Loading branch information
308188605@qq.com committed Jun 1, 2019
1 parent 4304b4d commit 4c273b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jdit/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def convert_to_distributed(self, device_ids=None,
>>> net.model = torch.nn.DistributedDataParallel(net.model, pg)
"""
assert isinstance(self.model, DataParallel), "please only use one gpu for one task"
# assert isinstance(self.model, DataParallel), "please only use one gpu for one task"
self.model = DistributedDataParallel(self.model, device_ids,
output_device, dim, broadcast_buffers,
process_group, bucket_cap_mb,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="jdit", # pypi中的名称,pip或者easy_install安装时使用的名称,或生成egg文件的名称
version="0.0.14",
version="0.0.15",
author="Guanglei Ding",
author_email="dingguanglei.bupt@qq.com",
maintainer='Guanglei Ding',
Expand Down

0 comments on commit 4c273b9

Please sign in to comment.