Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ModernTCN-Long-term-forecasting/models/ModernTCN.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def PaddingTwoEdge1d(self,x,pad_length_left,pad_length_right,pad_values=0):
else:
pad_left = torch.ones(D_out, D_in, pad_length_left) * pad_values
pad_right = torch.ones(D_out, D_in, pad_length_right) * pad_values
x = torch.cat([pad_left,x],dims=-1)
x = torch.cat([x,pad_right],dims=-1)
x = torch.cat([pad_left,x],dim=-1)
x = torch.cat([x,pad_right],dim=-1)
return x

def get_equivalent_kernel_bias(self):
Expand Down
4 changes: 2 additions & 2 deletions ModernTCN-classification/models/ModernTCN.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def PaddingTwoEdge1d(self,x,pad_length_left,pad_length_right,pad_values=0):
else:
pad_left = torch.ones(D_out, D_in, pad_length_left) * pad_values
pad_right = torch.ones(D_out, D_in, pad_length_right) * pad_values
x = torch.cat([pad_left,x],dims=-1)
x = torch.cat([x,pad_right],dims=-1)
x = torch.cat([pad_left,x],dim=-1)
x = torch.cat([x,pad_right],dim=-1)
return x

def get_equivalent_kernel_bias(self):
Expand Down
4 changes: 2 additions & 2 deletions ModernTCN-detection/models/ModernTCN.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def PaddingTwoEdge1d(self,x,pad_length_left,pad_length_right,pad_values=0):
else:
pad_left = torch.ones(D_out, D_in, pad_length_left) * pad_values
pad_right = torch.ones(D_out, D_in, pad_length_right) * pad_values
x = torch.cat([pad_left,x],dims=-1)
x = torch.cat([x,pad_right],dims=-1)
x = torch.cat([pad_left,x],dim=-1)
x = torch.cat([x,pad_right],dim=-1)
return x

def get_equivalent_kernel_bias(self):
Expand Down
4 changes: 2 additions & 2 deletions ModernTCN-imputation/models/ModernTCN.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def PaddingTwoEdge1d(self,x,pad_length_left,pad_length_right,pad_values=0):
else:
pad_left = torch.ones(D_out, D_in, pad_length_left) * pad_values
pad_right = torch.ones(D_out, D_in, pad_length_right) * pad_values
x = torch.cat([pad_left,x],dims=-1)
x = torch.cat([x,pad_right],dims=-1)
x = torch.cat([pad_left,x],dim=-1)
x = torch.cat([x,pad_right],dim=-1)
return x

def get_equivalent_kernel_bias(self):
Expand Down
4 changes: 2 additions & 2 deletions ModernTCN-short-term/models/ModernTCN.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def PaddingTwoEdge1d(self,x,pad_length_left,pad_length_right,pad_values=0):
else:
pad_left = torch.ones(D_out, D_in, pad_length_left) * pad_values
pad_right = torch.ones(D_out, D_in, pad_length_right) * pad_values
x = torch.cat([pad_left,x],dims=-1)
x = torch.cat([x,pad_right],dims=-1)
x = torch.cat([pad_left,x],dim=-1)
x = torch.cat([x,pad_right],dim=-1)
return x

def get_equivalent_kernel_bias(self):
Expand Down