Skip to content

Commit

Permalink
Added support for torch.concat operator.
Browse files Browse the repository at this point in the history
Added torch.ops.aten.concatenate.default in the list of supported operators in the generic annotator. Also added a test to check the functionality of the newly added operator.

Change-Id: I24d0fbf96bf9fd57ebd059cefd2af0f525fe8235
  • Loading branch information
Michiel-Olieslagers authored and freddan80 committed Dec 10, 2024
1 parent 9873457 commit 579d958
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
torch.ops.aten.tile.default,
torch.ops.aten.flip.default,
torch.ops.aten.cat.default,
torch.ops.aten.concatenate.default,
torch.ops.aten.stack.default,
torch.ops.aten.chunk.default,
torch.ops.aten.contiguous.default,
Expand Down
7 changes: 7 additions & 0 deletions backends/arm/test/quantizer/test_generic_annotater.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,10 @@ def test_flip(self):
self.check_annotation(
SingleOpModel(torch.flip, (torch.randn(2, 4),), dims=(0, 1)),
)

def test_concat(self):
self.check_annotation(
SingleOpModel(
torch.concatenate, ((torch.randn(2, 3), torch.randn(2, 3)),), dim=0
),
)

0 comments on commit 579d958

Please sign in to comment.