Skip to content

Conversation

zou3519
Copy link
Contributor

@zou3519 zou3519 commented Aug 6, 2020

Stack from ghstack:

I was about to use isBatched somewhere not in the files used to
implement vmap but then realized how silly that sounds due to
ambiguity. This PR renames some of the BatchedTensor APIs to make a bit
more sense to onlookers.

  • isBatched(Tensor) -> isBatchedTensor(Tensor)
  • unsafeGetBatched(Tensor) -> unsafeGetBatchedImpl(Tensor)
  • maybeGetBatched(Tensor) -> maybeGetBatchedImpl(Tensor)

Test Plan:

  • build Pytorch, run tests.

Differential Revision: D22985868

I was about to use `isBatched` somewhere not in the files used to
implement vmap but then realized how silly that sounds due to
ambiguity. This PR renames some of the BatchedTensor APIs to make a bit
more sense to onlookers.

- isBatched(Tensor) -> isBatchedTensor(Tensor)
- unsafeGetBatched(Tensor) -> unsafeGetBatchedImpl(Tensor)
- maybeGetBatched(Tensor) -> maybeGetBatchedImpl(Tensor)

Test Plan:
- build Pytorch, run tests.

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Aug 6, 2020
I was about to use `isBatched` somewhere not in the files used to
implement vmap but then realized how silly that sounds due to
ambiguity. This PR renames some of the BatchedTensor APIs to make a bit
more sense to onlookers.

- isBatched(Tensor) -> isBatchedTensor(Tensor)
- unsafeGetBatched(Tensor) -> unsafeGetBatchedImpl(Tensor)
- maybeGetBatched(Tensor) -> maybeGetBatchedImpl(Tensor)

Test Plan:
- build Pytorch, run tests.

ghstack-source-id: 1c61b57
Pull Request resolved: #42700
@zou3519 zou3519 requested review from cpuhrsch and ezyang August 6, 2020 21:10
@dr-ci
Copy link

dr-ci bot commented Aug 6, 2020

💊 CI failures summary and remediations

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


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


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 9 times.

I was about to use `isBatched` somewhere not in the files used to
implement vmap but then realized how silly that sounds due to
ambiguity. This PR renames some of the BatchedTensor APIs to make a bit
more sense to onlookers.

- isBatched(Tensor) -> isBatchedTensor(Tensor)
- unsafeGetBatched(Tensor) -> unsafeGetBatchedImpl(Tensor)
- maybeGetBatched(Tensor) -> maybeGetBatchedImpl(Tensor)

Test Plan:
- build Pytorch, run tests.

Differential Revision: [D22985868](https://our.internmc.facebook.com/intern/diff/D22985868)

[ghstack-poisoned]
I was about to use `isBatched` somewhere not in the files used to
implement vmap but then realized how silly that sounds due to
ambiguity. This PR renames some of the BatchedTensor APIs to make a bit
more sense to onlookers.

- isBatched(Tensor) -> isBatchedTensor(Tensor)
- unsafeGetBatched(Tensor) -> unsafeGetBatchedImpl(Tensor)
- maybeGetBatched(Tensor) -> maybeGetBatchedImpl(Tensor)

Test Plan:
- build Pytorch, run tests.

Differential Revision: [D22985868](https://our.internmc.facebook.com/intern/diff/D22985868)

[ghstack-poisoned]
I was about to use `isBatched` somewhere not in the files used to
implement vmap but then realized how silly that sounds due to
ambiguity. This PR renames some of the BatchedTensor APIs to make a bit
more sense to onlookers.

- isBatched(Tensor) -> isBatchedTensor(Tensor)
- unsafeGetBatched(Tensor) -> unsafeGetBatchedImpl(Tensor)
- maybeGetBatched(Tensor) -> maybeGetBatchedImpl(Tensor)

Test Plan:
- build Pytorch, run tests.

Differential Revision: [D22985868](https://our.internmc.facebook.com/intern/diff/D22985868)

[ghstack-poisoned]
zou3519 added a commit that referenced this pull request Aug 10, 2020
I was about to use `isBatched` somewhere not in the files used to
implement vmap but then realized how silly that sounds due to
ambiguity. This PR renames some of the BatchedTensor APIs to make a bit
more sense to onlookers.

- isBatched(Tensor) -> isBatchedTensor(Tensor)
- unsafeGetBatched(Tensor) -> unsafeGetBatchedImpl(Tensor)
- maybeGetBatched(Tensor) -> maybeGetBatchedImpl(Tensor)

Test Plan:
- build Pytorch, run tests.

ghstack-source-id: e1159d5
Pull Request resolved: #42700
@facebook-github-bot
Copy link
Contributor

@zou3519 merged this pull request in a255965.

@facebook-github-bot facebook-github-bot deleted the gh/zou3519/283/head branch August 14, 2020 14:16
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.

4 participants