Tuesday, March 21st, 2017


TensorFlow 101A. Manual Convolution Calculation

The note is to describe how to calculate Convolution via manual or TensorFlow command. TensorFlow convolution common commands: y= np.convolve(x,h,”valid”) and y= np.convolve(h,x,”valid”)  are same…also true for “same”,”full” options. from scipy import signal as sg   sg.convolve is using FFT which is faster than np.convolve for big matrix convolution inverse = numpy.linalg.inv(x)  One dimension with zero padding When we apply kernel, we always use kernel’s inverse to multiply and sum. One dimension without zero padding  One dimension filter with multiple dimensions of input x= [[255,   7,  3],    Read More