提交 bcd4a76b authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix test problems.

上级 a17abf5c
......@@ -6,7 +6,7 @@ import theano
from theano import Apply, scalar, config, Op
from six.moves import StringIO, xrange
from theano.gof.utils import MethodNotDefined
from theano.scalar import Scalar
from theano.scalar import Scalar, Composite
from theano.tensor.elemwise import (Elemwise, DimShuffle, CAReduceDtype)
try:
......
......@@ -23,8 +23,8 @@ from six.moves import xrange
import theano
from theano.compat import imap, izip
from theano import gof, printing
from theano.gof import (Op, Optimizer, utils, Variable, Constant, Type, Apply,
FunctionGraph, toolbox)
from theano.gof import (Op, utils, Variable, Constant, Type, Apply,
FunctionGraph)
from functools import partial
from theano.configparser import config
......@@ -3837,7 +3837,7 @@ class Compositef32(object):
continue
# make sure we won't produce any float16.
assert not any(o.dtype == 'float16' for o in
node.op.output_types([mapping[i] for i in node.inputs]))
node.op.output_types([mapping[i].type for i in node.inputs]))
new_node = node.clone_with_new_inputs(
[mapping[i] for i in node.inputs],
strict=False)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论