提交 84527fa0 authored 作者: sentient07's avatar sentient07

Reverted some hacks as its fixed in master

上级 8b24c982
......@@ -183,7 +183,7 @@ class PycudaElemwiseKernelOp(GpuOp):
class PycudaElemwiseSourceModuleOp(GpuOp):
nin = property(lambda self: self.scalar_op.nin)
nout = property(lambda self: self.scalar_op.nout)
__props__ = ("scalar_op", "inplace_pattern", "name")
__props__ = ("scalar_op", "inplace_pattern")
def __init__(self, scalar_op, inplace_pattern=None, name=None):
if inplace_pattern is None:
......
......@@ -3853,7 +3853,6 @@ class Composite(ScalarOp):
self.nin = len(inputs)
self.nout = len(outputs)
self.init_fgraph() # self.fgraph
self.init_c_code()
# Postpone the creation in case it isn't needed.
# self.init_name() # self.name
self.name = None
......
......@@ -471,7 +471,7 @@ second dimension
"""
__props__ = ("scalar_op", "inplace_pattern", "name", "nfunc_spec", "openmp")
__props__ = ("scalar_op", "inplace_pattern")
def __init__(self, scalar_op, inplace_pattern=None, name=None,
nfunc_spec=None, openmp=None):
......
......@@ -5024,6 +5024,7 @@ class T_local_erfc(unittest.TestCase):
mode_fusion.check_isfinite = False
f = theano.function([x], T.grad(T.log(T.erfc(x)).sum(), x), mode=mode)
assert len(f.maker.fgraph.apply_nodes) == 23, len(f.maker.fgraph.apply_nodes)
assert all(numpy.isfinite(f(val)))
assert f.maker.fgraph.outputs[0].dtype == theano.config.floatX
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论