mlx.core.clip#
- clip(a: array, /, a_min: scalar | array | None, a_max: scalar | array | None, *, stream: None | Stream | Device = None) array#
- Clip the values of the array between the given minimum and maximum. - If either - a_minor- a_maxare- None, then corresponding edge is ignored. At least one of- a_minand- a_maxcannot be- None. The input- aand the limits must broadcast with one another.
