



"""simple docstring"""





from datetime import datetime

import matplotlib.pyplot as plt
import torch




def 	UpperCAmelCase     (		A	:						Tuple       ):

		'''simple docstring'''


		for param in module.parameters():
				_UpperCAmelCase							 =		False




def 	UpperCAmelCase     (		):

		'''simple docstring'''


		_UpperCAmelCase							 =		'cuda' if torch.cuda.is_available() else 'cpu'
		if torch.backends.mps.is_available() and torch.backends.mps.is_built():
				_UpperCAmelCase							 =		'mps'
		if device == "mps":
				print(
				    'WARNING: MPS currently doesn\'t seem to work, and messes up backpropagation without any visible torch'
				    ' errors. I recommend using CUDA on a colab notebook or CPU instead if you\'re facing inexplicable issues'
				    ' with generations.'       )
		return device




def 	UpperCAmelCase     (		A	:						Dict       ):

		'''simple docstring'''


		_UpperCAmelCase							 =		plt.imshow(A       )
		fig.axes.get_xaxis().set_visible(A       )
		fig.axes.get_yaxis().set_visible(A       )
		plt.show()






def 	UpperCAmelCase     (		):

		'''simple docstring'''


		_UpperCAmelCase							 =		datetime.now()
		_UpperCAmelCase							 =		current_time.strftime('%H:%M:%S'       )
		return timestamp







"""simple docstring"""





import os




def 	UpperCAmelCase     (		):

		'''simple docstring'''


		_UpperCAmelCase							 =		os.path.join(os.path.dirname(A       )     ,				'num.txt'       )
		with open(A       ) as file_hand:
				return str(sum(int(A       ) for line in file_hand       )       )[:10]


if __name__ == "__main__":
					print(solution())


