Skip to content

Commit

Permalink
add note for dynamic shapes
Browse files Browse the repository at this point in the history
Change-Id: If6409e2953addfc880bcc6d95083b78bdf5a23d0
  • Loading branch information
lhutton1 committed Jun 24, 2022
1 parent 93c0672 commit 89f7523
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/tvm/relay/transform.h
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,9 @@ TVM_DLL Pass FlattenAtrousConv();
* function in question as a list of the number of bytes for each callsite. In addition, the
* containing function is annotated with an "io_used_memory" annotation which refers to the total
* memory required for the IO tensors.
*
* Note: This pass does not support dynamic shapes, it is the users responsibility to check this
* pass isn't applied where dynamic shapes may be input.
*/
TVM_DLL Pass AnnotateUsedMemory();

Expand Down
3 changes: 3 additions & 0 deletions src/relay/backend/annotate_used_memory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ namespace backend {
* containing function is annotated with an "io_used_memory" annotation which refers to the total
* memory required for the IO tensors.
*
* Note: This pass does not support dynamic shapes, it is the users responsibility to check this
* pass isn't applied where dynamic shapes may be input.
*
* A simple example:
*
* Before:
Expand Down

0 comments on commit 89f7523

Please sign in to comment.