

"""simple docstring"""




import os
import platform
import sys


__UpperCAmelCase =				'3'

print('Python version:', sys.version)

print('OS platform:', platform.platform())
print('OS architecture:', platform.machine())

try:
    import torch

    print('Torch version:', torch.__version__)
    print('Cuda available:', torch.cuda.is_available())
    print('Cuda version:', torch.version.cuda)
    print('CuDNN version:', torch.backends.cudnn.version())
    print('Number of GPUs available:', torch.cuda.device_count())
except ImportError:
    print('Torch version:', None)

try:
    import transformers

    print('transformers version:', transformers.__version__)
except ImportError:
    print('transformers version:', None)








"""simple docstring"""




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


__UpperCAmelCase =				logging.get_logger(__name__)







class      __lowercase			(    __lowerCamelCase					):
  snake_case_				       =       """timm_backbone"""

  def __init__(  self		:			List[str]					,A		:			Any=None					,A		:			List[Any]=3					,A		:			Any=True					,A		:			Union[str, Any]=True					,A		:			List[Any]=None					,**A		:			Optional[int]					,):






   '''simple docstring'''
   super().__init__(**A    )
   UpperCAmelCase__					:  Optional[int]					   =					backbone
   UpperCAmelCase__					:  Dict					   =					num_channels
   UpperCAmelCase__					:  Optional[int]					   =					features_only
   UpperCAmelCase__					:  Tuple					   =					use_pretrained_backbone
   UpperCAmelCase__					:  str					   =					True
   UpperCAmelCase__					:  List[str]					   =					out_indices if out_indices is not None else (-1,)





