Skip to content

USE CAFFE_ENFORCE_EQ_WITH_CALLER in TensorImpl.#11721

Closed
gchanan wants to merge 1 commit intopytorch:masterfrom
gchanan:caffe_enforce
Closed

USE CAFFE_ENFORCE_EQ_WITH_CALLER in TensorImpl.#11721
gchanan wants to merge 1 commit intopytorch:masterfrom
gchanan:caffe_enforce

Conversation

@gchanan
Copy link
Contributor

@gchanan gchanan commented Sep 14, 2018

The file that declares CAFFE_ENFORCE_EQ_WITH_CALLER pollutes the global namespace with things like MAX, MIN, CHECK, so I renamed these in places where this is a problem.

Long term we should probably clean up the file.

The file that declares CAFFE_ENFORCE_EQ_WITH_CALLER pollutes the global namespace with things like MAX, MIN, CHECK, so I renamed these in places where this is a problem.

Long term we should probably clean up the file.
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.

gchanan has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

ezyang added a commit to ezyang/pytorch that referenced this pull request Sep 18, 2018
Summary:
Pull Request resolved: pytorch#11805

Some of our headers in Caffe2 pollute the macro namespace with things like MAX,
MIN, CHECK, so I renamed these in places where this is a problem.

This patch courtesy of gchanan, extracted out of pytorch#11721

Differential Revision: D9917757

fbshipit-source-id: 174443e3d6eb10e421d59535e2ecad3eaca99c84
facebook-github-bot pushed a commit that referenced this pull request Sep 18, 2018
Summary:
Pull Request resolved: #11805

Some of our headers in Caffe2 pollute the macro namespace with things like MAX,
MIN, CHECK, so I renamed these in places where this is a problem.

This patch courtesy of gchanan, extracted out of #11721

Reviewed By: Yangqing

Differential Revision: D9917757

fbshipit-source-id: 17fc692ca04b208dcb8ae00731ed60e393284f7c
@ssnl
Copy link
Collaborator

ssnl commented Sep 25, 2018

@gchanan do we still want this?

@gchanan gchanan closed this Oct 8, 2018
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.

4 participants