Skip to content

Commit

Permalink
Update __init__.py (#2423)
Browse files Browse the repository at this point in the history
  • Loading branch information
saitcakmak committed Oct 26, 2023
1 parent 43383c2 commit b491ad6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gpytorch/lazy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ def cat(


def __getattr__(name: str) -> Any:
warnings.warn(
"GPyTorch will be replacing all LazyTensor functionality with the linear operator package. "
"Replace all references to gpytorch.lazy.*LazyTensor with linear_operator.operators.*LinearOperator.",
DeprecationWarning,
)
if not name.startswith("_"):
warnings.warn(
"GPyTorch will be replacing all LazyTensor functionality with the linear operator package. "
"Replace all references to gpytorch.lazy.*LazyTensor with linear_operator.operators.*LinearOperator.",
DeprecationWarning,
)
if name == "LazyTensor":
from .lazy_tensor import LazyTensor

Expand Down

0 comments on commit b491ad6

Please sign in to comment.