numpy.matrix.to_device#

方法

matrix.to_device(device, /, *, stream=None)#

For Array API compatibility. Since NumPy only supports CPU arrays, this method is a no-op that returns the same array.

參數:
device「cpu」

Must be "cpu".

streamNone, optional

Currently unsupported.

回傳值:
outSelf

Returns the same array.