Skip to content

Commit

Permalink
fix(api): define tile size for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jul 4, 2023
1 parent 99a073a commit 7c1b85f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/onnx_web/chain/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ def __call__(
]
)

tile = stage_params.tile_size
if stage_pipe.max_tile > 0:
tile = min(stage_pipe.max_tile, stage_params.tile_size)

if must_tile:
stage_outputs = []
for source in stage_sources:
tile = stage_params.tile_size
if stage_pipe.max_tile > 0:
tile = min(stage_pipe.max_tile, stage_params.tile_size)

logger.info(
"image larger than tile size of %s, tiling stage",
tile,
Expand Down

0 comments on commit 7c1b85f

Please sign in to comment.