源代码:

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

错误提示:

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

 

 修正:

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

代码运行成功。

相关文章:

  • 2021-08-29
  • 2021-06-22
  • 2021-08-20
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-26
猜你喜欢
  • 2021-07-09
  • 2022-03-10
  • 2022-12-23
  • 2021-07-05
相关资源
相似解决方案