提交 83e19bee authored 作者: Frederic Bastien's avatar Frederic Bastien

bugfix last commit

上级 e5d30206
......@@ -25,8 +25,9 @@ class Prepend_scalar_constant_to_each_row(Op):
return node
def perform(self, node, (mat, ), (output, )):
new_shape=(mat.shape[0],mat.shape[1]+1)
if output[0] == None:
output[0]=numpy.empty((mat.shape[0],mat.shape[1]+1),dtype=mat.dtype)
output[0]=numpy.empty(new_shape,dtype=mat.dtype)
out=output[0]
else:
if output[0].shape!=new_shape:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论