问答详情
源自:3-4 Minst手写体识别

代码相同但是报错是什么原因嘞 我用的pycharm

Traceback (most recent call last):
  File "D:/untitled/shouxiti.py", line 25, in <module>
    model.add(Dense(512,activation="relu",input_shape=(784,)))     #输入层
  File "D:\Anacona\envs\tensorflow\lib\site-packages\tensorflow\python\training\tracking\base.py", line 457, in _method_wrapper
    result = method(self, *args, **kwargs)
TypeError: add() missing 1 required positional argument: 'layer'

提问者:weixin_慕容1126508 2020-09-21 19:56

个回答