Skip to content

Commit

Permalink
add dim order into executorch concept documentation (#4349)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #4349

as title

Reviewed By: kirklandsign

Differential Revision: D60081081

fbshipit-source-id: 76863ca87e156759427171c1a59ebfd1c124b372
(cherry picked from commit d288076)
  • Loading branch information
Gasoonjia authored and pytorchbot committed Jul 23, 2024
1 parent caf1621 commit 7195fd0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/source/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ An interface that enables the ExecuTorch runtime to read from a file or other da

To run parts (or all) of a program on a specific backend (eg. XNNPACK) while the rest of the program (if any) runs on the basic ExecuTorch runtime. Delegation enables us to leverage the performance and efficiency benefits of specialized backends and hardware.

## Dim Order

ExecuTorch introduces `Dim Order` to describe tensor's memory format by returning a permutation of the dimensions, from the outermost to the innermost one.

For example, for a tensor with memory format [N, C, H, W], or [contiguous](https://pytorch.org/blog/tensor-memory-format-matters/) memory format, [0, 1, 2, 3] will be its dim order.

Also, for a tensor with memory format [N, H, W, C], or [channels_last memory format](https://pytorch.org/tutorials/intermediate/memory_format_tutorial.html), we return [0, 2, 3, 1] for its dim order.

Currently ExecuTorch only supports dim order representation for [contiguous](https://pytorch.org/blog/tensor-memory-format-matters/) and [channels_last](https://pytorch.org/tutorials/intermediate/memory_format_tutorial.html) memory format.

## DSP (Digital Signal Processor)

Specialized microprocessor chip with architecture optimized for digital signal processing.
Expand Down

0 comments on commit 7195fd0

Please sign in to comment.