Skip to content

Commit

Permalink
Remove deprecated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kimdwkimdw committed Aug 29, 2023
1 parent 07f572e commit 0d343d7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_model_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ def test_with_input_name(protocol_and_port):

client = InferenceClient.create_with(MODEL_NAME, f"{TRITON_HOST}:{port}", protocol=protocol)

sample = np.random.rand(1, 100).astype(np.float32)
result = client({client.input_name_list[0]: sample})
print(f"Result: {np.isclose(result, sample).all()}")

sample = np.random.rand(100, 100).astype(np.float32)
result = client({client.default_model_spec.input_name[0]: sample})
result = client({client.default_model_spec.model_input[0].name: sample})

print(f"Result: {np.isclose(result, sample).all()}")

0 comments on commit 0d343d7

Please sign in to comment.