






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


A__      :     Optional[int]       =					logging.get_logger(__name__)

A__      :     List[Any]       =					{
    'facebook/vit-mae-base': 'https://huggingface.co/facebook/vit-mae-base/resolve/main/config.json',
    # See all ViT MAE models at https://huggingface.co/models?filter=vit-mae
}
class  _UpperCAmelCase   (			A__      ):

				"""simple docstring"""




				lowercase__											=			"""vit_mae"""




				def __init__(	self		:       Optional[Any],    lowerCamelCase		:       Optional[int]=768,    lowerCamelCase		:       List[Any]=12,    lowerCamelCase		:       List[Any]=12,    lowerCamelCase		:       Optional[int]=3_072,    lowerCamelCase		:       List[str]="gelu",    lowerCamelCase		:       Any=0.0,    lowerCamelCase		:       str=0.0,    lowerCamelCase		:       List[Any]=0.02,    lowerCamelCase		:       str=1E-12,    lowerCamelCase		:       int=224,    lowerCamelCase		:       Optional[int]=16,    lowerCamelCase		:       Optional[Any]=3,    lowerCamelCase		:       Any=True,    lowerCamelCase		:       Any=16,    lowerCamelCase		:       Any=512,    lowerCamelCase		:       Dict=8,    lowerCamelCase		:       Optional[int]=2_048,    lowerCamelCase		:       List[str]=0.75,    lowerCamelCase		:       Any=False,    **lowerCamelCase		:       Union[str, Any],    ):

								'''simple docstring'''
								super().__init__(**lowerCamelCase    )

								lowercase__  					=     hidden_size
								lowercase__  					=     num_hidden_layers
								lowercase__  					=     num_attention_heads
								lowercase__  					=     intermediate_size
								lowercase__  					=     hidden_act
								lowercase__  					=     hidden_dropout_prob
								lowercase__  					=     attention_probs_dropout_prob
								lowercase__  					=     initializer_range
								lowercase__  					=     layer_norm_eps
								lowercase__  					=     image_size
								lowercase__  					=     patch_size
								lowercase__  					=     num_channels
								lowercase__  					=     qkv_bias
								lowercase__  					=     decoder_num_attention_heads
								lowercase__  					=     decoder_hidden_size
								lowercase__  					=     decoder_num_hidden_layers
								lowercase__  					=     decoder_intermediate_size
								lowercase__  					=     mask_ratio
								lowercase__  					=     norm_pix_loss












from __future__ import annotations

from typing import Any






def     a     (		lowerCamelCase_							):






				'''simple docstring'''
				if not postfix_notation:
								return 0

				lowercase__  					=     {'''+''', '''-''', '''*''', '''/'''}
				lowercase__  					=     []

				for token in postfix_notation:
								if token in operations:
												lowercase__					,		lowercase__  					=     stack.pop(), stack.pop()
												if token == "+":
																stack.append(a + b							)
												elif token == "-":
																stack.append(a - b							)
												elif token == "*":
																stack.append(a * b							)
												else:
																if a * b < 0 and a % b != 0:
																				stack.append(a // b + 1							)
																else:
																				stack.append(a // b							)
								else:
												stack.append(int(lowerCamelCase_							)							)

				return stack.pop()


if __name__ == "__main__":
							import doctest

							doctest.testmod()




