Keras 报错: Error when checking target: expected dense_4...
笔者此处是一个回归任务, 最后一层是:
...
pred = Dense(1)(x)
在最后一个Dense层前加上x = Flatten()(x)
即可.
- 上一篇 »解决Zend加密的PHP页面出现Fatal error: Incompatible file format: The encoded file has format major ID 1, whereas the Loader expects 4 in
- 下一篇 »报错--->java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delect from testd