提交 52372540 authored 作者: David Warde-Farley's avatar David Warde-Farley

Add DictMixin/OrderedDict to theano.compat in PY3.

Reordered for ease of reading (same order in if/else).
上级 8deed652
......@@ -8,7 +8,6 @@ from theano.compat.six.moves import configparser
from theano.compat.six.moves import reload_module as reload
if PY3:
from operator import truediv as operator_div
# In python 3.x, when an exception is reraised it saves original
......@@ -28,8 +27,9 @@ if PY3:
any = any
from functools import partial
from collections import defaultdict, deque
from itertools import combinations, product
from sys import maxsize
from itertools import combinations, product
from collections import OrderedDict, MutableMapping as DictMixin
def decode(x):
return x.decode()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论