



"""simple docstring"""







def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  Dict:

  """simple docstring"""




  return round((float(__A		) * 9 / 5) + 32       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  Optional[Any]:

  """simple docstring"""




  return round(float(__A		) + 273.15       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  Optional[int]:

  """simple docstring"""




  return round((float(__A		) * 9 / 5) + 491.67       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  Optional[int]:

  """simple docstring"""




  return round((float(__A		) - 32) * 5 / 9       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  Union[str, Any]:

  """simple docstring"""




  return round(((float(__A		) - 32) * 5 / 9) + 273.15       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  List[Any]:

  """simple docstring"""




  return round(float(__A		) + 459.67       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  Tuple:

  """simple docstring"""




  return round(float(__A		) - 273.15       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  int:

  """simple docstring"""




  return round(((float(__A		) - 273.15) * 9 / 5) + 32       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  str:

  """simple docstring"""




  return round((float(__A		) * 9 / 5)       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  int:

  """simple docstring"""




  return round((float(__A		) - 491.67) * 5 / 9       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  Tuple:

  """simple docstring"""




  return round(float(__A		) - 459.67       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  str:

  """simple docstring"""




  return round((float(__A		) * 5 / 9)       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  Tuple:

  """simple docstring"""




  return round((float(__A		) * 1.25 + 273.15)       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  Union[str, Any]:

  """simple docstring"""




  return round((float(__A		) * 2.25 + 32)       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  List[str]:

  """simple docstring"""




  return round((float(__A		) * 1.25)       ,  __A		)

def 							UpperCamelCase_       (       lowerCAmelCase__ :							float       ,  lowerCAmelCase__ :							int = 2		)		->  Optional[Any]:

  """simple docstring"""




  return round((float(__A		) * 2.25 + 32 + 459.67)       ,  __A		)


if __name__ == "__main__":
     import doctest

     doctest.testmod()













"""simple docstring"""



import inspect

from diffusers.utils import is_flax_available
from diffusers.utils.testing_utils import require_flax


if is_flax_available():
						import jax




@require_flax
class 							__lowercase:






						def 		lowerCAmelCase (       self)      ->	str:




											"""simple docstring"""





											lowerCamelCase__					,  lowerCamelCase__					=self.prepare_init_args_and_inputs_for_common()

											lowerCamelCase__					=self.model_class(**_SCREAMING_SNAKE_CASE)
											lowerCamelCase__					=model.init(inputs_dict['prng_key']     ,    inputs_dict['sample'])
											jax.lax.stop_gradient(_SCREAMING_SNAKE_CASE)

											lowerCamelCase__					=model.apply(_SCREAMING_SNAKE_CASE     ,    inputs_dict['sample'])

											if isinstance(_SCREAMING_SNAKE_CASE     ,    _SCREAMING_SNAKE_CASE):
																lowerCamelCase__					=output.sample

											self.assertIsNotNone(_SCREAMING_SNAKE_CASE)
											lowerCamelCase__					=inputs_dict['sample'].shape
											self.assertEqual(output.shape     ,    _SCREAMING_SNAKE_CASE     ,    'Input and output shapes do not match')






						def 		lowerCAmelCase (       self)      ->	Optional[Any]:




											"""simple docstring"""





											lowerCamelCase__					,  lowerCamelCase__					=self.prepare_init_args_and_inputs_for_common()

											lowerCamelCase__					=16
											lowerCamelCase__					=(16, 32)

											lowerCamelCase__					=self.model_class(**_SCREAMING_SNAKE_CASE)
											lowerCamelCase__					=model.init(inputs_dict['prng_key']     ,    inputs_dict['sample'])
											jax.lax.stop_gradient(_SCREAMING_SNAKE_CASE)

											lowerCamelCase__					=model.apply(_SCREAMING_SNAKE_CASE     ,    inputs_dict['sample'])

											if isinstance(_SCREAMING_SNAKE_CASE     ,    _SCREAMING_SNAKE_CASE):
																lowerCamelCase__					=output.sample

											self.assertIsNotNone(_SCREAMING_SNAKE_CASE)
											lowerCamelCase__					=inputs_dict['sample'].shape
											self.assertEqual(output.shape     ,    _SCREAMING_SNAKE_CASE     ,    'Input and output shapes do not match')






						def 		lowerCAmelCase (       self)      ->	Optional[Any]:




											"""simple docstring"""





											lowerCamelCase__					='kwargs' in inspect.signature(self.model_class.__init__).parameters
											lowerCamelCase__					=len(self.model_class._deprecated_kwargs) > 0

											if has_kwarg_in_model_class and not has_deprecated_kwarg:
																raise ValueError(
																    F"{self.model_class} has `**kwargs` in its __init__ method but has not defined any deprecated kwargs"
																    ' under the `_deprecated_kwargs` class attribute. Make sure to either remove `**kwargs` if there are'
																    ' no deprecated arguments or add the deprecated argument with `_deprecated_kwargs ='
																    ' [<deprecated_argument>]`')

											if not has_kwarg_in_model_class and has_deprecated_kwarg:
																raise ValueError(
																    F"{self.model_class} doesn't have `**kwargs` in its __init__ method but has defined deprecated kwargs"
																    ' under the `_deprecated_kwargs` class attribute. Make sure to either add the `**kwargs` argument to'
																    F" {self.model_class}.__init__ if there are deprecated arguments or remove the deprecated argument"
																    ' from `_deprecated_kwargs = [<deprecated_argument>]`')