in order to do pattern matching properly convolutions require normalization https://en.wikipedia.org/wiki/Cross-correlation#Normalized_cross-correlation
unfortunately I can't find a way how to make input normalization for conv2d function.
is it hidden in implementation?
See Question&Answers more detail:os