Implemented infer_shape on cudnn ops.

Fine. How I check the border_mode?