
import functools
import operator

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


snake_case__  							=							logging.get_logger(__name__)

snake_case__  							=							{
    """facebook/hubert-base-ls960""": """https://huggingface.co/facebook/hubert-base-ls960/resolve/main/config.json""",
    # See all Hubert models at https://huggingface.co/models?filter=hubert
}







class 							UpperCAmelCase	(   __lowerCamelCase					):
					a__: str			  =				"""hubert"""

					def __init__(			self      :					List[Any] ,      lowerCAmelCase      :					Optional[int]=32 ,      lowerCAmelCase      :					Any=768 ,      lowerCAmelCase      :					Tuple=12 ,      lowerCAmelCase      :					Tuple=12 ,      lowerCAmelCase      :					int=3072 ,      lowerCAmelCase      :					Dict="gelu" ,      lowerCAmelCase      :					int=0.1 ,      lowerCAmelCase      :					List[Any]=0.1 ,      lowerCAmelCase      :					str=0.1 ,      lowerCAmelCase      :					Dict=True ,      lowerCAmelCase      :					Optional[int]=0.0 ,      lowerCAmelCase      :					Tuple=0.1 ,      lowerCAmelCase      :					int=0.1 ,      lowerCAmelCase      :					Dict=0.02 ,      lowerCAmelCase      :					List[Any]=1E-5 ,      lowerCAmelCase      :					Union[str, Any]="group" ,      lowerCAmelCase      :					Tuple="gelu" ,      lowerCAmelCase      :					int=(512, 512, 512, 512, 512, 512, 512) ,      lowerCAmelCase      :					Tuple=(5, 2, 2, 2, 2, 2, 2) ,      lowerCAmelCase      :					List[Any]=(10, 3, 3, 3, 3, 2, 2) ,      lowerCAmelCase      :					Union[str, Any]=False ,      lowerCAmelCase      :					Union[str, Any]=128 ,      lowerCAmelCase      :					str=16 ,      lowerCAmelCase      :					int=False ,      lowerCAmelCase      :					Union[str, Any]=True ,      lowerCAmelCase      :					List[Any]=0.05 ,      lowerCAmelCase      :					Dict=10 ,      lowerCAmelCase      :					int=2 ,      lowerCAmelCase      :					int=0.0 ,      lowerCAmelCase      :					List[Any]=10 ,      lowerCAmelCase      :					str=0 ,      lowerCAmelCase      :					Union[str, Any]="sum" ,      lowerCAmelCase      :					str=False ,      lowerCAmelCase      :					Any=False ,      lowerCAmelCase      :					Optional[int]=256 ,      lowerCAmelCase      :					List[Any]=0 ,      lowerCAmelCase      :					Optional[Any]=1 ,      lowerCAmelCase      :					int=2 ,      **lowerCAmelCase      :					Optional[Any] ,      ):
											super().__init__(**lowerCAmelCase ,      pad_token_id=lowerCAmelCase ,      bos_token_id=lowerCAmelCase ,      eos_token_id=lowerCAmelCase					)
											lowercase       :    Dict											=  hidden_size
											lowercase       :    Optional[int]											=  feat_extract_norm
											lowercase       :    Any											=  feat_extract_activation
											lowercase       :    Tuple											=  list(lowerCAmelCase					)
											lowercase       :    int											=  list(lowerCAmelCase					)
											lowercase       :    Optional[Any]											=  list(lowerCAmelCase					)
											lowercase       :    int											=  conv_bias
											lowercase       :    int											=  num_conv_pos_embeddings
											lowercase       :    int											=  num_conv_pos_embedding_groups
											lowercase       :    Any											=  len(self.conv_dim					)
											lowercase       :    Union[str, Any]											=  num_hidden_layers
											lowercase       :    Any											=  intermediate_size
											lowercase       :    List[Any]											=  hidden_act
											lowercase       :    int											=  num_attention_heads
											lowercase       :    Union[str, Any]											=  hidden_dropout
											lowercase       :    Dict											=  attention_dropout
											lowercase       :    str											=  activation_dropout
											lowercase       :    List[str]											=  feat_proj_layer_norm
											lowercase       :    List[Any]											=  feat_proj_dropout
											lowercase       :    List[Any]											=  final_dropout
											lowercase       :    Optional[int]											=  layerdrop
											lowercase       :    int											=  layer_norm_eps
											lowercase       :    Any											=  initializer_range
											lowercase       :    List[Any]											=  vocab_size
											lowercase       :    Optional[Any]											=  do_stable_layer_norm
											lowercase       :    List[Any]											=  use_weighted_layer_sum
											lowercase       :    Optional[Any]											=  classifier_proj_size

											if (
											    (len(self.conv_stride					) != self.num_feat_extract_layers)
											    or (len(self.conv_kernel					) != self.num_feat_extract_layers)
											    or (len(self.conv_dim					) != self.num_feat_extract_layers)
											):
																	raise ValueError(
																	    '''Configuration for convolutional layers is incorrect. It is required that `len(config.conv_dim)` =='''
																	    ''' `len(config.conv_stride)` == `len(config.conv_kernel)`, but is `len(config.conv_dim) ='''
																	    f''' {len(self.conv_dim					)}`, `len(config.conv_stride) = {len(self.conv_stride					)}`,'''
																	    f''' `len(config.conv_kernel) = {len(self.conv_kernel					)}`.'''					)

											# fine-tuning config parameters for SpecAugment: https://arxiv.org/abs/1904.08779
											lowercase       :    List[str]											=  apply_spec_augment
											lowercase       :    Any											=  mask_time_prob
											lowercase       :    Any											=  mask_time_length
											lowercase       :    List[str]											=  mask_time_min_masks
											lowercase       :    int											=  mask_feature_prob
											lowercase       :    Any											=  mask_feature_length
											lowercase       :    Dict											=  mask_feature_min_masks

											# ctc loss
											lowercase       :    List[Any]											=  ctc_loss_reduction
											lowercase       :    List[Any]											=  ctc_zero_infinity




					@property
					def        _lowerCAmelCase	(			self      :					str					):
											return functools.reduce(operator.mul ,      self.conv_stride ,      1					)




from itertools import combinations_with_replacement

def        lowerCamelCase_      (			UpperCAmelCase_							:				int = 1_00       ):
						lowercase       :    list[int]											=  [*list(range(1							,			21       )       ), 25]
						lowercase       :    list[int]											=  [2 * x for x in range(1							,			21       )] + [50]
						lowercase       :    list[int]											=  [3 * x for x in range(1							,			21       )]
						lowercase       :    list[int]											=  singles + doubles + triples + [0]

						lowercase       :    int											=  0
						lowercase       :    int
						lowercase       :    int
						lowercase       :    int
						lowercase       :    int

						for double in doubles:
												for throwa, throwa in combinations_with_replacement(UpperCAmelCase_							,			2       ):
																		lowercase       :    Union[str, Any]											=  double + throwa + throwa
																		if checkout_total < limit:
																								num_checkouts += 1

						return num_checkouts


if __name__ == "__main__":
				print(F'{solution() = }')


