





from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig


UpperCAmelCase_											=       {
    """albert-base-v1""": """https://huggingface.co/albert-base-v1/resolve/main/config.json""",
    """albert-large-v1""": """https://huggingface.co/albert-large-v1/resolve/main/config.json""",
    """albert-xlarge-v1""": """https://huggingface.co/albert-xlarge-v1/resolve/main/config.json""",
    """albert-xxlarge-v1""": """https://huggingface.co/albert-xxlarge-v1/resolve/main/config.json""",
    """albert-base-v2""": """https://huggingface.co/albert-base-v2/resolve/main/config.json""",
    """albert-large-v2""": """https://huggingface.co/albert-large-v2/resolve/main/config.json""",
    """albert-xlarge-v2""": """https://huggingface.co/albert-xlarge-v2/resolve/main/config.json""",
    """albert-xxlarge-v2""": """https://huggingface.co/albert-xxlarge-v2/resolve/main/config.json""",
}
class      UpperCamelCase_						(					__snake_case   ):
					lowerCAmelCase_							=		'''albert'''




					def __init__(						self			,  lowerCAmelCase_=3_0000			,  lowerCAmelCase_=128			,  lowerCAmelCase_=4096			,  lowerCAmelCase_=12			,  lowerCAmelCase_=1			,  lowerCAmelCase_=64			,  lowerCAmelCase_=1_6384			,  lowerCAmelCase_=1			,  lowerCAmelCase_="gelu_new"			,  lowerCAmelCase_=0			,  lowerCAmelCase_=0			,  lowerCAmelCase_=512			,  lowerCAmelCase_=2			,  lowerCAmelCase_=0.02			,  lowerCAmelCase_=1E-12			,  lowerCAmelCase_=0.1			,  lowerCAmelCase_="absolute"			,  lowerCAmelCase_=0			,  lowerCAmelCase_=2			,  lowerCAmelCase_=3			,  **lowerCAmelCase_			,  )						->							Tuple:
										super().__init__(pad_token_id=a_			,  bos_token_id=a_			,  eos_token_id=a_			,  **a_					)

										_snake_case													=			vocab_size
										_snake_case													=			embedding_size
										_snake_case													=			hidden_size
										_snake_case													=			num_hidden_layers
										_snake_case													=			num_hidden_groups
										_snake_case													=			num_attention_heads
										_snake_case													=			inner_group_num
										_snake_case													=			hidden_act
										_snake_case													=			intermediate_size
										_snake_case													=			hidden_dropout_prob
										_snake_case													=			attention_probs_dropout_prob
										_snake_case													=			max_position_embeddings
										_snake_case													=			type_vocab_size
										_snake_case													=			initializer_range
										_snake_case													=			layer_norm_eps
										_snake_case													=			classifier_dropout_prob
										_snake_case													=			position_embedding_type





class      UpperCamelCase_						(					__snake_case   ):




					@property
					def 		lowerCAmelCase     (						self					)						->							Tuple:

										if self.task == "multiple-choice":
															_snake_case													=			{0: '''batch''', 1: '''choice''', 2: '''sequence'''}
										else:
															_snake_case													=			{0: '''batch''', 1: '''sequence'''}
										return OrderedDict(
										    [
										        ('input_ids', dynamic_axis),
										        ('attention_mask', dynamic_axis),
										        ('token_type_ids', dynamic_axis),
										    ]					)










from cva import destroyAllWindows, imread, imshow, waitKey





def   lowerCamelCase__       (       UpperCamelCase__     :    Dict  )     ->	Optional[Any]:



					'''simple docstring'''




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

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

					return img


if __name__ == "__main__":
					# read original image
					UpperCAmelCase_ 							=       imread("""image_data/lena.jpg""", 1)

					# convert to its negative
					UpperCAmelCase_ 							=       convert_to_negative(img)

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



