






'''simple docstring'''







import warnings

from ...utils import logging
from .image_processing_poolformer import PoolFormerImageProcessor


_A     :      Union[str, Any]   					=logging.get_logger(__name__)

class _lowercase     (    _lowercase		):




							def __init__(							self:    int      ,							*UpperCamelCase__:    Any      ,							**UpperCamelCase__:    List[str]					):
														warnings.warn(
														    """The class PoolFormerFeatureExtractor is deprecated and will be removed in version 5 of Transformers."""
														    """ Please use PoolFormerImageProcessor instead."""      ,							UpperCamelCase__      ,							)
														super().__init__(*UpperCamelCase__      ,							**UpperCamelCase__					)









'''simple docstring'''







from torch import nn





def 			SCREAMING_SNAKE_CASE_	(UpperCamelCase				)				->	Dict:
							if act_fn in ["swish", "silu"]:
														return nn.SiLU()
							elif act_fn == "mish":
														return nn.Mish()
							elif act_fn == "gelu":
														return nn.GELU()
							else:
														raise ValueError(f'''Unsupported activation function: {act_fn}'''				)

