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

Device and configuration presets #144

Merged
merged 2 commits into from Mar 4, 2021
Merged

Device and configuration presets #144

merged 2 commits into from Mar 4, 2021

Conversation

maljoras
Copy link
Collaborator

@maljoras maljoras commented Mar 3, 2021

Related issues

#133

Description

Addition of device and config presets.

Details

Device presets (called XXXPresetDevice) are parameter settings of devices, implemented by inheriting the underlying device data class. They can be used to configure a tile instead of the base classes like ConstantStepDevice.

Config presets (called XXXPreset) are parameter settings of the full rpu_config and could be used instead of defining ones own. They might specify a particular tile model choice and analog optimizer. For instance,

model = AnalogLinear(4, 2, rpu_config=TikiTakaReRamSBPreset())

would use Tiki-taka optimizer (using two ReRAM crossbars with the ReRamSBPresetDevice device model) and otherwise default parameters. As before, parameter choices can be adapted by giving keyword arguments or overwriting the field values.

Copy link
Member

@diego-plan9 diego-plan9 left a comment

Choose a reason for hiding this comment

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

Great, thanks Malte!

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

2 participants