TypeError: matmul(): incompatible function arguments. The following argument types are
Created by: Joejiong
1)PaddlePaddle版本:1.7 2)CPU:预测若用CPU,请提供CPU型号,MKL/OpenBlas/MKLDNN/等数学库使用情况 3)GPU:预测若用GPU,请提供GPU型号、CUDA和CUDNN版本号 4)系统环境:Mac OS 10.14,Python版本3.7
报错在return 那行进入decode那个地方,然后调用了这个dygraph.nn.Linear() fc3 = self.fc3 = Linear(20, 400)
Traceback (most recent call last): File "train_vae_linear.py", line 124, in train(model) File "train_vae_linear.py", line 74, in train sample = model.decode(sample) File "/Users/wujionghao/Documents/vae_paddle/paddle_vae_linear.py", line 47, in decode z1 = self.fc3(z) File "/opt/anaconda3/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 304, in call outputs = self.forward(*inputs, **kwargs) File "/opt/anaconda3/lib/python3.7/site-packages/paddle/fluid/dygraph/nn.py", line 933, in forward outs = core.ops.matmul(inputs, attrs) TypeError: matmul(): incompatible function arguments. The following argument types are supported: 1. (ins: Dict[str, List[paddle::imperative::VarBase]], attrs: Dict[str, Variant]={}, outs: Dict[str, List[paddle::imperative::VarBase]]={}, out_nums: Dict[str, int]={}) -> Dict[str, List[paddle::imperative::VarBase]]
Invoked with: {'X': [array([[0.95415381], [0.2227887 ], [0.64918053], [0.49933275], [0.5487587 ], [0.33002875], [0.17807391], [0.08231865],