mirror of
https://github.com/immich-app/immich.git
synced 2025-05-19 21:01:24 +02:00
fix: test_sets_default_sess_options fails if compiling with globally enabled cuda (#17516)
Coming from nixos, this test fails when cuda is enabled. https://github.com/NixOS/nixpkgs/pull/382896 Solution as proposed by @mertalev
This commit is contained in:
parent
7fcab4b251
commit
9fd2c5220d
1 changed files with 2 additions and 2 deletions
|
@ -278,8 +278,8 @@ class TestOrtSession:
|
|||
|
||||
assert session.provider_options == []
|
||||
|
||||
def test_sets_default_sess_options(self) -> None:
|
||||
session = OrtSession("ViT-B-32__openai")
|
||||
def test_sets_default_sess_options_if_cpu(self) -> None:
|
||||
session = OrtSession("ViT-B-32__openai", providers=["CPUExecutionProvider"])
|
||||
|
||||
assert session.sess_options.execution_mode == ort.ExecutionMode.ORT_SEQUENTIAL
|
||||
assert session.sess_options.inter_op_num_threads == 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue