提交 2519a07f authored 作者: f0k's avatar f0k

Remove dead code from GpuAlloc

上级 f25eae1f
......@@ -3357,8 +3357,6 @@ class GpuAlloc(GpuAllocEmpty):
#if there is unneeded transfert generated by the next line
#the optimizer will remove them.
v = as_cuda_ndarray_variable(value)
if v.ndim != len(shape):
value = tensor.shape_padleft(value, len(shape) - v.ndim)
shape, output = self.validate_shape(shape)
return Apply(self, [v] + shape, [output])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论