list(model.parameters()), I have obtained a parameter that looks like this:
[torch.FloatTensor of size 4x2]
However, I need to be able to split this into a list of 8 separate
Parameters. Is there any way of doing this?
I don’t think you can. If you wanted to do that, you could define these four 1x2 parameters separately and use
torch.cat to combine them during the forward. (Or use size 2 and use