__call__ -> forward

This commit is contained in:
Varuna Jayasiri
2021-08-19 15:47:25 +05:30
parent eaa248c9e6
commit 02309fa4cc
5 changed files with 9 additions and 9 deletions

View File

@ -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)