Skip to content

Commit

Permalink
rm duplicated check
Browse files Browse the repository at this point in the history
  • Loading branch information
swfsql committed Jun 20, 2024
1 parent 59f0e70 commit 1987a3b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/hl_ops/movement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ impl<S: Shape> GraphTensor<S> {
break 'expand;
}

if !new_dims.is_empty() && new_dims != src_dims {
for (i, dim) in Ax::as_array().into_iter().map(|i| (i, new_dims[i])) {
self.shape.expand(i, dim);
}
for (i, dim) in Ax::as_array().into_iter().map(|i| (i, new_dims[i])) {
self.shape.expand(i, dim);
}
};

Expand Down

0 comments on commit 1987a3b

Please sign in to comment.