
"""simple docstring"""







def   __UpperCamelCase   (					SCREAMING_SNAKE_CASE )  ->     list:







							"""simple docstring"""


							__snake_case     			=       int(SCREAMING_SNAKE_CASE )
							if n_element < 1:
														__snake_case     			=       ValueError("a should be a positive number" )
														raise my_error

							__snake_case     			=       [1]
							__snake_case     			=       (0, 0, 0)
							__snake_case     			=       1
							while index < n_element:
														while hamming_list[i] * 2 <= hamming_list[-1]:
																					i += 1
														while hamming_list[j] * 3 <= hamming_list[-1]:
																					j += 1
														while hamming_list[k] * 5 <= hamming_list[-1]:
																					k += 1
														hamming_list.append(
														    min(hamming_list[i] * 2							,    hamming_list[j] * 3							,    hamming_list[k] * 5 ) )
														index += 1
							return hamming_list


if __name__ == "__main__":
		_SCREAMING_SNAKE_CASE	       =      input("""Enter the last number (nth term) of the Hamming Number Series: """)
		print("""Formula of Hamming Number Series => 2^i * 3^j * 5^k""")
		_SCREAMING_SNAKE_CASE	       =      hamming(int(n))
		print("""-----------------------------------------------------""")
		print(F"""The list with nth numbers is: {hamming_numbers}""")
		print("""-----------------------------------------------------""")


"""simple docstring"""







import unittest

import numpy as np

from diffusers import OnnxStableDiffusionInpaintPipelineLegacy
from diffusers.utils.testing_utils import (
    is_onnx_available,
    load_image,
    load_numpy,
    nightly,
    require_onnxruntime,
    require_torch_gpu,
)


if is_onnx_available():
		import onnxruntime as ort







@nightly
@require_onnxruntime
@require_torch_gpu
class 							__magic_name__     (		unittest.TestCase   ):





					@property
					def 							lowerCAmelCase      (				self   :							Union[str, Any]    ):
												return (
												    "CUDAExecutionProvider",
												    {
												        "gpu_mem_limit": "15000000000",  # 15GB
												        "arena_extend_strategy": "kSameAsRequested",
												    },
												)





					@property
					def 							lowerCAmelCase      (				self   :							str    ):
												__snake_case     			=       ort.SessionOptions()
												__snake_case     			=       False
												return options





					def 							lowerCAmelCase      (				self   :							Tuple    ):
												__snake_case     			=       load_image(
												    "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main"
												    "/in_paint/overture-creations-5sI6fQgYIuo.png"    )
												__snake_case     			=       load_image(
												    "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main"
												    "/in_paint/overture-creations-5sI6fQgYIuo_mask.png"    )
												__snake_case     			=       load_numpy(
												    "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main"
												    "/in_paint/red_cat_sitting_on_a_park_bench_onnx.npy"    )

												# using the PNDM scheduler by default
												__snake_case     			=       OnnxStableDiffusionInpaintPipelineLegacy.from_pretrained(
												    "CompVis/stable-diffusion-v1-4"							,						revision="onnx"							,						safety_checker=snake_case_							,						feature_extractor=snake_case_							,						provider=self.gpu_provider							,						sess_options=self.gpu_options							,						)
												pipe.set_progress_bar_config(disable=snake_case_    )

												__snake_case     			=       "A red cat sitting on a park bench"

												__snake_case     			=       np.random.RandomState(0    )
												__snake_case     			=       pipe(
												    prompt=snake_case_							,						image=snake_case_							,						mask_image=snake_case_							,						strength=0.75							,						guidance_scale=7.5							,						num_inference_steps=15							,						generator=snake_case_							,						output_type="np"							,						)

												__snake_case     			=       output.images[0]

												assert image.shape == (512, 512, 3)
												assert np.abs(expected_image - image    ).max() < 1e-2
