Skip to content

Commit

Permalink
Merge pull request #894 from japm48/patch-1
Browse files Browse the repository at this point in the history
npy: fix parsing of complex dtypes
  • Loading branch information
LaurentMazare authored Sep 15, 2024
2 parents 9c498e6 + 5758c51 commit 1fd7075
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tensor/npy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}")))
}
Expand Down

0 comments on commit 1fd7075

Please sign in to comment.