Skip to content

Conversation

@HongHongHongL
Copy link
Contributor

@HongHongHongL HongHongHongL commented Oct 10, 2023

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