Commit b37ddb8
committed
fix(pt): pass device and dtype in SeZMDeNSFittingNet.deserialize
safe_numpy_to_tensor takes `device` and `dtype` as required keyword-only
arguments, so SeZMDeNSFittingNet.deserialize raised TypeError. Rebuild the
state dict from the instantiated module's own state_dict, matching the
other sezm_nn deserialize implementations.
Signed-off-by: Anai-Guo <antai12232931@outlook.com>1 parent be1a636 commit b37ddb8
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
750 | 756 | | |
751 | 757 | | |
0 commit comments