mirror of https://github.com/Jittor/Jittor
add jt.save
This commit is contained in:
parent
37d4ffca0b
commit
2d1df7336a
|
@ -476,6 +476,9 @@ def load(path):
|
|||
model_dict = safeunpickle(path)
|
||||
return model_dict
|
||||
|
||||
def save(params_dict, path):
|
||||
safepickle(params_dict, path)
|
||||
|
||||
def _uniq(x):
|
||||
a = set()
|
||||
b = []
|
||||
|
|
Loading…
Reference in New Issue