Fix Batch norm tracking
This commit is contained in:
parent
95f2e52ff3
commit
7f4a162033
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ class Linear(Layer):
|
|||
self.batch_norm = nn.BatchNorm1d(
|
||||
out_channels,
|
||||
momentum=Layer.BATCH_NORM_MOMENTUM,
|
||||
track_running_stats=not Layer.BATCH_NORM_TRAINING) if self.batch_norm else None
|
||||
track_running_stats=Layer.BATCH_NORM_TRAINING) if self.batch_norm else None
|
||||
|
||||
def forward(self, input_data: torch.Tensor) -> torch.Tensor:
|
||||
return super().forward(self.fc(input_data))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue