Skip to content

Commit

Permalink
Merge pull request #7993 from kmaehashi/fix-7967
Browse files Browse the repository at this point in the history
Add lazy load for `cupyx.lapack`
  • Loading branch information
emcastillo committed Nov 28, 2023
2 parents 4f0687e + 8aaf434 commit 1a04141
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cupyx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,12 @@
from cupyx._pinned_array import zeros_like_pinned # NOQA

from cupyx._gufunc import GeneralizedUFunc # NOQA


def __getattr__(key):
if key == 'lapack':
import cupyx.lapack
return cupyx.lapack

raise AttributeError(
"module '{}' has no attribute '{}'".format(__name__, key))

0 comments on commit 1a04141

Please sign in to comment.