Skip to content

Commit

Permalink
Remove Module.__getattr__ (#2359)
Browse files Browse the repository at this point in the history
  • Loading branch information
saitcakmak authored Jun 2, 2023
1 parent e3457b2 commit 6cfea77
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions gpytorch/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,15 +429,6 @@ def variational_parameters(self):
for _, param in self.named_variational_parameters():
yield param

def __getattr__(self, name):
try:
return super().__getattr__(name)
except AttributeError as e:
try:
return super().__getattribute__(name)
except AttributeError:
raise e


def _validate_module_outputs(outputs):
if isinstance(outputs, tuple):
Expand Down

0 comments on commit 6cfea77

Please sign in to comment.