Skip to content

Conversation

@Archermmt
Copy link
Contributor

@Archermmt Archermmt commented Sep 9, 2024

Dynamic shapes are recorded as tir.Var + IntImm in relax. This PR create MSCPrim to map the PrimNode in tvm to MSC. The MSCPrim can be codegen to different frameworks to support dynamic shapes, such as dynamic batch in training and dynamic dims in LLM.
MSC records the PrimNode and the relations between PrimNodes as MSCPrims in DAG format, so that the dynamic dim can be described (e.g res_0.shape[0]*2) during codegen.

cc @Hzfengsy

@github-actions github-actions bot requested a review from Hzfengsy September 12, 2024 00:13
@Archermmt
Copy link
Contributor Author

@tvm-bot rerun

@mshr-h
Copy link
Contributor

mshr-h commented Sep 14, 2024

@Archermmt
wasm ci was failing due to the usage of deprecated API. The issue was solved with #17371
Need to rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants