Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 8, 2021
1 parent bb1d9d4 commit e8782c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nowcasting_gan/discriminators.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,16 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:
# One more D Block without downsampling or increase number of channels
rep = self.d_last(rep)

rep = torch.sum(F.relu(rep), dim=[1,2])
rep = torch.sum(F.relu(rep), dim=[1, 2])
rep = self.bn(rep)
rep = self.fc(rep)

# rep = self.fc(rep)
representations.append(rep)
# The representations are summed together before the ReLU
x = torch.stack(representations, dim=0) # Should be right shape? TODO Check
x = torch.stack(representations, dim=0) # Should be right shape? TODO Check
# Should be [Batch, N, 1]
x = torch.sum(x, keepdim = True, dim=1)
x = torch.sum(x, keepdim=True, dim=1)
return x


Expand Down

0 comments on commit e8782c3

Please sign in to comment.