


"""simple docstring"""






from transformers import HfArgumentParser, PyTorchBenchmark, PyTorchBenchmarkArguments


def __lowercase  (   ):
				SCREAMING_SNAKE_CASE__  				=					HfArgumentParser(lowerCamelCase_	)
				try:
								SCREAMING_SNAKE_CASE__  				=					parser.parse_args_into_dataclasses()[0]
				except ValueError as e:
								SCREAMING_SNAKE_CASE__  				=					'''Arg --no_{0} is no longer used, please use --no-{0} instead.'''
								SCREAMING_SNAKE_CASE__  				=					''' '''.join(str(lowerCamelCase_	).split(" "	)[:-1]	)
								SCREAMING_SNAKE_CASE__  				=					''''''
								SCREAMING_SNAKE_CASE__  				=					eval(str(lowerCamelCase_	).split(" "	)[-1]	)
								SCREAMING_SNAKE_CASE__  				=					[]
								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(lowerCamelCase_	)
								if len(lowerCamelCase_	) > 0:
												SCREAMING_SNAKE_CASE__  				=					full_error_msg + begin_error_msg + str(lowerCamelCase_	)
								raise ValueError(lowerCamelCase_	)

				SCREAMING_SNAKE_CASE__  				=					PyTorchBenchmark(args=lowerCamelCase_	)
				benchmark.run()


if __name__ == "__main__":
	main()



"""simple docstring"""





def 							_lowerCAmelCase   (    UpperCAmelCase  :				int					):


					'''simple docstring'''






					if not isinstance(UpperCAmelCase   ,				UpperCAmelCase					):
										raise ValueError('''double_factorial() only accepts integral values'''					)
					if n < 0:
										raise ValueError('''double_factorial() not defined for negative values'''					)
					return 1 if n <= 1 else n * double_factorial(n - 2					)


if __name__ == "__main__":
				import doctest

				doctest.testmod()


