import copy

from ...configuration_utils import PretrainedConfig
from ...utils import logging
from ..auto.configuration_auto import CONFIG_MAPPING


__lowercase											=      logging.get_logger(__name__)


class 			lowerCamelCase_  (     UpperCAmelCase_				):






    '''simple docstring'''






    a__			:		List[Any]      			=   """upernet"""







    def __init__(			self				,				__lowercase=None				,				__lowercase=512				,				__lowercase=0.02				,				__lowercase=[1, 2, 3, 6]				,				__lowercase=True				,				__lowercase=0.4				,				__lowercase=384				,				__lowercase=256				,				__lowercase=1				,				__lowercase=False				,				__lowercase=255				,				**__lowercase				,				) ->			Any:
        super().__init__(**__lowercase)

        if backbone_config is None:
            logger.info('''`backbone_config` is `None`. Initializing the config with the default `ResNet` backbone.''')
            __UpperCamelCase  :List[str]    						=	CONFIG_MAPPING['''resnet'''](out_features=['''stage1''', '''stage2''', '''stage3''', '''stage4'''])
        elif isinstance(__lowercase				,				__lowercase):
            __UpperCamelCase  :str    						=	backbone_config.get('''model_type''')
            __UpperCamelCase  :Union[str, Any]    						=	CONFIG_MAPPING[backbone_model_type]
            __UpperCamelCase  :Tuple    						=	config_class.from_dict(__lowercase)

        __UpperCamelCase  :str    						=	backbone_config
        __UpperCamelCase  :Any    						=	hidden_size
        __UpperCamelCase  :Tuple    						=	initializer_range
        __UpperCamelCase  :Optional[int]    						=	pool_scales
        __UpperCamelCase  :Optional[int]    						=	use_auxiliary_head
        __UpperCamelCase  :Optional[Any]    						=	auxiliary_loss_weight
        __UpperCamelCase  :List[Any]    						=	auxiliary_in_channels
        __UpperCamelCase  :str    						=	auxiliary_channels
        __UpperCamelCase  :Optional[Any]    						=	auxiliary_num_convs
        __UpperCamelCase  :Optional[int]    						=	auxiliary_concat_input
        __UpperCamelCase  :Dict    						=	loss_ignore_index







    def     UpperCamelCase__     (			self) ->			str:
        __UpperCamelCase  :Dict    						=	copy.deepcopy(self.__dict__)
        __UpperCamelCase  :Optional[int]    						=	self.backbone_config.to_dict()
        __UpperCamelCase  :str    						=	self.__class__.model_type
        return output






def lowerCamelCase						(     SCREAMING_SNAKE_CASE						,    SCREAMING_SNAKE_CASE			):
    '''simple docstring'''







    return 1 if input_a == input_a else 0



def lowerCamelCase						(     ):
    '''simple docstring'''







    assert xnor_gate(0						,    0			) == 1
    assert xnor_gate(0						,    1			) == 0
    assert xnor_gate(1						,    0			) == 0
    assert xnor_gate(1						,    1			) == 1


if __name__ == "__main__":
    print(xnor_gate(0, 0))
    print(xnor_gate(0, 1))
    print(xnor_gate(1, 0))
    print(xnor_gate(1, 1))





