Hi @nbansal90,
I couldn’t find the error by simply looking at your code… Have you already tried removing the call to the regularization function from your training loop? If the issue disappears, then there’s something in that function. If it persists, the problem must be somewhere else…