def load_file(self, filename):
    'Loads a module dictionary from file.\n        \n        Args:\n            filename (str): name of saved module dictionary\n        '
    if (not os.path.isabs(filename)):
        filename = os.path.join(self.checkpoint_dir, filename)
    if os.path.exists(filename):
        print(filename)
        print('=> Loading checkpoint from local file...')
        state_dict = torch.load(filename)
        scalars = self.parse_state_dict(state_dict)
        return scalars
    else:
        raise FileNotFoundError
Loads a module dictionary from file.

Args:
    filename (str): name of saved module dictionary
def load_file(self, filename):
    'Loads a module dictionary from file.\n        \n        Args:\n            filename (str): name of saved module dictionary\n        '
    if (not os.path.isabs(filename)):
        filename = os.path.join(self.checkpoint_dir, filename)
    if os.path.exists(filename):
        print(filename)
        print('=> Loading checkpoint from local file...')
        state_dict = torch.load(filename)
        scalars = self.parse_state_dict(state_dict)
        return scalars
    else:
        raise FileNotFoundError