Merge pull request #516 from taddyb/master
Some checks failed
docs / Docs (push) Has been cancelled
Some checks failed
docs / Docs (push) Has been cancelled
Added support for saving checkpoints with CUDA device numbers
This commit is contained in:
commit
ecde4ec327
@ -534,6 +534,9 @@ class MultKAN(nn.Module):
|
||||
round = model.round,
|
||||
device = str(model.device)
|
||||
)
|
||||
|
||||
if dic["device"].isdigit():
|
||||
dic["device"] = int(model.device)
|
||||
|
||||
for i in range (model.depth):
|
||||
dic[f'symbolic.funs_name.{i}'] = model.symbolic_fun[i].funs_name
|
||||
|
Loading…
x
Reference in New Issue
Block a user