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

Codegen Testing Pipeline #200

Conversation

mattsays
Copy link
Collaborator

@mattsays mattsays commented Mar 2, 2025

Description

Added inital codegen testing pipeline.

Every time we execute the usual codegen command, zant generates two additional files used by tests:

  • test_{model_name}.zig -> Contains all the relevant tests generated from its template located in tests/codeGen
  • model_options.zig -> Contains all the model relevant informations.

So every time you want to add new model agnostics test you will need to edit the template file.
In the near future I will also implement a way to provide own predictions test that will related to the specific model we need.

To test the auto generated library, simply run:

zig build test-generated-lib -Dmodel=mnist-8 --summary all

Related Issue: Closes #181

Type of Change

Please mark the options that are relevant:

  • Bug fix 🐛
  • New feature 🚀
  • Documentation update 📚
  • Other (please describe):

Checklist

  • My code follows the project's coding style guidelines.

  • I have performed a self-review of my own code.

  • [] I have made corresponding updates to the documentation.

  • I have added tests that prove my fix is effective or that my feature works.

  • All new and existing tests pass.

Copy link

Connected to Huly®: X_PI-233

@mattsays mattsays changed the base branch from main to StaticLib_HardCoded March 2, 2025 16:34
@Hitomamacs
Copy link
Contributor

Could you pls add these tests also to the github actions workflow

@Hitomamacs Hitomamacs merged commit a5e50ed into ZantFoundation:StaticLib_HardCoded Mar 2, 2025
@mattsays mattsays deleted the codegen_testing_pipeline branch March 9, 2025 09:27
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.

Code Generation testing Pipeline
2 participants