Commit 5537ec4
committed
fix: explicitly exclude f8, f64 and i64 tensors from mmap
In these cases, tensor_storage.type is not the type from the file,
so the tensors could end up memory-mapped, incorrectly skipping
the necessary type conversion.1 parent 0e4ee04 commit 5537ec4
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
865 | 865 | | |
866 | 866 | | |
867 | 867 | | |
868 | | - | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
869 | 873 | | |
| 874 | + | |
870 | 875 | | |
871 | 876 | | |
872 | 877 | | |
| |||
0 commit comments