Hi, I would like to know the max(abs(weight)) of every epoch. As show in figure.
.
I think I can get max(abs(weight)) in epoch loop, for example:
for epoch in range(1, epochs + 1):
    train_loss,t_accuracy = train(model, train_loader, optimizer)
   test_loss, accuracy = test(model, test_loader)
   epoch_nums.append(epoch)
   training_loss.append(train_loss)
   validation_loss.append(test_loss)
   test_accuracy.append(accuracy)
   train_accuracy.append(t_accuracy)
  **output_1=model.fc1.weight.data**
  if (epoch) % 1 == 0:
      print('Epoch {:d}: Training loss= {:.4f}, Validation loss= {:.4f},train_accuracy={:.4%},    Accuracy={:.4%}'.format(epoch, train_loss,test_loss,t_accuracy,accuracy))
    *print(max(abs(output_1)))*

But, I can only get the one layer’s max(abs(weight)),  can you give me advice to get the all weights of the model, not the parameters!
Thank you very much for your comment and your time!!!