The warning seem to indicate the issue: if nothing requires gradients, then nothing will be computed.
You need to find where the Tensors stopped requirering gradients. This will point to the op that is non-differentiable,.