Skip to content

Commit

Permalink
solved the problem that cannot run result() after load_model
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-nuclear committed Mar 17, 2024
1 parent 748a5df commit 1ee480f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gnnwr/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,8 @@ def load_model(self, path, use_dict=False, map_location=None):
else:
self._model = self._model.cpu()
self._out = self._out.cpu()
self._modelSavePath = os.path.dirname(path)
self._modelName = os.path.basename(path).split('/')[-1].split('.')[0]
self.__istrained = True


Expand Down

0 comments on commit 1ee480f

Please sign in to comment.