masahi commented on a change in pull request #10495:
URL: https://github.com/apache/tvm/pull/10495#discussion_r819929615



##########
File path: python/tvm/contrib/cudnn.py
##########
@@ -741,18 +741,22 @@ def conv_backward_data(
         tensor_format, pad, stride, dilation, dy.shape, w.shape, 
output_padding, groups
     )
 
-    algo = conv_backward_data_find_algo(
-        tensor_format,
-        pad,
-        stride,
-        dilation,
-        list(dy.shape),
-        list(w.shape),
-        dx_shape,
-        dy.dtype,
-        conv_dtype,
-        groups,
-    )
+    if exists():
+        # When cudnn exists, find the backward data algo
+        algo = conv_backward_data_find_algo(
+            tensor_format,
+            pad,
+            stride,
+            dilation,
+            list(dy.shape),
+            list(w.shape),
+            dx_shape,
+            dy.dtype,
+            conv_dtype,
+            groups,
+        )
+    else:
+        algo = 1

Review comment:
       yup sorry about this. Can you document what "algo = 1" corresponds? 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to