The error is occuring at the last line. Do I need to port all the classes to cuda as the trace error is giving errors at the lines when it is getting forwarded through vgg.
Trace Error : https://pastebin.com/qQUmFQ8Z 19
As well please tell how shall I update this code to accomodate batch size?