Skip to content

[C++ frontend] Code-reorg to have TORCH_ARG in its own header#11787

Closed
goldsborough wants to merge 1 commit intopytorch:masterfrom
goldsborough:torch-arg
Closed

[C++ frontend] Code-reorg to have TORCH_ARG in its own header#11787
goldsborough wants to merge 1 commit intopytorch:masterfrom
goldsborough:torch-arg

Conversation

@goldsborough
Copy link
Contributor

I noticed I was including torch/nn/pimpl.h in the optimizer library just to access TORCH_ARG, even though that file includes a lot of irrelevant code. Let's save some re-compilation time by refactoring this macro into a separate logical file. #small-wins

@ebetica @ezyang @apaszke

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

goldsborough is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

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