Skip to content

Commit

Permalink
Fix test bug introduced by windows port (triton-inference-server#2450)
Browse files Browse the repository at this point in the history
  • Loading branch information
deadeyegoodwin authored Jan 26, 2021
1 parent 41f5383 commit 53a45b6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions qa/L0_batcher/batcher_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@
if TEST_CUDA_SHARED_MEMORY:
import tritonclient.utils.cuda_shared_memory as cudashm

# Test with either GRPC of HTTP, but not both since when we check
# results we expect only one to run
USE_GRPC = (os.environ.get('USE_GRPC', 1) != "0")
USE_HTTP = (os.environ.get('USE_HTTP', 1) != "0")
if USE_GRPC and USE_HTTP:
USE_GRPC = False
assert USE_GRPC or USE_HTTP, "USE_GRPC or USE_HTTP must be non-zero"

BACKENDS = os.environ.get('BACKENDS',
Expand Down Expand Up @@ -341,6 +345,8 @@ def test_multi_batch_different_shape_allow_ragged(self):
args=(self, trial, 1, dtype, ([1, 16],),
([1, 16],)),
kwargs={
'use_grpc': USE_GRPC,
'use_http': USE_HTTP,
'use_http_json_tensors': False,
'use_streaming': False
}))
Expand All @@ -349,6 +355,8 @@ def test_multi_batch_different_shape_allow_ragged(self):
args=(self, trial, 1, dtype, ([1, 8],),
([1, 8],)),
kwargs={
'use_grpc': USE_GRPC,
'use_http': USE_HTTP,
'use_http_json_tensors': False,
'use_streaming': False
}))
Expand Down Expand Up @@ -1299,6 +1307,8 @@ def test_multi_batch_preserve_ordering(self):
args=(self, model_base, 1, dtype, shapes,
shapes),
kwargs={
'use_grpc': USE_GRPC,
'use_http': USE_HTTP,
'use_http_json_tensors':
False,
'use_streaming':
Expand Down

0 comments on commit 53a45b6

Please sign in to comment.