Implemented infer_shape on cudnn ops.

b do not exist in that method. Also, this op infer_shape isn't tested.