Skip to content

Commit

Permalink
update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
kozistr committed Nov 17, 2024
1 parent 76b29f1 commit 015029b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
26 changes: 17 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions backends/ort/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ homepage.workspace = true
[dependencies]
anyhow = { workspace = true }
nohash-hasher = { workspace = true }
ndarray = "0.15.6"
ndarray = "0.16.1"
num_cpus = { workspace = true }
ort = { version = "2.0.0-rc.4", default-features = false, features = ["download-binaries", "half", "onednn", "ndarray"] }
ort = { version = "2.0.0-rc.8", default-features = false, features = ["download-binaries", "half", "onednn", "ndarray"] }
text-embeddings-backend-core = { path = "../core" }
tracing = { workspace = true }
thiserror = { workspace = true }
Expand Down
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 015029b

Please sign in to comment.