Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add elementwise and broadcast simulator tests #56

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

Hardcode84
Copy link
Contributor

@Hardcode84 Hardcode84 commented Jul 29, 2024

As I'm using torch.tensor in simulator, all elementwise ops and broadcasting should work out of the box.

Signed-off-by: Ivan Butygin <ivan.butygin@gmail.com>
Copy link

@harsh-amd harsh-amd 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 adding these tests. Great that broadcasting just works out of the box.

tests/kernel/wave/wave_sim_test.py Show resolved Hide resolved


def test_broadcast_1():
# Input sizes

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@harsh-nod harsh-nod left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM!

@Hardcode84 Hardcode84 merged commit 5e28a8e into iree-org:main Jul 31, 2024
5 of 7 checks passed
@Hardcode84 Hardcode84 deleted the sim-tests branch July 31, 2024 17:54
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.

3 participants