



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__snake_case		:Union[str, Any] 						=	{'''configuration_dinat''': ['''DINAT_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''DinatConfig''']}


try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 __snake_case		:Union[str, Any] 						=	[
     '''DINAT_PRETRAINED_MODEL_ARCHIVE_LIST''',
     '''DinatForImageClassification''',
     '''DinatModel''',
     '''DinatPreTrainedModel''',
     '''DinatBackbone''',
 ]

if TYPE_CHECKING:
 from .configuration_dinat import DINAT_PRETRAINED_CONFIG_ARCHIVE_MAP, DinatConfig

 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_dinat import (
      DINAT_PRETRAINED_MODEL_ARCHIVE_LIST,
      DinatBackbone,
      DinatForImageClassification,
      DinatModel,
      DinatPreTrainedModel,
  )

else:
 import sys

 __snake_case		:Union[str, Any] 						=	_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)










def 	__snake_case      (     _UpperCAmelCase  ,					_UpperCAmelCase  ,					_UpperCAmelCase							):
    __a					=							[1 / first_term]
    __a					=							1 / first_term
    for _ in range(number_of_terms - 1							):
        first_term += common_difference
        arithmetic_progression.append(_UpperCAmelCase							)
    __a					=							[1 / step for step in arithmetic_progression]
    return sum(_UpperCAmelCase							)


if __name__ == "__main__":
 import doctest

 doctest.testmod()
 print(sum_of_harmonic_progression(1 / 2, 2, 2))





