Hi,
I think you have the same problem as this post. Basically, add a cov_in.retain_grad() before giving it to gradcheck.
cov_in.retain_grad()