stable_divide

ivy.stable_divide(numerator: Any, denominator: Any, min_denominator: Optional[float] = None) → Any[source]

Divide the numerator by the denominator, with min denominator added to the denominator for numerical stability.

Parameters
  • numerator (any valid numerator, including containers) – The numerator of the division.

  • denominator (any valid denominator, including containers) – The denominator of the division.

  • min_denominator (float, optional) – The minimum denominator to use, use global ivy._MIN_DENOMINATOR by default.

Returns

The new item following the numerically stable division.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty