Clone a Module? - PyTorch Forums
https://discuss.pytorch.org/t/clone-a-module/7647413.04.2020 · Hi all, I’m working on a implementation of MAML (paper link). There’s a few implementations out there but from what can see they all rely on the functional form of a model. I have a requirement to make this as general as possible so it can be used with a variety of underlying models. To that end I would like to be able to copy a nn.Module instance in the …