Skip to content

Commit

Permalink
Chore/tch 0.18.0 (#2542)
Browse files Browse the repository at this point in the history
* Update tch version

* Fix split ops with empty chunks
  • Loading branch information
laggui authored Nov 26, 2024
1 parent 369e148 commit a6a5c22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/burn-tch/src/ops/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ impl TchOps {
.tensor
.split(split_size as i64, dim as i64)
.into_iter()
.filter(|x| x.numel() > 0)
.map(TchTensor::new)
.collect()
}
Expand All @@ -435,6 +436,7 @@ impl TchOps {
.tensor
.split_with_sizes(split_sizes_i64, dim as i64)
.into_iter()
.filter(|x| x.numel() > 0)
.map(TchTensor::new)
.collect()
}
Expand Down

0 comments on commit a6a5c22

Please sign in to comment.