Skip to content
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

Fix the memory type of output tensor when warm-up is enabled #202

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

krishung5
Copy link
Contributor

@krishung5 krishung5 commented Jul 6, 2023

The issue was that the runtime inference would always return a CPU tensor when warm-up is enabled. This occurred because we recorded the output memory type using the first request. Since the warm-up is the first request to the model and always allocates CPU memory for the output, it incorrectly recorded the memory type for the output.
This PR fixes the logic so that the warm-up inference does not affect the actual memory type of the output tensor.

Testing: triton-inference-server/server#6033

@krishung5
Copy link
Contributor Author

Rebased.

@krishung5 krishung5 merged commit eba4da5 into main Jul 7, 2023
@krishung5 krishung5 deleted the krish-onnx branch July 7, 2023 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants