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

add usage logging to prototype dispatchers / kernels #7012

Merged
merged 1 commit into from
Dec 6, 2022

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Dec 6, 2022

Normally, logging is added to the dispatcher like transforms v1 does. Two kernels, clamp_bounding_box and convert_format_bounding_box, don't have a dispatcher, so I added the logging directly to them.

This PR also adds tests that enforces logging on dispatchers and the option to enforce it for kernels.

cc @vfdev-5 @datumbox @bjuncek

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

@pmeier pmeier merged commit 511924c into pytorch:main Dec 6, 2022
@pmeier pmeier deleted the kernel-logging branch December 6, 2022 13:53
facebook-github-bot pushed a commit that referenced this pull request Dec 12, 2022
Reviewed By: datumbox

Differential Revision: D41836890

fbshipit-source-id: bc3cf1b53fba33beaac82fa5ba5f289b8839e84d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants