We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43383c2 commit b491ad6Copy full SHA for b491ad6
gpytorch/lazy/__init__.py
@@ -66,11 +66,12 @@ def cat(
66
67
68
def __getattr__(name: str) -> Any:
69
- warnings.warn(
70
- "GPyTorch will be replacing all LazyTensor functionality with the linear operator package. "
71
- "Replace all references to gpytorch.lazy.*LazyTensor with linear_operator.operators.*LinearOperator.",
72
- DeprecationWarning,
73
- )
+ 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,
74
+ )
75
if name == "LazyTensor":
76
from .lazy_tensor import LazyTensor
77
0 commit comments