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 2021/08/31 00:47:59 UTC

[GitHub] [tvm] masahi commented on issue #8881: Compiling random operation in pytorch to random in relay

masahi commented on issue #8881:
URL: https://github.com/apache/tvm/issues/8881#issuecomment-908809004


   Since the call `torch.rand(size=self.given_shape, device=x.device)` doesn't depend on the input, it should be pre-computed in the constructor. That way there is no need to convert torch rand to relay rand. 


-- 
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