Skip to content

Commit 4daae13

Browse files
committed
feat: Don't enable coreml on bencher by default
1 parent 2f07923 commit 4daae13

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

flake.nix

+1
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
rust-bindgen
221221
google-cloud-sdk
222222
rustToolchainWithRustAnalyzer
223+
mnn
223224
]
224225
++ (
225226
lib.optionals pkgs.stdenv.isLinux [

mnn-sync/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ impl SessionHandle {
390390
let f = f;
391391
let (tx, rx) = oneshot::channel();
392392
let wrapped_f = move |sr: &mut SessionRunner| -> Result<()> {
393-
let result = f(sr)?;
393+
let result = f(sr);
394394
tx.send(result)
395395
.change_context(ErrorKind::SyncError)
396396
.attach_printable("Internal Error: Failed to send result via oneshot channel")?;

tools/bencher/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = "2021"
55
license.workspace = true
66

77
[target."aarch64-apple-darwin".dependencies]
8-
mnn = { workspace = true, features = ["opencl", "serde", "metal", "coreml"] }
8+
mnn = { workspace = true, features = ["opencl", "serde", "metal"] }
99

1010
[target."x86_64-apple-darwin".dependencies]
1111
mnn = { workspace = true, features = ["opencl", "serde"] }

0 commit comments

Comments
 (0)