Hello,
Thank you for your reply. If myPyTorchModel.parameters() happens to be an empty generator, would it be okay for me to add a fake parameter onto the generator  myPyTorchModel.parameters() just so that I wouldn’t get the StopIteration error?
If yes, how can I add a fake parameter onto the generator  myPyTorchModel.parameters()?
:s thank you,