Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Commit c5de91b

Browse files
virginiafdezvirginiafdez
andauthored
Completing args from initialise_weights (PatchDiscriminator) (#126)
Co-authored-by: virginiafdez <virginia.fernandez@kcl.ac.uk>
1 parent 4a1e67b commit c5de91b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

generative/networks/nets/patchgan_discriminator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,12 +233,12 @@ def forward(self, x: torch.Tensor) -> List[torch.Tensor]:
233233

234234
return out[1:]
235235

236-
def initialise_weights(self, m):
236+
def initialise_weights(self, m: nn.Module) -> None:
237237
"""
238238
Initialise weights of Convolution and BatchNorm layers.
239+
239240
Args:
240-
m: nn layer
241-
Returns:
241+
m: instance of torch.nn.module (or of class inheriting torch.nn.module)
242242
"""
243243
classname = m.__class__.__name__
244244
if classname.find("Conv2d") != -1:

0 commit comments

Comments
 (0)