Skip to content

Conversation

@asuhan
Copy link
Contributor

@asuhan asuhan commented Jun 6, 2019

No description provided.

@pytorchbot pytorchbot added the module: internals Related to internal abstractions in c10 and ATen label Jun 6, 2019
@ailzhang ailzhang requested review from ailzhang and smessmer June 6, 2019 01:21
Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Maybe we could use C10_UNUSED instead?

#ifdef _MSC_VER
#define C10_UNUSED
#else
#define C10_UNUSED __attribute__((__unused__))
#endif //_MSC_VER

This is by the way how we do it in Dispatch.h

const auto& UNDERLYING_TYPE C10_UNUSED = underlying_enum; \
using scalar_t C10_UNUSED = type; \
using underlying_t C10_UNUSED = underlying_type; \

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.

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

zdevito pushed a commit to zdevito/ATen that referenced this pull request Jun 7, 2019
Summary: Pull Request resolved: pytorch/pytorch#21444

Differential Revision: D15701786

Pulled By: ezyang

fbshipit-source-id: 8348e08f9b8f3047b30736f9a944786ab84e6b68
@facebook-github-bot
Copy link
Contributor

@ezyang merged this pull request in abc0d3e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: internals Related to internal abstractions in c10 and ATen open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants