
"""simple docstring"""


import warnings

from ...utils import logging
from .image_processing_owlvit import OwlViTImageProcessor


_lowercase				 =					logging.get_logger(__name__)







class 					lowerCAmelCase_					(   _lowercase     ):



						'''simple docstring'''


						def __init__(			self  :   Union[str, Any]	,*A_  :   int	,**A_  :   Union[str, Any]   )  -> None:
							warnings.warn(
							    'The class OwlViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
							    ' use OwlViTImageProcessor instead.'	,A_	,)
							super().__init__(*A_	,**A_   )

"""simple docstring"""


from torch import nn






def    _snake_case					(		snake_case__ :  Union[str, Any]  ):
	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}'  )