fix_overflow

fix_overflow(x: numpy.ndarray) → numpy.ndarray

Ensures to fix infinite and not a number values.

Example:

x = fix_overflow(x)
Parameters

x (Tensor) – Tensor with nan and inf values

Returns

Tensor without inf and nan values

Return type

Tensor