Unify device argument parsing between torch and c10
authorJunjie Bai <bai@in.tum.de>
Thu, 6 Dec 2018 02:35:21 +0000 (18:35 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 6 Dec 2018 02:37:32 +0000 (18:37 -0800)
commitba0ebe33c170a8e8aa9df8e8b8549b980b89551e
treedc1fd754947b0ae9905301cd3580351e8893e2a5
parent252e9058d45445dc44d3f818eb8bd6fa95ac826a
Unify device argument parsing between torch and c10

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/14786

Differential Revision: D13334501

Pulled By: bddppq

fbshipit-source-id: ae3536be1fe0dcd6a1552ec93629ecc9554c0d7c
c10/Device.cpp
c10/Device.h
test/test_torch.py
torch/csrc/utils/python_arg_parser.h