Tensor is unhashable. Instead, use tensor.ref() as the key出现该问题的解决方法

Tensor is unhashable. Instead, use tensor.ref() as the key
在调试yolov3代码时,出现了这个错误,到底是什么原因造成的呢?找了好久都没有找到!

你好,我遇到了和您一样的情况,请问是如何解决的呢

import tensorflow as tf
tf.compat.v1.disable_eager_execution()

https://blog.csdn.net/guyuealian/article/details/103455016