feng2022 commited on
Commit
09145ce
1 Parent(s): 8d584e9

Update Time_TravelRephotography/op/fused_act.py

Browse files
Time_TravelRephotography/op/fused_act.py CHANGED
@@ -73,7 +73,7 @@ class FusedLeakyReLUFunction(Function):
73
  class FusedLeakyReLU(nn.Module):
74
  def __init__(self, channel, negative_slope=0.2, scale=2 ** 0.5):
75
  super().__init__()
76
-
77
  self.bias = nn.Parameter(torch.zeros(channel))
78
  self.negative_slope = negative_slope
79
  self.scale = scale
 
73
  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(channel))
78
  self.negative_slope = negative_slope
79
  self.scale = scale