


"""simple docstring"""







import torch




def    UpperCAmelCase__       ():




					'''simple docstring'''


					if torch.cuda.is_available():
										__SCREAMING_SNAKE_CASE						   =				torch.cuda.device_count()
					else:
										__SCREAMING_SNAKE_CASE						   =				0
					print(f"""Successfully ran on {num_gpus} GPUs"""   )


if __name__ == "__main__":
		main()




"""simple docstring"""




import numpy as np

def        lowercase							(		lowerCAmelCase__ :     np.ndarray    ,					lowerCAmelCase__ :     float			) ->      np.ndarray:
		return np.where(vector > 0    ,					lowerCAmelCase__    ,					(alpha * (np.exp(lowerCAmelCase__			) - 1))			)


if __name__ == "__main__":
				import doctest

				doctest.testmod()






