summaryrefslogtreecommitdiff
path: root/torch/utils
diff options
context:
space:
mode:
authorsurgan12 <jandialsurgan@gmail.com>2018-12-20 16:53:49 -0800
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2018-12-20 16:56:34 -0800
commit3a6d473b49fc04dc1f086ee7bd8f0a90578e8de6 (patch)
treed48a0df6c5c6aa9f9bb53858aabe15590e653f20 /torch/utils
parenta178f0a316a17e4413c101018a7f6916ce3fc153 (diff)
downloadpytorch-3a6d473b49fc04dc1f086ee7bd8f0a90578e8de6.tar.gz
pytorch-3a6d473b49fc04dc1f086ee7bd8f0a90578e8de6.tar.bz2
pytorch-3a6d473b49fc04dc1f086ee7bd8f0a90578e8de6.zip
collect_env fix (#15447)
Summary: fixes #15214 Pull Request resolved: https://github.com/pytorch/pytorch/pull/15447 Differential Revision: D13531523 Pulled By: ezyang fbshipit-source-id: 8f24f5ae9f3e78f6c5c9ee702ba14faca7aa297a
Diffstat (limited to 'torch/utils')
-rw-r--r--torch/utils/collect_env.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/torch/utils/collect_env.py b/torch/utils/collect_env.py
index 214c64c5ab..0488995baa 100644
--- a/torch/utils/collect_env.py
+++ b/torch/utils/collect_env.py
@@ -40,8 +40,8 @@ def run(command):
output, err = p.communicate()
rc = p.returncode
if PY3:
- output = output.decode("ascii")
- err = err.decode("ascii")
+ output = output.decode("utf-8")
+ err = err.decode("utf-8")
return rc, output.strip(), err.strip()