Skip to content
Discussion options

You must be logged in to vote

Hello @xsu0960! Yes, you can pass different RPU configs to each layer on the model you're building, like in the following example:

# Define one RPU configuration per layer. Each config can use a different
# device model and device parameters.
constant_step_config = SingleRPUConfig(device=ConstantStepDevice())
soft_bounds_config = SingleRPUConfig(device=SoftBoundsDevice(w_min=-0.6, w_max=0.6))

model = AnalogSequential(
    AnalogLinear(4, 2, rpu_config=constant_step_config),
    Sigmoid(),
    AnalogLinear(2, 1, rpu_config=soft_bounds_config),
)

As you saw in the example, you can pass a different rpu_config where the device is a different one. With that, your network should look something…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PabloCarmona
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants