-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add test for shape validation #7195
Conversation
b492572
to
005c650
Compare
RET=1 | ||
fi | ||
set -e | ||
|
||
kill $SERVER_PID | ||
wait $SERVER_PID | ||
|
||
pip install torch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why pytorch? Should be more flexible using Python backend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is taken from this reproducer
FIXED_LAST_DIM = 8 | ||
|
||
|
||
def repo_dir(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like the idea of moving all logic within Python, can this be common utils?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree but will push back for now. This function needs to be generic then we can refactor other tests.
# server.terminate() | ||
# assert np.allclose( | ||
# bob_result.as_numpy("OUTPUT0"), input_data_2 | ||
# ), "Bob's result should be the same as input" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uncomment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove? I think anything past the assert is not needed
|
||
|
||
@pytest.mark.asyncio | ||
async def test_shape_overlapped(repo_dir: str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add summary on how the test operates?
Tests: triton-inference-server/core#350