源代码:

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

错误提示:

TypeError: __init__() missing 1 required positional argument:

 

 修正:

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

代码运行成功。