Actually, check this discuss, it shows that unfold is one way to implement conv2d. So, our methods are similar 
Anyway, congratulations on finding a simpler way. 
Actually, check this discuss, it shows that unfold is one way to implement conv2d. So, our methods are similar 
Anyway, congratulations on finding a simpler way. 