




from typing import Optional, Union

import torch
from torch import nn

from ...configuration_utils import ConfigMixin, register_to_config
from ...models.modeling_utils import ModelMixin


class  A		(  __UpperCAmelCase      ,				__UpperCAmelCase     ):



		@register_to_config
		def __init__(     self,	UpperCamelCase__ = 768,	):







								"""simple docstring"""



								super().__init__()

								lowerCAmelCase_      			=  nn.Parameter(torch.zeros(1,	UpperCamelCase__   )   )
								lowerCAmelCase_      			=  nn.Parameter(torch.ones(1,	UpperCamelCase__   )   )



		def        SCREAMING_SNAKE_CASE__			(     self,	UpperCamelCase__ = None,	UpperCamelCase__ = None,	):







								"""simple docstring"""



								lowerCAmelCase_      			=  nn.Parameter(self.mean.to(UpperCamelCase__   ).to(UpperCamelCase__   )   )
								lowerCAmelCase_      			=  nn.Parameter(self.std.to(UpperCamelCase__   ).to(UpperCamelCase__   )   )
								return self



		def        SCREAMING_SNAKE_CASE__			(     self,	UpperCamelCase__   ):







								"""simple docstring"""



								lowerCAmelCase_      			=  (embeds - self.mean) * 1.0 / self.std
								return embeds







		def        SCREAMING_SNAKE_CASE__			(     self,	UpperCamelCase__   ):







								"""simple docstring"""



								lowerCAmelCase_      			=  (embeds * self.std) + self.mean
								return embeds










import warnings

from ...utils import logging
from .image_processing_beit import BeitImageProcessor


_A     =			logging.get_logger(__name__)


class  A		(  __UpperCAmelCase     ):



		def __init__(     self,	*UpperCamelCase__,	**UpperCamelCase__   ):







								"""simple docstring"""



								warnings.warn(
								    '''The class BeitFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
								    ''' use BeitImageProcessor instead.''',	UpperCamelCase__,	)
								super().__init__(*UpperCamelCase__,	**UpperCamelCase__   )




