src/transformers/generation/flax_logits_process.py/FlaxTemperatureLogitsWarper/__init__
class FlaxTemperatureLogitsWarper:    def __init__(self, temperature: float):
        if not isinstance(temperature, float) or not (temperature > 0):
            raise ValueError(f"`temperature` has to be a strictly positive float, but is {temperature}")

        self.temperature = temperature