Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to torch 2.4.1 and modify link config for static libtorch #13

Closed
wants to merge 55 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
d7ed2c0
Add support for `Dict[str, Any]`
VivekPanyam Sep 24, 2023
ce27216
Fix minor typos in README.md
bionicles Dec 5, 2023
a0b8580
Merge pull request #826 from bionicles/patch-1
LaurentMazare Dec 7, 2023
2dcdac6
Document file formats in VarStore::save and load methods
necrashter Dec 19, 2023
e9ec104
add tch-rs fork implement result indexing
CallMeMSL Jan 2, 2024
f63558d
remove unwraps
CallMeMSL Jan 2, 2024
bf3afe0
fmt
CallMeMSL Jan 2, 2024
9ffb2ca
Merge pull request #829 from necrashter/save-load-docs
LaurentMazare Jan 6, 2024
a5f6ea8
Merge pull request #801 from VivekPanyam/fix_dict_bug
LaurentMazare Jan 6, 2024
12b97a6
Fix rustfmt + minor tweaks.
LaurentMazare Jan 6, 2024
653520d
Merge remote-tracking branch 'origin/main' into index_result
LaurentMazare Jan 6, 2024
7f41f93
Clippy fix.
LaurentMazare Jan 6, 2024
ca92737
Merge pull request #835 from LaurentMazare/index_result
LaurentMazare Jan 6, 2024
afd5cc6
Add the declarations file for PyTorch 2.2.0.
LaurentMazare Jan 18, 2024
2a70ecf
Merge pull request #839 from LaurentMazare/decl-2.2.0
LaurentMazare Jan 18, 2024
7b9ef7e
Update for torch 2.2.0
LaurentMazare Jan 18, 2024
cc28ce7
Update more crates.
LaurentMazare Jan 18, 2024
852b447
Fix the build names.
LaurentMazare Jan 30, 2024
2626465
Merge pull request #840 from LaurentMazare/torch-2.2.0
LaurentMazare Jan 30, 2024
4fc5709
Fixes for clippy 1.76.
LaurentMazare Feb 8, 2024
4cdee63
Merge pull request #847 from LaurentMazare/clippy-1.76
LaurentMazare Feb 8, 2024
d068b18
Temporary Fix for GLOG
Jark5455 Mar 4, 2024
27c184f
Add the declarations file for PyTorch 2.3.
LaurentMazare Apr 14, 2024
420e41d
Merge pull request #863 from LaurentMazare/decl-2.3
LaurentMazare Apr 14, 2024
a4c1432
Update for PyTorch 2.3.
LaurentMazare Apr 14, 2024
dd74e82
Update more packages.
LaurentMazare Apr 14, 2024
1bf6d7e
Update for pyo3 0.21.
Apr 18, 2024
3e86831
Merge pull request #868 from LaurentMazare/pyo3-0.21
LaurentMazare Apr 18, 2024
269ff36
Merge branch 'main' into torch-2.3.0
LaurentMazare Apr 24, 2024
a353eac
Merge pull request #864 from LaurentMazare/torch-2.3.0
LaurentMazare Apr 24, 2024
37d90c3
Merge pull request #852 from Jark5455/main
LaurentMazare Apr 27, 2024
f4a4eef
Clippy fixes for 1.78.
LaurentMazare May 3, 2024
7e3a4bf
Another clippy fix.
LaurentMazare May 3, 2024
a90854b
Merge pull request #869 from LaurentMazare/clippy-fixes
LaurentMazare May 3, 2024
d6db322
Add the PyTorch 2.4 declarations file.
LaurentMazare Jul 15, 2024
e26845d
Bump the versions.
LaurentMazare Jul 15, 2024
16c4bb6
Update the bindings.
LaurentMazare Jul 15, 2024
c326289
Couple fixes.
LaurentMazare Jul 15, 2024
3df9ece
Get the crate to compile and the tests to pass.
LaurentMazare Jul 15, 2024
0d6c6b2
Clippy fixes.
LaurentMazare Jul 15, 2024
a4e9362
Merge pull request #878 from LaurentMazare/2.4
LaurentMazare Jul 24, 2024
8647136
Rename .cargo.config.
LaurentMazare Sep 6, 2024
69db596
add method to set default kind of new variables in VarStore
jquesnelle Sep 11, 2024
51b966b
Use none as a default for optional tensors rather than an empty tensor.
LaurentMazare Sep 11, 2024
c2ad78e
Clippy fixes.
LaurentMazare Sep 11, 2024
10ef423
Merge pull request #892 from LaurentMazare/clippy-fixes
LaurentMazare Sep 11, 2024
2687871
Merge pull request #891 from LaurentMazare/opt-tensor-fix
LaurentMazare Sep 12, 2024
21dfa55
Apply rustfmt.
LaurentMazare Sep 12, 2024
40ec5f7
Fix the tests.
LaurentMazare Sep 12, 2024
9c498e6
Merge pull request #893 from jquesnelle/var-store-kind
LaurentMazare Sep 12, 2024
5758c51
npy: fix parsing of complex dtypes
japm48 Sep 14, 2024
1fd7075
Merge pull request #894 from japm48/patch-1
LaurentMazare Sep 15, 2024
7830b61
Merge remote-tracking branch 'upstream/main' into static_libtorch
juhofuriosa Sep 21, 2024
3a592d1
Fix clippy error
juhofuriosa Sep 5, 2024
9f1aa57
Adjust libtorch static library list and option
juhofuriosa Sep 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
npy: fix parsing of complex dtypes
japm48 committed Sep 15, 2024
commit 5758c51679aac1f73bcec654f0ea5c6d68afd3c3
4 changes: 2 additions & 2 deletions src/tensor/npy.rs
Original file line number Diff line number Diff line change
@@ -140,8 +140,8 @@ impl Header {
"b" | "i1" => Kind::Int8,
"B" | "u1" => Kind::Uint8,
"?" | "b1" => Kind::Bool,
"F" | "F4" => Kind::ComplexFloat,
"D" | "F8" => Kind::ComplexDouble,
"F" | "F4" | "c8" => Kind::ComplexFloat,
"D" | "F8" | "c16" => Kind::ComplexDouble,
descr => {
return Err(TchError::FileFormat(format!("unrecognized descr {descr}")))
}