Skip to content

[MetaSchedule]Add a testcase for padded conv2d in meta_schedule#17171

Merged
cbalint13 merged 4 commits into
apache:mainfrom
yxy0922-for-pr:add-testcase-for-padding-issue
Jul 22, 2024
Merged

[MetaSchedule]Add a testcase for padded conv2d in meta_schedule#17171
cbalint13 merged 4 commits into
apache:mainfrom
yxy0922-for-pr:add-testcase-for-padding-issue

Conversation

@YXY-0922

@YXY-0922 YXY-0922 commented Jul 18, 2024

Copy link
Copy Markdown
Contributor

For a conv2d workload that requires padding:

Details

Test Script: test_padded_conv
Location: tests/python/meta_schedule/test_meta_schedule_schedule_rule_mlt_tc.py

mod = te.create_prim_func(
    te_workload.conv2d_nhwc(
        1,
        224,
        224,
        3,
        64,
        7,
        2,
        3,
        in_dtype="float16",
        out_dtype="float32",
    )
)

This configuration sets up a conv2d workload where the product of reduce axes is 147. Therefore, padding is needed when applying the rule multi_level_tiling_tensorcore.

@YXY-0922 YXY-0922 closed this Jul 18, 2024
@YXY-0922 YXY-0922 reopened this Jul 18, 2024

@cbalint13 cbalint13 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@cbalint13

Copy link
Copy Markdown
Contributor

@YXY-0922 ,

Thank you very much for the fix and the test case assurance !

This is merged.

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