Given a convolution kernel, is there a standard way (hopefully some built-in function of some library) to get the (sparse) matrix that represents the convolution operation?
Specifically, I have a convolutional Keras layer from (54, 54, 128) to (24, 24, 128) and I want to get the matrix that represents the operation of this layer. Is there a standard way of doing this?