UnboundLocalError: local variable 'logs' referenced before assignment

运行细胞分类神经网络训练图片时候遇到了这个报错,不知道怎么解决,请问大家知道怎么解决吗,万分感谢
UnboundLocalError: local variable 'logs' referenced before assignment

可能是batch size太大了,或者太小了

看一下这个问题讨论帖子,尝试其中相应的解决办法, UnboundLocalError: local variable 'logs' referenced before assignment on training with little data · Issue #38064 · tensorflow/tensorflow · GitHub I found an error caused by an attempt of coping training logs from a not yet assigned variable. The error occurred on my machine (Arch linux, tensorflow v2.2rc2 compiled from source) and I managed to reproduce the error on colab, on a st... https://github.com/tensorflow/tensorflow/issues/38064