Skip to content

Conversation

@junrushao
Copy link
Member

TVMScript parser supports both T.Buffer and T.buffer_decl interchangeably, which share the same semantics in TIR AST. However, T.buffer_decl is usually confused with T.decl_buffer. To clarify the semantics, we decide to print T.Buffer instead.

Note that this PR is backward compatible with the previous behavior, i.e. the parser still parses TVMScript with T.decl_buffer, and the only difference is the print now produces T.Buffer instead by default.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Jan 24, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

  • No users to tag found in teams: tvmscript See #10317 for details

Generated by tvm-bot

@junrushao junrushao marked this pull request as ready for review January 24, 2023 23:45
@junrushao junrushao force-pushed the feature/2023-01-24/replace-buffer-decl branch 3 times, most recently from d78bb00 to 41ac3e9 Compare January 25, 2023 00:31
TVMScript parser supports both `T.Buffer` and `T.buffer_decl` interchangeably, which share the same semantics in TIR AST. However, `T.buffer_decl` is usually confused with `T.decl_buffer`. To clarify the semantics, we decide to print `T.Buffer` instead.

Note that this PR is backward compatible with the previous behavior, i.e. the parser still parses TVMScript with `T.decl_buffer`, and the only difference is the print now produces `T.Buffer` instead by default.
@junrushao junrushao force-pushed the feature/2023-01-24/replace-buffer-decl branch from 41ac3e9 to 7fd9cd3 Compare January 25, 2023 02:01
@junrushao junrushao merged commit 2c109c5 into apache:main Jan 25, 2023
fzi-peccia pushed a commit to fzi-peccia/tvm that referenced this pull request Mar 27, 2023
TVMScript parser supports both `T.Buffer` and `T.buffer_decl` interchangeably, which share the same semantics in TIR AST. However, `T.buffer_decl` is usually confused with `T.decl_buffer`. To clarify the semantics, we decide to print `T.Buffer` instead.

Note that this PR is backward compatible with the previous behavior, i.e. the parser still parses TVMScript with `T.decl_buffer`, and the only difference is the print now produces `T.Buffer` instead by default.
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.

3 participants