Commit 20d5f3c
authored
Fix Windows force deserialization by writing ofstream in binary mode (#166)
* remove the path from the force.pt files to test if that's the erro cause
* flush the ofstream before reading it in torch
* Revert "remove the path from the force.pt files to test if that's the erro cause"
This reverts commit 23206b5.
* close the file handler
* write to file in binary mode. might be required for line breaks on Windows1 parent d1861af commit 20d5f3c
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| |||
0 commit comments