From db06f4a9c3f5063e6828615d532ad4485eb59c73 Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Sat, 11 Feb 2023 16:16:40 -0600 Subject: [PATCH] fix(api): remove any from device pool --- api/onnx_web/serve.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/onnx_web/serve.py b/api/onnx_web/serve.py index c82d4694..eb157293 100644 --- a/api/onnx_web/serve.py +++ b/api/onnx_web/serve.py @@ -400,7 +400,8 @@ load_platforms(context) app = Flask(__name__) CORS(app, origins=context.cors_origin) -executor = DevicePoolExecutor(available_platforms) +# any is a fake device, should not be in the pool +executor = DevicePoolExecutor([p for p in available_platforms if p.device != "any"]) if is_debug(): gc.set_debug(gc.DEBUG_STATS)