Skip to content

Commit

Permalink
update weight_path
Browse files Browse the repository at this point in the history
  • Loading branch information
EdisonLeeeee committed Oct 21, 2020
1 parent dd2351e commit 72cd50d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphgallery/nn/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def __init__(self, *graph, device="cpu:0", seed=None, name=None, **kwargs):
# log path
# add random integer to avoid duplication
_id = np.random.RandomState(None).randint(100)
self.weight_path = osp.join(osp.expanduser(osp.normpath("/tmp/weight")),
f"{self.name}_{_id}_weights{POSTFIX}")
self.weight_path = osp.join(osp.expanduser(osp.normpath("./")),
f"{self.name}_weights_id_{_id}{POSTFIX}")

def save(self, path=None, as_model=False, overwrite=True, save_format=None, **kwargs):

Expand Down

0 comments on commit 72cd50d

Please sign in to comment.