@nicofish  Thanks…That was one reason due to which I could move to the root of this cause!!
Actually the shape of data from dataloader was not correct
Thank you so much!!
One more thing, could you pls tell me from the above code whether my model design is correct or not?Like all layers in place?
Thanks again in advance!