- save the following content to
path/to/triu.mlir
module {
func.func @main(%arg0: !torch.vtensor<[4,4],f32>) -> !torch.vtensor<[4,4],f32> {
%int1 = torch.constant.int 1
%0 = torch.aten.triu %arg0, %int1 : !torch.vtensor<[4,4],f32>, !torch.int -> !torch.vtensor<[4,4],f32>
return %0 : !torch.vtensor<[4,4],f32>