mlx.core.atleast_2d

目錄

mlx.core.atleast_2d#

atleast_2d(*arys: array, stream: StreamOrDevice = None) → array | list[array]#

Convert all arrays to have at least two dimensions.

參數:
  • *arys -- Input arrays.

  • stream (StreamOrDevice, optional) -- The stream to execute the operation on.

回傳值:

An array or list of arrays with at least two dimensions.

回傳值型別:

array or list(array)