Skip to content

Commit

Permalink
🔧 Fix localscaler bug (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
TakuyaShintate authored Sep 26, 2021
1 parent 860f807 commit 8be7469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsts/models/localscalers/noop.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ def from_cfg(
return local_scaler

def forward(self, bias: Tensor) -> Tensor:
return torch.zeros_like(bias)[:, :, 0:1]
return bias.new_zeros((1,))

0 comments on commit 8be7469

Please sign in to comment.