Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
add suggested __call__ function
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Mar 17, 2023
1 parent 13fd083 commit 727f9b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/equisolve/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ class Module(metaclass=ABCMeta):
def forward(self, *args, **kwargs):
return

def __call__(self, *args, **kwargs):
self.forward(*args, **kwargs)

TEstimatorModule = TypeVar("TEstimatorModule", bound="EstimatorModule")

TEstimatorModule = TypeVar("TEstimatorModule", bound="EstimatorModule")

class EstimatorModule(Module, metaclass=ABCMeta):
def forward(self, X: TensorMap):
Expand Down

0 comments on commit 727f9b0

Please sign in to comment.