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 test for operator #2

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Hlinbit
Copy link

@Hlinbit Hlinbit commented Aug 10, 2024

Operators are the basis for implementing the inference engine. In order to help you test your implementation more comprehensively, I have added operator-related tests and the Python implementation corresponding to the operator.

The new tests include two aspects:

  • Added test cases for rms. Contains higher-dimensional matrix test cases and test cases with matrices with different shapes.
  • Added test cases for matmul. Added matrices of other shapes as test cases.

All the above use cases are generated by pytorch.

In addition, the PR also contains pytorch implementations of three operators. Through these codes, everyone can customize their own test cases, and conduct more complete tests.

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.

1 participant