Skip to content

[arith] Simplify the output of InverseAffineIterMap#11167

Merged
junrushao merged 2 commits intoapache:mainfrom
vinx13:feat/simplify_inv_affine
Apr 29, 2022
Merged

[arith] Simplify the output of InverseAffineIterMap#11167
junrushao merged 2 commits intoapache:mainfrom
vinx13:feat/simplify_inv_affine

Conversation

@vinx13
Copy link
Copy Markdown
Member

@vinx13 vinx13 commented Apr 28, 2022

This PR simplifies the result of InverseAffineIterMap by assuming the output param has the same range as the output range of the affine transformation. For example, for iter map i, j => i * 16 + j, i \in [0, 8), j \in [0, 16), after this PR, the inverse will be m => m // 16, m % 16, m \in [0, 128) instead of m => (m // 16) % 8, m % 16

cc @spectrometerHBH @junrushao1994

Copy link
Copy Markdown
Member

@junrushao junrushao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this case!

@junrushao junrushao merged commit c657883 into apache:main Apr 29, 2022
shtinsa pushed a commit to Deelvin/tvm that referenced this pull request May 17, 2022
This PR simplifies the result of `InverseAffineIterMap` by assuming the `output` param has the same range as the output range of the affine transformation. For example, for iter map `i, j => i * 16 + j, i \in [0, 8), j \in [0, 16)`, after this PR, the inverse will be `m => m // 16, m % 16, m \in [0, 128)` instead of `m => (m // 16) % 8, m % 16`
SebastianBoblest pushed a commit to SebastianBoblest/tvm that referenced this pull request May 27, 2022
This PR simplifies the result of `InverseAffineIterMap` by assuming the `output` param has the same range as the output range of the affine transformation. For example, for iter map `i, j => i * 16 + j, i \in [0, 8), j \in [0, 16)`, after this PR, the inverse will be `m => m // 16, m % 16, m \in [0, 128)` instead of `m => (m // 16) % 8, m % 16`
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.

2 participants