mindspore.Tensor.numpy

Tensor.numpy()[source]

Alias for mindspore.Tensor.asnumpy().

Warning

After version 2.9.0, an optional keyword-only parameter force will be added without affecting existing numpy() calls. This is a compatible change, and existing calls will remain supported.