mlx.core.atleast_3d

目錄

mlx.core.atleast_3d#

atleast_3d(*arys: array, stream: None | Stream | Device = None) array | list[array]#

Convert all arrays to have at least three dimensions.

參數:
  • *arys -- Input arrays.

  • stream (Union[None, Stream, Device], optional) -- The stream to execute the operation on.

回傳:

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

回傳型別:

array or list(array)