tvm icon indicating copy to clipboard operation
tvm copied to clipboard

[Relax][UnitTest] Validate IRModule with multiple targets

Open Lunderberg opened this issue 1 year ago • 2 comments

This commit adds a unit test to verify that a single IRModule can contain functions that will be used on multiple distinct targets. Previously, this test case caused errors when running the LegalizeOps and ApplyDefaultSchedule transforms.

Lunderberg avatar Apr 30 '24 18:04 Lunderberg

This PR adds a unit test validating an end-to-end compilation. On main, this end-to-end test encounters the errors resolved in PRs https://github.com/apache/tvm/pull/16958 and https://github.com/apache/tvm/pull/16959.

This current PR branch includes these two fixes, and is marked as a draft until the bugfix PRs land.

Lunderberg avatar Apr 30 '24 18:04 Lunderberg

This PR is now rebased on top of the prerequisite PRs #16958 and #16959, and is ready for review. It does not add any functionality in itself, but adds a test to validate expected behavior for compilation of a Relax IRModule containing multiple targets.

Lunderberg avatar May 15 '24 13:05 Lunderberg