-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix import for broadcast_to. (#4168)
* Fix import for broadcast_to. The import fails when it's not imported from numpy. * Use only np.broadcast_to. As mentioned in comments, the fallback version of broadcast_to has been removed. * Use np.broadcast_to instead of chunk.broadcast_to These were always using NumPy's `broadcast_to` or our compat version of it. So changing them to use NumPy directly should be fine. * Drop unused import to fix flake8 error
- Loading branch information
Showing
3 changed files
with
4 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters