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

Remove all theano.compat references

上级 26d33f00
......@@ -1049,7 +1049,7 @@ class TestPicklefunction:
f = theano.function([x], tt.dot(x, y))
from theano.compat import BytesIO
from io import BytesIO
fp = BytesIO()
p = pickle.Pickler(fp, 2)
......
......@@ -9,11 +9,10 @@ import shlex
import sys
import warnings
from functools import wraps
from six import PY3, StringIO
from io import StringIO
import theano
from theano.compat import configparser as ConfigParser
import configparser as ConfigParser
_logger = logging.getLogger("theano.configparser")
......@@ -77,7 +76,7 @@ def config_files_from_theanorc():
config_files = config_files_from_theanorc()
theano_cfg = (ConfigParser.ConfigParser if PY3 else ConfigParser.SafeConfigParser)(
theano_cfg = ConfigParser.ConfigParser(
{
"USER": os.getenv("USER", os.path.split(os.path.expanduser("~"))[-1]),
"LSCRATCH": os.getenv("LSCRATCH", ""),
......
......@@ -16,7 +16,7 @@ import numpy as np
import theano
from theano import config
from theano.compat import reload
from importlib import reload
from theano.gof import cmodule
from theano.gof.compilelock import get_lock, release_lock
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论