Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove bounds
Browse files Browse the repository at this point in the history
sauyon committed Mar 14, 2023
1 parent cb82296 commit 49dc7b6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/bentoml/_internal/marshal/dispatcher.py
Original file line number Diff line number Diff line change
@@ -351,9 +351,8 @@ async def controller(self):
now = time.time()
w0 = now - self._queue[0][0]
wn = now - self._queue[-1][0]
# bound optimizer values at 0; negative values may cause optimizer weirdness
a = max(self.optimizer.o_a, 0)
b = max(self.optimizer.o_b, 0)
a = self.optimizer.o_a
b = self.optimizer.o_b

latency_0 = w0 + a * n + b

0 comments on commit 49dc7b6

Please sign in to comment.