Load the pickled arguments from the specified directory :param directory_path: The path to the directory from which the arguments should be loaded :return: the unpickled arguments
(directory_path: str)
| 178 | |
| 179 | |
| 180 | def load_args(directory_path: str) -> argparse.Namespace: |
| 181 | """ |
| 182 | Load the pickled arguments from the specified directory |
| 183 | :param directory_path: The path to the directory from which the arguments should be loaded |
| 184 | :return: the unpickled arguments |
| 185 | """ |
| 186 | with open(directory_path + '/args.pickle', 'rb') as f: |
| 187 | args = pickle.load(f) |
| 188 | return args |
| 189 | |
| 190 | def get_optimizer(tree, args: argparse.Namespace) -> torch.optim.Optimizer: |
| 191 | """ |