How to see the parameters of a model
If I have loaded in a model using DynamicGraph.read(), how can I print the weights of the model for debugging purposes?
For example, I loaded a textModel and when I print
`print(textModel.parameters)`
I get `NNC.Model.Parameters`
But is there a way to see the actual tensor values for each layer in the model? or something similar to PyTorch where I can get a dictionary of key: values for each parameter in the model?
Thank you!
关闭于 2024-05-23 2 条评论