



'''simple docstring'''
from datetime import datetime

import matplotlib.pyplot as plt
import torch






def A__    (     UpperCAmelCase_							):
						for param in module.parameters():
												_UpperCamelCase					:		Dict 				=   False






def A__    (     ):
						_UpperCamelCase					:		Dict 				=   'cuda' if torch.cuda.is_available() else 'cpu'
						if torch.backends.mps.is_available() and torch.backends.mps.is_built():
												_UpperCamelCase					:		Tuple 				=   '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 A__    (     UpperCAmelCase_							):
						_UpperCamelCase					:		Optional[Any] 				=   plt.imshow(UpperCAmelCase_							)
						fig.axes.get_xaxis().set_visible(UpperCAmelCase_							)
						fig.axes.get_yaxis().set_visible(UpperCAmelCase_							)
						plt.show()






def A__    (     ):
						_UpperCamelCase					:		int 				=   datetime.now()
						_UpperCamelCase					:		Tuple 				=   current_time.strftime('%H:%M:%S'							)
						return timestamp






'''simple docstring'''
__snake_case							      =     65521


def 			a      (			__a   )  ->	int:



					'''simple docstring'''






					UpperCamelCase__   :Tuple												= 1
					UpperCamelCase__   :Any												= 0
					for plain_chr in plain_text:
										UpperCamelCase__   :List[str]												= (a + ord(__a   )) % MOD_ADLER
										UpperCamelCase__   :Tuple												= (b + a) % MOD_ADLER
					return (b << 16) | a