torch.nn.Module.forward
Module.forward(...args: any[]): anyForward pass - must be implemented by subclasses.
Unlike TypeScript's strict typing, PyTorch allows any signature for forward(). Subclasses can accept any parameters and return any type.
Parameters
argsany[]
Returns
any