"""simple docstring"""



def 	_lowerCamelCase(	a = 1_0_0_0				):
       __a       =    -1
       __a       =    0
       for a in range(1   ,    n // 3				):
              # Solving the two equations a**2+b**2=c**2 and a+b+c=N eliminating c
              __a       =    (n * n - 2 * a * n) // (2 * n - 2 * a)
              __a       =    n - a - b
              if c * c == (a * a + b * b):
                     __a       =    a * b * c
                     if candidate >= product:
                            __a       =    candidate
       return product


if __name__ == "__main__":
   print(F'''{solution() = }''')

"""simple docstring"""



from typing import Union

import fire
import torch
from tqdm import tqdm



def 	_lowerCamelCase(	a   ,    a = "cpu"   ,    a = None				):
       __a       =    torch.load(a   ,    map_location=a				)
       for k, v in tqdm(state_dict.items()				):
              if not isinstance(a   ,    torch.Tensor				):
                     raise TypeError("FP16 conversion only works on paths that are saved state dicts, like pytorch_model.bin"				)
              __a       =    v.half()
       if save_path is None:  # overwrite src_path
              __a       =    src_path
       torch.save(a   ,    a				)


if __name__ == "__main__":
   fire.Fire(convert)
