As the example below, I’ve never seen forward function called, but when the Network class is initialized, forward function still run?
Can someone help me to explain this?
class Network(nn.Module):
    def __init__(self):
        super(Network, self).__init__()
        
    def forward(self, x):
        return x