I would like to track the weights and gradients for my model while it trains. I have three networks that are being trained jointly. I am calling ‘wandb.watch’ for each one of them individually. This allowed me to see the gradients, but for some reason, I can’t see the weights for one of these networks in the ‘parameters’ tab.
I would appreciate if anyone could help me to figure out what is the issue and how I can fix it.
This allows me to see the gradients for all three networks, but not the weights. Only the weights for Encoder and Decoder are listed on the Parameters tab.
Let me know if my understanding of your pipeline incorrect, but is there a reason you are not setting your model up as full_model = nn.Sequential([Encoder, model, Decoder])? You should be able to watch over your whole model as wandb.watch(full_model).
wandb.watch usually hooks into a PyTorch model - my suspiscion here is that watch is only keeping track of the last model that is being “watched” - since I do see a set of parameters being tracked.
We wanted to follow up with you regarding your support request as we have not heard back from you. Please let us know if we can be of further assistance or if your issue has been resolved.
Hi Antonio, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!