Hi, @saudet
Now there’s another issue. During the construction of complex large models, we often need to iterate through the internal layers of the model to call their forward method. However, most of the time, we don’t know or cannot determine the specific type of these layers, and pattern matching can be quite complicated.
But if their base class org.bytedeco.pytorch.Module itself has a forward method, things will become extremely simple. So what I’m trying to say is: should we consider adding multiple overloaded forward methods to org.bytedeco.pytorch.Module?
Hi, @saudet
Now there’s another issue. During the construction of complex large models, we often need to iterate through the internal layers of the model to call their forward method. However, most of the time, we don’t know or cannot determine the specific type of these layers, and pattern matching can be quite complicated.
But if their base class org.bytedeco.pytorch.Module itself has a forward method, things will become extremely simple. So what I’m trying to say is: should we consider adding multiple overloaded forward methods to org.bytedeco.pytorch.Module?