TypeError: softmax() got an unexpected keyword argument 'axis'
程序员文章站
2022-05-27 12:40:23
...
用keras搭建模型报错:
TypeError: softmax() got an unexpected keyword argument 'axis'
解决:
keras 2.1.6的softmax没有axis这个参数,所以降低keras版本就可以了。例如降到2.1.0就可以。
上一篇: Ubuntu切换显卡,NVIDIA-SMI has failed because it couldn‘t communicate with the NVIDIA driver
下一篇: TypeError: softmax() got an unexpected keyword argument 'axis'
推荐阅读
-
报错解决Python Error fix-TypeError: _mean() got an unexpected keyword argument ‘dim‘
-
login() got an unexpected keyword argument 'extra_context'
-
TypeError: softmax() got an unexpected keyword argument 'axis' 解决办法
-
Django报错:TypeError: render() got an unexpected keyword argument 'renderer'
-
TypeError: login() got an unexpected keyword argument 'template_name'
-
TypeError: filter() got an unexpected keyword argument
-
解决 报错 TypeError: interleave() got an unexpected keyword argument ‘deterministic‘
-
TypeError: __init__() got an unexpected keyword argument 'shape'
-
Django TypeError: render() got an unexpected keyword argument 'renderer'
-
TypeError: got an unexpected keyword argument ‘id‘