Skip to content

Conversation

kazhang
Copy link
Contributor

@kazhang kazhang commented Dec 8, 2021

Change the API to

def _log_api_usage_once(module: str, name: str) -> None:

to be consistent between modules and functions.
partially-close: #5052

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Dec 8, 2021

💊 CI failures summary and remediations

As of commit bf71e7c (more details on the Dr. CI page):


  • 1/1 failures introduced in this PR

1 failure not recognized by patterns:

Job Step Action
CircleCI cmake_linux_gpu Build torchvision C++ distribution and test 🔁 rerun

1 job timed out:

  • cmake_linux_gpu

This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@kazhang kazhang requested a review from datumbox December 8, 2021 23:49
@kazhang kazhang marked this pull request as ready for review December 9, 2021 00:17
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!

@NicolasHug @fmassa Any concerns with the change?

Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

Thanks @kazhang

@kazhang kazhang merged commit d716c42 into pytorch:main Dec 9, 2021
@kazhang kazhang deleted the usage-log-api branch December 9, 2021 18:35
@github-actions
Copy link

github-actions bot commented Dec 9, 2021

Hey @kazhang!

You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

facebook-github-bot pushed a commit that referenced this pull request Dec 21, 2021
Summary: * revamp log api usage method

Reviewed By: prabhat00155

Differential Revision: D33253461

fbshipit-source-id: bcec6d0a270b9647171419a4d9a2d23918d98d23
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.

API usage logging within TorchVision
4 participants