





'''simple docstring'''

from ...configuration_utils import PretrainedConfig
from ...utils import logging


lowercase__						:      List[Any]	=    logging.get_logger(__name__)

lowercase__						:      str	=    {
    # See all MEGATRON_BERT models at https://huggingface.co/models?filter=bert
}
class     __lowerCAmelCase					(   __magic_name__			):






       """simple docstring"""
       _snake_case     :					int						    =   'megatron-bert'





       def __init__(							self       :		Dict	,			lowerCAmelCase__       :		Tuple=29056	,			lowerCAmelCase__       :		int=1024	,			lowerCAmelCase__       :		Tuple=24	,			lowerCAmelCase__       :		Optional[int]=16	,			lowerCAmelCase__       :		Optional[int]=4096	,			lowerCAmelCase__       :		Optional[Any]="gelu"	,			lowerCAmelCase__       :		Any=0.1	,			lowerCAmelCase__       :		Union[str, Any]=0.1	,			lowerCAmelCase__       :		List[Any]=512	,			lowerCAmelCase__       :		Dict=2	,			lowerCAmelCase__       :		Dict=0.02	,			lowerCAmelCase__       :		Any=1e-1_2	,			lowerCAmelCase__       :		Tuple=0	,			lowerCAmelCase__       :		Union[str, Any]="absolute"	,			lowerCAmelCase__       :		Any=True	,			**lowerCAmelCase__       :		str	,			)   ->					str:

            '''simple docstring'''




            super().__init__(pad_token_id=lowerCAmelCase__	,			**lowerCAmelCase__					)

            _UpperCamelCase       =	vocab_size
            _UpperCamelCase       =	hidden_size
            _UpperCamelCase       =	num_hidden_layers
            _UpperCamelCase       =	num_attention_heads
            _UpperCamelCase       =	hidden_act
            _UpperCamelCase       =	intermediate_size
            _UpperCamelCase       =	hidden_dropout_prob
            _UpperCamelCase       =	attention_probs_dropout_prob
            _UpperCamelCase       =	max_position_embeddings
            _UpperCamelCase       =	type_vocab_size
            _UpperCamelCase       =	initializer_range
            _UpperCamelCase       =	layer_norm_eps
            _UpperCamelCase       =	position_embedding_type
            _UpperCamelCase       =	use_cache










'''simple docstring'''

from cva import destroyAllWindows, imread, imshow, waitKey







def  a__    (    lowercase :					str				)		->		Optional[int]:





     """simple docstring"""

     _UpperCamelCase   ,    _UpperCamelCase       =	img.shape[0], img.shape[1]

     # converting each pixel's color to its negative
     for i in range(lowercase				):
          for j in range(lowercase				):
               _UpperCamelCase       =	[255, 255, 255] - img[i][j]

     return img


if __name__ == "__main__":
   # read original image
   lowercase__						:      Optional[int]	=    imread('image_data/lena.jpg', 1)

   # convert to its negative
   lowercase__						:      Union[str, Any]	=    convert_to_negative(img)

   # show result image
   imshow('negative of original image', img)
   waitKey(0)
   destroyAllWindows()



