You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The torch.copy.to_vtensor and torch.overwrite.tensor.contents ops model the mutation semantics in the torch level. But how to lower the two ops?
I can think of something in the memref dialect that can represent these semantics. But when the output is set to be linalg_on_tensors or tosa, how the lowering should look like?
The text was updated successfully, but these errors were encountered:
Given a program
model
that mutates its inputs,the fx_importer
fx.export_and_import(model, output_type=output = OutputType.TORCH, experimental_support_mutation=True)
produces the following mlir.The
torch.copy.to_vtensor
andtorch.overwrite.tensor.contents
ops model the mutation semantics in thetorch
level. But how to lower the two ops?I can think of something in the
memref
dialect that can represent these semantics. But when the output is set to belinalg_on_tensors
ortosa
, how the lowering should look like?The text was updated successfully, but these errors were encountered: