180211 Keras矩阵乘法MatMul报错 Shape must be rank 2 but is rank 3 for 'MatMul'
Table of Contents
原因1:Keras后端tensorflow与theano的矩阵乘法定义不同,切换后端即可
Switching from one backend to another
TensorFlow学习笔记–matmul和multiply两种乘法的区别
keras配置TensorFlow_or_theano
原因2:矩阵乘法没有按照定义来,需要根据定义修改代码
http://blog.csdn.net/u011961856/article/details/77336205
http://blog.csdn.net/blythe0107/article/details/74171870
0 评论