# What does this PR do?

Updates the condition for raising a warning in generate to warn users if the `generation_config`'s `max_length` is set to the default value. 
[`generate`]  Only warn users if the `generation_config`'s `max_length` is set to the default value. # What does this PR do?

Updates the condition for raising a warning in generate to warn users if the `generation_config`'s `max_length` is set to the default value. 
from transformers import Wav2Vec2FeatureExtractor


class CustomFeatureExtractor(Wav2Vec2FeatureExtractor):
    pass

from transformers import Wav2Vec2FeatureExtractor


class CustomFeatureExtractor(Wav2Vec2FeatureExtractor):
    pass
