-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[microNPU] Add support for pack and unpack (#9960)
* [microNPU] Add support for pack and unpack Pack is represented by a series of `expand_dims` operations followed by a `concatenate` in Relay. Unpack is represented by a `split` followed by a series of `squeeze` operations in Relay. This commit legalizes `expand_dims` and `squeeze` to reshape operations while making use of existing legalization techniques for `split` and `concatenate` so that pack and unpack can be offloaded to the NPU. Change-Id: I3fbebb4ece5ca04598f8e587b9e6c0ddf280266d * rebase and add tests for expand dims and squeeze Change-Id: Ic6a9fd77b61368720328bfe82032490bcc66152c
- Loading branch information
Showing
4 changed files
with
557 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.