Tensor.copy_
tries to copy onto an intermediate tensor in a canonicalized trace
#1192
Labels
Tensor.copy_
tries to copy onto an intermediate tensor in a canonicalized trace
#1192
The above results in the following error from nvFuser.
Fusion definition
I am not sure about how to interpret nvFuser's error message, but the problem would be trying to write the output of
fd.ops.sin
onto the output offd.ops.add
.When we use
x.neg()
instead ofx.sin()
, the nvFuser executor somehow orders the copy ontot0
before the one fromt0
, and gets flagged as unsafe by_inplace_copy_sanity_check
.Python source, Execution trace
I presume this will be fixed by functionalizing
Tensor.copy_
like other in-place ops, but doing so appropriately would involve somewhat big changes inthunder/core/functionalization.py
The text was updated successfully, but these errors were encountered: