| 14 | |
| 15 | |
| 16 | class ArgsDict(dict): |
| 17 | |
| 18 | def __init__(self, **kwargs): |
| 19 | super(ArgsDict, self).__init__() |
| 20 | for key, value in kwargs.items(): |
| 21 | self[key] = value |
| 22 | self.__dict__ = self |
| 23 | |
| 24 | |
| 25 | def load_checkpoint(item_dict, model_dir, map_location=None, step=None): |
nothing calls this directly
no outgoing calls
no test coverage detected