提交 bcd7f141 authored 作者: Saizheng Zhang's avatar Saizheng Zhang

change error checks, solve alloc problem

上级 1949bf69
......@@ -4772,7 +4772,7 @@ def tile(x, reps, ndim=None):
if len(reps) < ndim:
reps = [1]*(ndim-len(reps)) + reps
shape = [x.shape[i] for i in xrange(ndim)]
shape = [1]*(ndim-x.ndim) - [x.shape[i] for i in xrange(x.ndim)]
alloc_shape = reps + shape
y = alloc(x, *alloc_shape)
shuffle_ind = numpy.arange(ndim * 2).reshape(2, ndim)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论