Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make doctest resilient to changes in cupy reprs (#4945)
Depending on the cupy package in use (varies by version, architecture, etc) the exact name of the `ndarray` object may be `cupy.ndarray` or something like `cupy._core.core.ndarray` instead. Using `isinstance` avoids doctest failures due to those sorts of instabilities. Authors: - Vyas Ramasubramani (https://github.com/vyasr) Approvers: - William Hicks (https://github.com/wphicks) URL: #4945
- Loading branch information