Skip to content

Conversation

gchanan
Copy link
Contributor

@gchanan gchanan commented Dec 19, 2019

Stack from ghstack:

The PR that fixed this, #24947, didn't add a test.

Fixes: #31443

Differential Revision: D19170020

The PR that fixed this, #24947, didn't add a test.

Fixes: #31443

[ghstack-poisoned]
gchanan added a commit that referenced this pull request Dec 19, 2019
The PR that fixed this, #24947, didn't add a test.

Fixes: #31443

ghstack-source-id: ad6237c
Pull Request resolved: #31451
@gchanan gchanan requested a review from zou3519 December 19, 2019 00:14
@kostmo
Copy link
Member

kostmo commented Dec 19, 2019

💊 CircleCI build failures summary and remediations

As of commit 92b8f5e:

Waiting for builds of commit 92b8f5e


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.

This comment has been revised 1 time.

@unittest.skipIf(not TEST_CUDA, "No cuda")
@unittest.skipIf(not TEST_NUMBA_CUDA, "No numba.cuda")
def test_from_cuda_array_interface_inferred_strides(self):
"""torch.as_tensor(numba_ary) should have correct inferred (contiguous) strides"""
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: I think numba_ary read better as numba_array; I haven't seen too many usages of "ary" to mean array in the past

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree -- I was just following the style of the rest of the test here (which seems useful, since this test should just be combined with others once we make the test less strict).

"""torch.as_tensor(numba_ary) should have correct inferred (contiguous) strides"""
# This could, in theory, be combined with test_from_cuda_array_interface but that test
# is overly strict: it checks that the exported protocols are exactly the same, which
# cannot handle differening exported protocol versions.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: s/differening/differing

The PR that fixed this, #24947, didn't add a test.

Fixes: #31443

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

[ghstack-poisoned]
gchanan added a commit that referenced this pull request Dec 20, 2019
The PR that fixed this, #24947, didn't add a test.

Fixes: #31443

ghstack-source-id: 2d59503
Pull Request resolved: #31451
@facebook-github-bot
Copy link
Contributor

@gchanan merged this pull request in b38901a.

@facebook-github-bot facebook-github-bot deleted the gh/gchanan/177/head branch December 24, 2019 15:16
wuhuikx pushed a commit to wuhuikx/pytorch that referenced this pull request Jan 30, 2020
)

Summary:
Pull Request resolved: pytorch#31451

The PR that fixed this, pytorch#24947, didn't add a test.

Fixes: pytorch#31443

Test Plan: Imported from OSS

Differential Revision: D19170020

Pulled By: gchanan

fbshipit-source-id: bdbf09989ac8a61b1b70bb1ddee103caa8ef435b
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.

5 participants