mlx.core.to_fp8

目錄

mlx.core.to_fp8#

to_fp8(x: array, *, stream: None | Stream | Device = None) array#

Convert the array to fp8 (e4m3) from another floating-point type.

參數:

x (array) -- 輸入陣列。

回傳值:

The array converted to fp8 with type uint8.

回傳值型別:

array