Skip to content

Commit

Permalink
fix: tensorrt traversal paths
Browse files Browse the repository at this point in the history
  • Loading branch information
numb3r3 committed Jun 10, 2022
1 parent 7f37920 commit eca7708
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/clip_server/executors/clip_tensorrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def __init__(
device: str = 'cuda',
num_worker_preprocess: int = 4,
minibatch_size: int = 32,
traversal_paths: str = '@r',
**kwargs,
):
super().__init__(**kwargs)
Expand All @@ -28,6 +29,8 @@ def __init__(
self._pool = ThreadPool(processes=num_worker_preprocess)

self._minibatch_size = minibatch_size
self._traversal_paths = traversal_paths

self._device = device

import torch
Expand Down

0 comments on commit eca7708

Please sign in to comment.