Hi, I am trying to define a local nn.Module (inside a function) which cannot be easily expressed as nn.Sequential, and I am wondering if there is a way to define it without explicitly defining the class within the function?
Thanks!