You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/03/03 03:54:12 UTC

[GitHub] [tvm] Lyken17 commented on pull request #10459: [Relay] Fix output dtype for conv2d wgrad when the original one is void

Lyken17 commented on pull request #10459:
URL: https://github.com/apache/tvm/pull/10459#issuecomment-1057639428


   Thanks for the quick fix. How about also adding the type infer in python side?
   
   https://github.com/apache/tvm/blob/8f6fa8f2c41406cb54d01647ba8731e4ceb8f4ab/python/tvm/relay/op/_tensor_grad.py#L417-L440
   
   ```
       if attrs.out_dtype == "":
           out_dtype = data.checked_type.dtype
       backward_data = _nn.conv2d_transpose(
           grad,
           weight,
           strides=attrs.strides,
           padding=attrs.padding,
           dilation=attrs.dilation,
           groups=attrs.groups,
           output_padding=output_padding,
           out_dtype=out_dtype,
       )
   ```


-- 
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: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org