Skip to content

Commit

Permalink
fix(api): remove still-random seed from stage kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Sep 24, 2023
1 parent 5ffe8b2 commit a79d835
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/onnx_web/server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ def chain(server: ServerContext, pool: DevicePoolExecutor):
if pop_key in kwargs:
kwargs.pop(pop_key)

if "seed" in kwargs and kwargs["seed"] == -1:
kwargs.pop("seed")

# replace kwargs with parsed versions
kwargs["params"] = params
kwargs["size"] = size
Expand Down

0 comments on commit a79d835

Please sign in to comment.