



"""simple docstring"""







class       UpperCamelCase__   :




      """simple docstring"""




      def __init__(      self				:      Union[str, Any]    ,			SCREAMING_SNAKE_CASE_				:      Optional[int]       ):
        # we need a list not a string, so do something to change the type
        lowerCAmelCase_   :				List[Any]								= arr.split(','       )





      def      SCREAMING_SNAKE_CASE__ (      self				:      List[Any]       ):
        lowerCAmelCase_   :				Union[str, Any]								= [int(self.array[0]       )] * len(self.array       )
        lowerCAmelCase_   :				List[Any]								= [int(self.array[0]       )] * len(self.array       )
        for i in range(1    ,			len(self.array       )       ):
          lowerCAmelCase_   :				Union[str, Any]								= max(
              int(self.array[i]       ) + sum_value[i - 1]    ,			int(self.array[i]       )       )
          lowerCAmelCase_   :				str								= max(sum_value[i]    ,			rear[i - 1]       )
        return rear[len(self.array       ) - 1]


if __name__ == "__main__":
     lowercase__		:				List[Any]          =	input("""please input some numbers:""")
     lowercase__		:				Union[str, Any]          =	SubArray(whole_array)
     lowercase__		:				str          =	array.solve_sub_array()
     print(("""the results is:""", re))










"""simple docstring"""







from typing import Union

import fire
import torch
from tqdm import tqdm

def 				UpperCamelCase_    (    lowerCAmelCase__      :				str    ,   lowerCAmelCase__      :				str = "cpu"    ,   lowerCAmelCase__      :				Union[str, None] = None						)						->   None:

  """simple docstring"""




  lowerCAmelCase_   :				Any								= torch.load(lowerCAmelCase__    ,   map_location=lowerCAmelCase__						)
  for k, v in tqdm(state_dict.items()						):
    if not isinstance(lowerCAmelCase__    ,   torch.Tensor						):
      raise TypeError('FP16 conversion only works on paths that are saved state dicts, like pytorch_model.bin'						)
    lowerCAmelCase_   :				str								= v.half()
  if save_path is None:  # overwrite src_path
    lowerCAmelCase_   :				Dict								= src_path
  torch.save(lowerCAmelCase__    ,   lowerCAmelCase__						)


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





