Skip to content

[TIR] Fix the error example in the documentation for pad_einsum#15906

Merged
Hzfengsy merged 2 commits into
apache:mainfrom
HongHongHongL:fix-example-in-pad_einsum-documentation
Oct 11, 2023
Merged

[TIR] Fix the error example in the documentation for pad_einsum#15906
Hzfengsy merged 2 commits into
apache:mainfrom
HongHongHongL:fix-example-in-pad_einsum-documentation

Conversation

@HongHongHongL

@HongHongHongL HongHongHongL commented Oct 10, 2023

Copy link
Copy Markdown
Contributor

In the documentation for pad_einsum, the example uses

sch.pad_einsum(block, [0, 1, 1])

However, it will cause

Error message: The padding for the block tir.Block#0 are invalid. It should be a list of 3 positive integers.

On a block with trivial binding, this primitive pads the iteration domain of the block by the given padding factors, for example, 127 -> 128, 132 -> 144 when padding factor is 16. So the example should be

sch.pad_einsum(block, [padding factor, padding factor, padding factor])

@Hzfengsy Hzfengsy merged commit 4e9866f into apache:main Oct 11, 2023
@HongHongHongL HongHongHongL deleted the fix-example-in-pad_einsum-documentation branch October 11, 2023 11:15
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