Skip to content

GeneralRunConfig Which Selects Appropriate Config Based on Hardware #900

@kds300

Description

@kds300

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 GeneralRunConfig class that takes a hardware parameter
  • GeneralRunConfig also accepts all parameters of the normal run configs
  • Based on the hardware parameter, GeneralRunConfig selects 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions