ohh man, i really messed it up, (i think these are the signs of being newbie). Thanks for replying. and yes you are right i have to feed grayscale image..
Really i was getting totally mad about these zero tensor, thanks man.
I didn’t get your image.permute thing, if you can please provide any resource for it(i don’t know about dim2 or dim0 channels). It would be really helpful.
And again thanks alot @ptrblck.