Skip to content

Commit

Permalink
refactor: deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
kozistr committed Nov 17, 2024
1 parent 8f361db commit 2fbf552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/ort/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl Backend for OrtBackend {
if has_raw_requests {
// Reshape outputs
let s = outputs.shape().to_vec();
let outputs = outputs.into_shape((s[0] * s[1], s[2])).e()?;
let outputs = outputs.into_shape_with_order((s[0] * s[1], s[2])).e()?;

// We need to remove the padding tokens only if batch_size > 1 and there are some
// member of the batch that require pooling
Expand Down

0 comments on commit 2fbf552

Please sign in to comment.