xcode.py: Decode bytes before output (#2833)
authorRuslan Baratov <ruslan_baratov@yahoo.com>
Sun, 17 Mar 2019 19:19:56 +0000 (22:19 +0300)
committerTianqi Chen <tqchen@users.noreply.github.com>
Sun, 17 Mar 2019 19:19:56 +0000 (12:19 -0700)
python/tvm/contrib/xcode.py

index 186df3f..8461f13 100644 (file)
@@ -138,7 +138,7 @@ def compile_metal(code, path_target=None, sdk="macosx"):
     (out, _) = proc.communicate()
     if proc.returncode != 0:
         sys.stderr.write("Compilation error:\n")
-        sys.stderr.write(out)
+        sys.stderr.write(py_str(out))
         sys.stderr.flush()
         libbin = None
     else: