




'''simple docstring'''







from ctypes import c_float, sizeof
from enum import Enum
from typing import TYPE_CHECKING, Optional, Union


if TYPE_CHECKING:
						from .. import AutoFeatureExtractor, AutoProcessor, AutoTokenizer  # tests_ignore







class 				_a   (a__  ):





					'''simple docstring'''



					lowerCAmelCase_     :    Any									=				c_float







					@property
					def  snake_case_			(							self       )			->							List[str]:
										return sizeof(self.value       )



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase    ,      __lowercase = 0							):
					# < 0 is possible if using a dynamic axis
					if dimension <= 0:
										snake_case :			str					   = fixed_dimension

					dimension -= num_token_to_add
					return dimension



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase							):
					return num_parameters * dtype.size







def 					lowerCamelCase__							(			__lowercase							):
					from .. import AutoFeatureExtractor, AutoProcessor, AutoTokenizer  # tests_ignore

					try:
										return AutoProcessor.from_pretrained(lowercase__							)
					except (ValueError, OSError, KeyError):
										snake_case   ,		snake_case :			Any					   = None, None
										try:
															snake_case :			Any					   = AutoTokenizer.from_pretrained(lowercase__							)
										except (OSError, KeyError):
															pass
										try:
															snake_case :			Tuple					   = AutoFeatureExtractor.from_pretrained(lowercase__							)
										except (OSError, KeyError):
															pass

										if tokenizer is not None and feature_extractor is not None:
															raise ValueError(
															    F'''Couldn\'t auto-detect preprocessor for {model_name}. Found both a tokenizer and a feature extractor.'''							)
										elif tokenizer is None and feature_extractor is None:
															return None
										elif tokenizer is not None:
															return tokenizer
										else:
															return feature_extractor









'''simple docstring'''







def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 9 / 5) + 32    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round(float(__lowercase							) + 273.15    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 9 / 5) + 491.67    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) - 32) * 5 / 9    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round(((float(__lowercase							) - 32) * 5 / 9) + 273.15    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round(float(__lowercase							) + 459.67    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round(float(__lowercase							) - 273.15    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round(((float(__lowercase							) - 273.15) * 9 / 5) + 32    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 9 / 5)    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) - 491.67) * 5 / 9    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round(float(__lowercase							) - 459.67    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 5 / 9)    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 1.25 + 273.15)    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 2.25 + 32)    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 1.25)    ,      __lowercase							)



def 					lowerCamelCase__							(			__lowercase    ,      __lowercase = 2							):
     return round((float(__lowercase							) * 2.25 + 32 + 459.67)    ,      __lowercase							)


if __name__ == "__main__":
      import doctest

      doctest.testmod()



