'''simple docstring'''




from ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
						if not (is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.27.0")):
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						from ...utils.dummy_torch_and_transformers_objects import (
						    AudioLDMPipeline,
						)
else:
						from .pipeline_audioldm import AudioLDMPipeline






'''simple docstring'''




from transformers import HfArgumentParser, PyTorchBenchmark, PyTorchBenchmarkArguments




def 				lowerCamelCase      ( )     -> List[Any]:
							lowercase_   :     Tuple									=			HfArgumentParser(UpperCAmelCase__					)
							try:
														lowercase_   :     List[Any]									=			parser.parse_args_into_dataclasses()[0]
							except ValueError as e:
														lowercase_   :     int									=			"""Arg --no_{0} is no longer used, please use --no-{0} instead."""
														lowercase_   :     Any									=			""" """.join(str(UpperCAmelCase__					).split(""" """					)[:-1]					)
														lowercase_   :     Optional[Any]									=			""""""
														lowercase_   :     List[str]									=			eval(str(UpperCAmelCase__					).split(""" """					)[-1]					)
														lowercase_   :     Dict									=			[]
														for arg in depreciated_args:
																					# arg[2:] removes '--'
																					if arg[2:] in PyTorchBenchmarkArguments.deprecated_args:
																												# arg[5:] removes '--no_'
																												full_error_msg += arg_error_msg.format(arg[5:]					)
																					else:
																												wrong_args.append(UpperCAmelCase__					)
														if len(UpperCAmelCase__					) > 0:
																					lowercase_   :     Dict									=			full_error_msg + begin_error_msg + str(UpperCAmelCase__					)
														raise ValueError(UpperCAmelCase__					)

							lowercase_   :     Optional[int]									=			PyTorchBenchmark(args=UpperCAmelCase__					)
							benchmark.run()


if __name__ == "__main__":
						main()





