synsense/rockpool

Is there an equivalent to torch.nn.ModuleList in Rockpool ?

pbonazzi opened this issue · 5 comments

I see I can easily convert a torch.nn.Module to TorchModule.
Is there an equivalent torch.nn.ModuleList/torch.nn.ConvTranspose2d in Rockpool ?

Hi @pbonazzi , there's no equivalent to ModuleList, but the rockpool.nn.combinators.Sequential combinator is used to build feed-forward networks from a list of modules. Does that meet your needs? If not, what exactly do you need from ModuleList?

torch.nn.ConvTranspose2d should be able to be used natively in rockpool.

Ok thank you Dylan. It does.

Hi @pbonazzi , just wanted to check in — did you try using torch.nn.ConvTranspose2d in Rockpool? What was your experience?

It did not raise any error when I used it :)

Great!