Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/thunlp/OpenKE
/ save_checkpoint
Method
save_checkpoint
openke/module/BaseModule.py:20–21 ·
view source on GitHub ↗
(self, path)
Source
from the content-addressed store, hash-verified
18
self.eval()
19
20
def
save_checkpoint(self, path):
21
torch.save(self.state_dict(), path)
22
23
def
load_parameters(self, path):
24
f = open(path,
"r"
)
Callers
14
run
Method · 0.80
train_analogy_WN18RR.py
File · 0.80
train_transe_WN18_adv_sigmoidloss.py
File · 0.80
train_simple_WN18RR.py
File · 0.80
train_hole_WN18RR.py
File · 0.80
train_transr_FB15K237.py
File · 0.80
train_rotate_WN18RR_adv.py
File · 0.80
train_rescal_FB15K237.py
File · 0.80
train_transh_FB15K237.py
File · 0.80
train_distmult_WN18RR.py
File · 0.80
train_distmult_WN18RR_adv.py
File · 0.80
train_complex_WN18RR.py
File · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected