Object was never used (type <class 'tensorflow.python.framework.ops.Tensor'>)

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Can you share full log about the new error?

More, what’s the gpu you are using?
And what’s the output of nvidia-smi ?