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 "available" attribute to recipes #368

Merged
merged 2 commits into from
Sep 22, 2023
Merged

Conversation

Satrat
Copy link
Contributor

@Satrat Satrat commented Sep 22, 2023

Fixes the error in this Asana ticket: https://app.asana.com/0/1204322589046915/1205549265505143/f

Adds an available attribute to Recipes that provides a list of recipe names. This is needed by the sparsify.run sparse transfer

Testing

Confirmed the command failing in the ticket runs:

sparsify.run sparse-transfer --use-case image-classification --data imagenette --optim-level 0.5

Also updated unit tests to test the new property

rahul-tuli
rahul-tuli previously approved these changes Sep 22, 2023
Copy link
Member

@rahul-tuli rahul-tuli left a comment

Choose a reason for hiding this comment

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

Nice clean diff!

src/sparsezoo/objects/recipes.py Show resolved Hide resolved
@Satrat Satrat merged commit c6ff218 into main Sep 22, 2023
4 checks passed
@Satrat Satrat deleted the fix-missing-avail-attribute branch September 22, 2023 20:22
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.

None yet

3 participants