mirror of
https://github.com/labmlai/annotated_deep_learning_paper_implementations.git
synced 2025-11-01 12:01:45 +08:00
__call__ -> forward
This commit is contained in:
@ -82,7 +82,7 @@ class Model(Module):
|
||||
nn.Linear(in_features=256, out_features=4),
|
||||
)
|
||||
|
||||
def __call__(self, obs: torch.Tensor):
|
||||
def forward(self, obs: torch.Tensor):
|
||||
# Convolution
|
||||
h = self.conv(obs)
|
||||
# Reshape for linear layers
|
||||
|
||||
Reference in New Issue
Block a user