Browse Source

fix np.linspace core dump

tags/v1.1.0
yanglf1121 5 years ago
parent
commit
dc2f33d0d1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mindspore/numpy/array_ops.py

+ 2
- 2
mindspore/numpy/array_ops.py View File

@@ -454,10 +454,10 @@ def linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, axis

if retstep:
array_out, step_out = out[0], out[1]
tensor_out = Tensor.from_numpy(array_out)
tensor_out = Tensor(array_out)
return tensor_out, step_out

tensor_out = Tensor.from_numpy(out)
tensor_out = Tensor(out)
return tensor_out




Loading…
Cancel
Save