提交 d687d0c4 authored 作者: George Ho's avatar George Ho

Import decode functions from theano.utils, not theano.compat

上级 d522ca38
......@@ -68,8 +68,8 @@ def test_mpi_roundtrip():
)
(stdout, stderr) = p.communicate()
result = theano.compat.decode(stdout)
assert "True" in result, theano.compat.decode(stderr)
result = theano.utils.decode(stdout)
assert "True" in result, theano.utils.decode(stderr)
def test_mpi_send_wait_cmp():
......
......@@ -23,7 +23,7 @@ from six import BytesIO, StringIO, b
import theano
from theano import config
from theano.compat import PY3, decode, decode_iter
from theano.utils import decode, decode_iter
from theano.configdefaults import gcc_version_str, local_bitwidth
# we will abuse the lockfile mechanism when reading and writing the registry
......
......@@ -5,7 +5,7 @@ from locale import getpreferredencoding
from optparse import OptionParser
import theano
from theano.compat import decode_with
from theano.utils import decode_with
console_encoding = getpreferredencoding()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论