Skip to content

How to Configure ReRAM as a Processing Unit #686

Closed Answered by 24367452
24367452 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @maljoras ,Thank you for your interest, I would like to use the ReRAM model for in-situ training and evaluate the impact of non-ideal factors on the accuracy of the model.Does the following code fulfil my requirements?

    dmodel = SimpleModel()
    dmodel.to(device)
    criterion = nn.MSELoss()
    optimizer = create_digital_optimizer(dmodel, 0.01)
    algorithm='ttv2'
    rpu_config = build_config(algorithm,device=ReRamArrayHfO2PresetDevice)
    amodel = convert_to_analog(dmodel, rpu_config)

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@maljoras-sony
Comment options

Answer selected by PabloCarmona
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #683 on August 25, 2024 21:46.