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

Check warning msg in second captured warning. #8069

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhuhaozhe
Copy link

Pytorch will run this in CI and in PR pytorch/pytorch#125888.
We are try to design some new APIs and this ut will trigger a warning since we are using old APIs here.

I do not have an xla at hand and I cannot reproduce it with my cpu device. From my understanding, the warning msg to be checked here should be able to be checked not only on the first warning.

      # there should be 18 paramters + 1 input
      self.assertGreater(len(w), 15)

I wander shall we check it at the second warning msg. And no matter whether pytorch/pytorch#125888 is merged, this change does not impact the functionality of this UT?

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.

1 participant