Completed implementation of infer_shape on cudnn operators.