

import warnings

from ...utils import logging
from .image_processing_vit import ViTImageProcessor


_lowerCamelCase							=logging.get_logger(__name__)



class 						a_			(				lowerCamelCase_	):



      """simple docstring"""







      def __init__( self	:				List[str]     ,*snake_case	:				Optional[int]     ,**snake_case	:				Optional[Any]							):
           warnings.warn(
               'The class ViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
               ' use ViTImageProcessor instead.'     ,snake_case     ,)
           super().__init__(*snake_case     ,**snake_case							)




import numpy as np







def      snake_case__							(  lowerCAmelCase_     ):





     """simple docstring"""







     SCREAMING_SNAKE_CASE 		=np.exp(lowerCAmelCase_     )

     # Add up the all the exponentials
     SCREAMING_SNAKE_CASE 		=np.sum(lowerCAmelCase_     )

     # Divide every exponent by the sum of all exponents
     SCREAMING_SNAKE_CASE 		=exponent_vector / sum_of_exponents

     return softmax_vector


if __name__ == "__main__":
 print(softmax((0,)))

