-
Notifications
You must be signed in to change notification settings - Fork 166
Open
Labels
Description
User story
As a user, I want to be able to test a model on different hardware while minimizing changes to the code. One component that needs to be changed when switching hardware is the RunConfig. Having a GeneralRunConfig class that can return an instance of the appropriate config as determined by a supplied hardware parameter.
Conditions of satisfaction
- Users can select
GeneralRunConfigclass that takes ahardwareparameter GeneralRunConfigalso accepts all parameters of the normal run configs- Based on the
hardwareparameter,GeneralRunConfigselects the appropriate config and creates an instance of the config with the relevant parameters.
Acceptance tests
- Test that instances created have the correct return type. (
GeneralRunConfig(hardware=CPU) -> Loihi2SimCfg, etc.) - Parameters are correctly filtered so that parameters not accepted by the resulting class are ignored.