Remove duplicate convert_pad_shape

pull/3003/head
Aarni Koskela 2023-09-27 01:08:10 +03:00
parent 33a7c722f6
commit 0dbe7cbcc4
1 changed files with 0 additions and 6 deletions

View File

@ -116,12 +116,6 @@ def fused_add_tanh_sigmoid_multiply(input_a, input_b, n_channels):
return acts
def convert_pad_shape(pad_shape):
l = pad_shape[::-1]
pad_shape = [item for sublist in l for item in sublist]
return pad_shape
def shift_1d(x):
x = F.pad(x, convert_pad_shape([[0, 0], [0, 0], [1, 0]]))[:, :, :-1]
return x