Call `PyArray_Check` only if NumPy is available (#66433) (#66629)
authorNikita Shulga <nshulga@fb.com>
Thu, 14 Oct 2021 16:46:41 +0000 (09:46 -0700)
committerGitHub <noreply@github.com>
Thu, 14 Oct 2021 16:46:41 +0000 (09:46 -0700)
commit4a514dd81e99732a5d2a21ac96195a2001fabb73
tree9f8326def8e38379535f3960f7bc646e14faaa27
parentc3ea586e32458ac8b18ae5f149446beb507b5076
Call `PyArray_Check` only if NumPy is available (#66433) (#66629)

Summary:
Fixes https://github.com/pytorch/pytorch/issues/66353

Fixes #{issue number}

Pull Request resolved: https://github.com/pytorch/pytorch/pull/66433

Reviewed By: seemethere, janeyx99

Differential Revision: D31548290

Pulled By: malfet

fbshipit-source-id: 3b094bc8195d0392338e0bdc6df2f39587b85bb3
.jenkins/pytorch/test.sh
torch/csrc/utils/tensor_new.cpp