문제상황 nn.Module을 상속한 신경망 클래스의 생성자에서 리스트에 레이어를 담으려니 에러가 났다. Exception has occured: optimizer got an empty parameter list class NN(nn.Module): def __init__(self, input_size=10): self.network = [] layer = nn.Linear(input_size, 16) self.network.append(layer) def forward(self, x): for layer in self.network: x = layer(x) return x 이런 상황이었다. 해결책 https://discuss.pytorch.org/t/valueerror-optimizer-got-an-e..