Skip to content

Fix //:module_test Conversion_MultiCUDA#79926

Closed
vors wants to merge 3 commits intopytorch:masterfrom
vors:sergei/fix-module-test
Closed

Fix //:module_test Conversion_MultiCUDA#79926
vors wants to merge 3 commits intopytorch:masterfrom
vors:sergei/fix-module-test

Conversation

@vors
Copy link
Copy Markdown
Contributor

@vors vors commented Jun 21, 2022

Fixes #79871

Make module.cpp tests respect change that was made in #78436 (no int types in autograd).

Note that there still a gap in Cmake test -- it's unclear why it didn't fail CI before.

As far as I can tell it should be executed, because it's included here https://github.com/pytorch/pytorch/blob/79507d2a9d06d4a3fb50eb21b30e08cc044776ce/test/cpp/api/CMakeLists.txt#L17:L17

@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Jun 21, 2022

🔗 Helpful links

✅ No Failures (0 Pending)

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

Expand to see more

💚 💚 Looks good so far! There are no failures yet. 💚 💚


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.

Copy link
Copy Markdown
Contributor

@soulitzer soulitzer left a comment

Choose a reason for hiding this comment

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

Thanks for the fix, test failures look real though

Comment thread test/cpp/api/module.cpp Outdated
}
}

TEST_F(ModuleTest, Conversion_MultiCUDA_NoGrad) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My guess as to why this test is failing is that you should rename this to Conversion_NoGrad_MultiCUDA (so that it ends with CUDA) or else this test will also be run for non-CUDA builds.

@ngimel ngimel added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Jun 21, 2022
Copy link
Copy Markdown
Contributor

@soulitzer soulitzer left a comment

Choose a reason for hiding this comment

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

Thanks!

@soulitzer
Copy link
Copy Markdown
Contributor

@pytorchbot merge -g

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@vors your PR has been successfully merged.

@github-actions
Copy link
Copy Markdown
Contributor

Hey @vors.
You've committed this PR, but it does not have both a 'release notes: ...' and 'topics: ...' label. Please add one of each to the PR. The 'release notes: ...' label should represent the part of PyTorch that this PR changes (fx, autograd, distributed, etc) and the 'topics: ...' label should represent the kind of PR it is (not user facing, new feature, bug fix, perf improvement, etc). The list of valid labels can be found here for the 'release notes: ...' and here for the 'topics: ...'.
For changes that are 'topic: not user facing' there is no need for a release notes label.

@soulitzer soulitzer added release notes: cpp release notes category topic: not user facing topic category labels Jun 21, 2022
facebook-github-bot pushed a commit that referenced this pull request Jun 22, 2022
Summary:
Fixes #79871

Make `module.cpp` tests respect change that was made in #78436 (no int types in autograd).

Note that there still a gap in Cmake test -- it's unclear why it didn't fail CI before.

As far as I can tell it should be executed, because it's included here https://github.com/pytorch/pytorch/blob/79507d2a9d06d4a3fb50eb21b30e08cc044776ce/test/cpp/api/CMakeLists.txt#L17:L17

Pull Request resolved: #79926
Approved by: https://github.com/soulitzer

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/a8b098859688a3f1993821eecc036be973a15605

Reviewed By: atalman

Differential Revision: D37333256

Pulled By: atalman

fbshipit-source-id: 0b914fbcc5da72fbadf0f3c2f6b6af1a198cf6fb
miladm pushed a commit to miladm/pytorch that referenced this pull request Jun 27, 2022
Fixes pytorch#79871

Make `module.cpp` tests respect change that was made in pytorch#78436 (no int types in autograd).

Note that there still a gap in Cmake test -- it's unclear why it didn't fail CI before.

As far as I can tell it should be executed, because it's included here https://github.com/pytorch/pytorch/blob/79507d2a9d06d4a3fb50eb21b30e08cc044776ce/test/cpp/api/CMakeLists.txt#L17:L17

Pull Request resolved: pytorch#79926
Approved by: https://github.com/soulitzer
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 25, 2026
Fixes pytorch#79871

Make `module.cpp` tests respect change that was made in pytorch#78436 (no int types in autograd).

Note that there still a gap in Cmake test -- it's unclear why it didn't fail CI before.

As far as I can tell it should be executed, because it's included here https://github.com/pytorch/pytorch/blob/e4a7ecafa61d9d9a7ac1f154264d6f5ccffe12bb/test/cpp/api/CMakeLists.txt#L17:L17

Pull Request resolved: pytorch#79926
Approved by: https://github.com/soulitzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed Merged open source release notes: cpp release notes category topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bazel] cpp fronted nn.linear->to(int) throws exception, but Cmake tests pass

6 participants