Open michelpf opened 3 months ago
我试着运行cifar10 demo,收到以下报错:
Traceback (most recent call last):
File "D:\Keras-ViT-1.0.1\fine_tuning_on_CIFAR10_demo.py", line 67, in
<tf.Tensor 'multi_head_attention_layer/Sqrt:0' shape=() dtype=float32> was defined here:
File "D:\Keras-ViT-1.0.1\fine_tuning_on_CIFAR10_demo.py", line 32, in
The tensor <tf.Tensor 'multi_head_attention_layer/Sqrt:0' shape=() dtype=float32> cannot be accessed from here, because it was defined in FuncGraph(name=scratch_graph_3, id=1796492036544), which is out of scope.
进程已结束,退出代码1
Trying the very simple demo shared on documentation page, running on Google Colab:
I got the following error.
Checking the Keras version. Seems to be compatible.