keras/src/ops/numpy.py/NanToNum/__init__
class NanToNum:    def __init__(self, nan=0.0, posinf=None, neginf=None):
        super().__init__()
        self.nan = nan
        self.posinf = posinf
        self.neginf = neginf