Can someone tell me the concept behind the multiple parameters in forward() method?
Generally, the implementation of forward() method has two parameters
- self
- input
if a forward method has more than these parameters how PyTorch is using the forward method.
Let's consider this codebase: https://github.com/bamps53/kaggle-autonomous-driving2019/blob/master/models/centernet.py here online 236 authors have used forward method with two more parameters:
- centers
- return_embeddings
I am unable to find a single article that can answer my query on what condition Line 254(return_embeddings:) and Line 257(if centers is not None:) will execute. As per my knowledge forward, the method is internally called by nn module. Can someone please put some lights on this?