Fork me on CSDN

TypeError: __init__() missing 1 required positional argument: 'units'

源代码:

x = Dense(output_dim=NB_CLASS, activation='softmax')(x)

错误提示:

 

 修正:

x = Dense(uints=NB_CLASS, activation='softmax')(x)

代码运行成功。

posted @ 2021-07-27 21:02  追风赶月的少年  阅读(2266)  评论(0编辑  收藏  举报