Hello,
I have two classifiers and two associated discriminator networks. While I can create the instances of Classifier networks but I can’t in the case of discriminator networks. It generates an “AttributeError: ‘torch.device’ object has no attribute '_apply’”. I’ve seen several related posts and I also checked my PyTorch version which is 1.1.0. I don’t know how to debug this issue. I’ve attached a screenshot of the Jupyter notebook and the Discriminator class. If needed I can provide more detailed information. Can you please help me out?
FYI: The main difference between Classifier and Discriminator class is that the Discriminator network has CNN layers.
Thank you.

PyTorch Error.png2910×807 236 KB