Transfer learning using inception v3

I’m trying to run a transfer learning code on inceptionV3 network .
My training process is working fine but while validation this cuda error is popping up. Initially i kept the cuda memory to be 12 gb on which training was working fine but i increased it to 30 gb and still the same error is coming on validation.