def fixed_padding(inputs, kernel_size, dilation):
    kernel_size_effective = (kernel_size + ((kernel_size - 1) * (dilation - 1)))
    pad_total = (kernel_size_effective - 1)
    pad_beg = (pad_total // 2)
    pad_end = (pad_total - pad_beg)
    padded_inputs = F.pad(inputs, (pad_beg, pad_end, pad_beg, pad_end))
    return padded_inputs
def fixed_padding(inputs, kernel_size, dilation):
    kernel_size_effective = (kernel_size + ((kernel_size - 1) * (dilation - 1)))
    pad_total = (kernel_size_effective - 1)
    pad_beg = (pad_total // 2)
    pad_end = (pad_total - pad_beg)
    padded_inputs = F.pad(inputs, (pad_beg, pad_end, pad_beg, pad_end))
    return padded_inputs