mirror of
https://github.com/labmlai/annotated_deep_learning_paper_implementations.git
synced 2025-10-30 02:08:50 +08:00
__call__ -> forward
This commit is contained in:
@ -53,7 +53,7 @@ class Generator(Module):
|
||||
|
||||
self.apply(_weights_init)
|
||||
|
||||
def __call__(self, x):
|
||||
def forward(self, x):
|
||||
# Change from shape `[batch_size, 100]` to `[batch_size, 100, 1, 1]`
|
||||
x = x.unsqueeze(-1).unsqueeze(-1)
|
||||
x = self.layers(x)
|
||||
|
||||
Reference in New Issue
Block a user