the backtrace further above shows the operation that failed to compute its gradient.

There should be another backtrace above the one for the error that tells you that.
It is a python warning, so if you silence python warnings, you want to disable that there.