Implemented infer_shape on cudnn ops.

Either use ctypes and access the properties through the cudnn API or write an op that does it.