@sourceacademy/torch
    Preparing search index...

    Variable nan_to_numConst

    nan_to_num: (a: number | Tensor) => Tensor = ...

    Replaces NaN values in the input tensor with 0, positive infinity with a large finite number, and negative infinity with a small finite number.

    Type Declaration