Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Tencent/NeuralNLP-NeuralClassifier
/ save_checkpoint
Function
save_checkpoint
train.py:197–199 ·
view source on GitHub ↗
(state, file_prefix)
Source
from the content-addressed store, hash-verified
195
196
197
def
save_checkpoint(state, file_prefix):
198
file_name = file_prefix +
"_"
+ str(state[
"epoch"
])
199
torch.save(state, file_name)
200
201
202
def
train(conf):
Callers
1
train
Function · 0.85
Calls
1
save
Method · 0.80
Tested by
no test coverage detected