Skip to content

Commit

Permalink
fix(api): remove any from device pool
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Feb 11, 2023
1 parent 6b30ccc commit db06f4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/onnx_web/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ def any_first_cpu_last(a: DeviceParams, b: DeviceParams):
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)
Expand Down

0 comments on commit db06f4a

Please sign in to comment.