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

Specify tile class in RPU Config #218

Merged
merged 4 commits into from
Apr 29, 2021

Conversation

diego-plan9
Copy link
Member

@diego-plan9 diego-plan9 commented Apr 29, 2021

Related issues

Description

Update the BaseTile in order to retrieve the tile class it needs to instantiate from the RPUConfig (via a new tile_class attribute defined on those), decoupling tiles from analog layers (albeit not fully). With this change (which needed #213), a user should have an easier way to use a custom tile via defining a RPUConfig that uses the tile - for example (from the test):

class CustomAnalogTile(AnalogTile):
    """Helper tile for ``CustomTileTest``."""
    ...

class CustomRPUConfig(SingleRPUConfig):
    """Helper rpu config for ``CustomTileTest``."""
    tile_class = CustomAnalogTile
    ...

my_layer = AnalogLinear(..., rpu_config=CustomRPUConfig(...))

Details

@diego-plan9 diego-plan9 merged commit 89cb479 into IBM:master Apr 29, 2021
@diego-plan9 diego-plan9 deleted the feature/flexible-analog-tile branch April 29, 2021 09:03
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.

2 participants