TypeError:\uuCall_Uu()接受2个位置参数,但给出了3个

2024-09-27 00:13:31 发布

您现在位置:Python中文网/ 问答频道 /正文

当我使用自己的图层时会出现以下错误:

Traceback (most recent call last):
File "E:/fffan/try.py", line 40, in <module>
 run(input, 5000)
File "E:/fffan/try.py", line 36, in run
 out = SelfAttention(nclass)(output, state)
TypeError: __call__() takes 2 positional arguments but 3 were given

这是我的代码,希望有人能告诉我如何修复它。在

^{pr2}$

我的tensorflow版本是1.14.0,keras是2.1.5

有人知道这个问题吗?在


Tags: runinpy图层most错误linecall

热门问题