feng2022 commited on
Commit
2402737
1 Parent(s): d8bc487

Update Time_TravelRephotography/op/fused_act.py

Browse files
Time_TravelRephotography/op/fused_act.py CHANGED
@@ -74,7 +74,7 @@ class FusedLeakyReLU(nn.Module):
74
  def __init__(self, channel, negative_slope=0.2, scale=2 ** 0.5):
75
  super().__init__()
76
  channel = torch.tensor(channel)
77
- self.bias = nn.Parameter(torch.zeros(size(channel)))
78
  self.negative_slope = negative_slope
79
  self.scale = scale
80
 
 
74
  def __init__(self, channel, negative_slope=0.2, scale=2 ** 0.5):
75
  super().__init__()
76
  channel = torch.tensor(channel)
77
+ self.bias = nn.Parameter(torch.zeros(tensor.size(channel)))
78
  self.negative_slope = negative_slope
79
  self.scale = scale
80