提交 91f2ac84 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

fix PR

the unbroadcast(shape_padleft(x)) might not be of the same type as x, specifically when x is CudaNdarrayTyepe, unbroadcast(shape_padleft(x)) is a TensorType.
上级 b7147242
......@@ -248,9 +248,6 @@ class Scan(PureOp):
rval = rval.astype(as_var.type.dtype)
if rval.ndim == as_var.ndim:
rval = as_var.type.filter_variable(rval)
else:
tmp = tensor.unbroadcast(tensor.shape_padleft(as_var), 0)
rval = tmp.type.filter_variable(rval)
return rval
# Check if input sequences and variables representing a slice of
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论