-
Notifications
You must be signed in to change notification settings - Fork 14
[Feat] : Add Test Suite for cTensor #14
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Minor Change is made test_pytorch_ref.c file so that it works with current ci, as string matching from the artificat take place and hence it should be exact same. - check_all_results.py is changed to sorted output for consistent ordering -run-tests.yml is also slightly changed to as in the Windows job, the path to the executable is incorrect, which is rectified - LOCALLY TESTED
- Add, matmul, mean, mul, mulf, sub, sum
…r partipular operator under particular subtest category
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds a comprehensive test framework to the cTensor project, implementing a test suite for tensor operators and setting up automated CI testing using GitHub Actions.
Changes
1. Test Suite Structure
tests/directory with the main test runner (cten_tests.c)tests/Operator/directory for operator-specific teststests/Grad/directory for gradient-related tests. (*These items are yet to be added).tests/csv_reporter.candtests/csv_reporter.h)2. Operator Tests
Added tests for all operators in
src/operator.c, including3. CI Integration
.github/workflows/run-ctests.ymlto build and run tests on Ubuntu, macOS, and Windows.github/check_all_results.pyto parse CSV test reports.github/check_operator_coverage.pyto ensure all operators have tests.github/workflows/check-operator-test-coverage.ymlto enforce test coverage4. Memory Management
Test Architecture
cten_testscten_tests.cfor centralized managementGuide to Test locally
cTensor\tests\README.mdfor proper guideNotes