Skip to content

Instantly share code, notes, and snippets.

@pashu123
Created May 8, 2024 07:57
Show Gist options
  • Save pashu123/039f4886a23ff7311f38e44203013279 to your computer and use it in GitHub Desktop.
Save pashu123/039f4886a23ff7311f38e44203013279 to your computer and use it in GitHub Desktop.
func.func @torch_add(%arg0: !torch.vtensor<[1,1,?,?],i1>, %arg1: !torch.vtensor<[4,1,1,?],i1>) -> !torch.vtensor<[4, 1, ?, ?],i1> {
%int1 = torch.constant.int 1
%2 = torch.aten.add.Tensor %arg0, %arg1, %int1 : !torch.vtensor<[1,1,?,?],i1>, !torch.vtensor<[4,1,1,?],i1>, !torch.int -> !torch.vtensor<[4,1,?,?],i1>
return %2 : !torch.vtensor<[4,1,?,?],i1>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment