mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-01 02:17:43 +09: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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user