提交 3c7f8139 authored 作者: Joseph Turian's avatar Joseph Turian

CAReduce output views input when reducing scalars

上级 a1a449b7
......@@ -740,6 +740,10 @@ class CAReduce(Op):
self.axis = axis
self.ufunc = numpy.frompyfunc(scalar_op.impl, 2, 1)
# CAReduce output views input when reducing scalars
# See ticket #417: http://www.pylearn.org/theano/trac/ticket/417
self.view_map = {0: [0]}
def _output_dtype(self, input_dtype):
return input_dtype
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论