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

migrating deprecated calls without abc module for containers #11515

Closed
wants to merge 1 commit into from

Conversation

jeffreyksmithjr
Copy link
Contributor

Implementing #10540.

@apaszke
Copy link
Contributor

apaszke commented Sep 11, 2018

The reason why we used those is that .abc modules are unavailable in Python 2. We should probably add Iterable, Mapping and whatever else we use to torch/_six.py

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.

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

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.

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

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.

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

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.

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

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.

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

@zdevito zdevito removed the oncall: jit Add this issue/PR to JIT oncall triage queue label Sep 12, 2018
@ssnl
Copy link
Collaborator

ssnl commented Sep 12, 2018

@pytorchbot retest this please

Copy link
Collaborator

@ssnl ssnl left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@ezyang
Copy link
Contributor

ezyang commented Sep 12, 2018

@pytorchbot retest this please

@jeffreyksmithjr
Copy link
Contributor Author

The Circle tests all flaked (but I think that's a more global issue). The ROCM tests failed, which is also a known issue.

With @ssnl 's LGTM do we call this mergeable or are we going to try to get any of those failed builds to pass?

@apaszke
Copy link
Contributor

apaszke commented Sep 12, 2018

@jeffreyksmithjr one of the builds has been broken for at least a day, another one has timed out, but it's unlikely that it failed. CircleCI is experimental, so you can ignore any failures for now. Go ahead and merge this

@apaszke
Copy link
Contributor

apaszke commented Sep 12, 2018

(Although it might be good to get a review of the C2 bits from someone working on C2)

@jeffreyksmithjr
Copy link
Contributor Author

Makes sense. There is some tiny amount of Caffe2 impact.

Could any Caffe2 experts review this PR?

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.

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

Copy link
Contributor

@Yangqing Yangqing left a comment

Choose a reason for hiding this comment

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

Looks great - are we planning to unify _six and six?

@ssnl
Copy link
Collaborator

ssnl commented Sep 12, 2018

@Yangqing If we do, it could be as simple as from six import * in _six.py :)

@jeffreyksmithjr
Copy link
Contributor Author

Paraphrasing what @apaszke told me, the reason for _six was to not pick up the whole dependency on six as a runtime dependency.

Clearly, the current approach does create a bit of obvious redundancy, though.

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.

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

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.

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

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.

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

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.

jeffreyksmithjr 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants