Thanks for pointing out this. Indeed by looking for some related posts, they are saying keras does pad zeros but not reflection paddings. Then I should go back to self.conv1 = nn.Conv1d(1, 64, kernel_size=11, stride=1, padding=5), right?