Implemented infer_shape on cudnn ops.

Right, here the shape do not depend on pad. So forget the previous comment. I'll check that you test with the pad parameter.