What is wrong with my multi-channel 1d convolution implemented in numpy (compared with tensorflow)
问题 To ensure my understanding of TensorFlow's convolution operations, I implemented conv1d with multiple channels in numpy. However, I get different results, and I cannot see the problem. It seems my implementation is doubling the overlapped values compared with conv1d. Code: import tensorflow as tf import numpy as np # hand-written multi-channel 1D convolution operator # "Data", dimensions: # [0]: sample (2 samples) # [1]: time index (4 indexes) # [2]: channels (2 channels) x = np.array([[1,2,3