首页 Paddle框架 帖子详情
Why
收藏
快速回复
Paddle框架 问答模型训练 507 0
Why
收藏
快速回复
Paddle框架 问答模型训练 507 0

>>> model.fit(train_loader, test_loader, epochs=1, batch_size=8, verbose=1)
The loss value printed in the log is the current step, and the metric is the average value of previous step.
Epoch 1/1
Traceback (most recent call last):
File "", line 1, in
File "/home/its/.local/lib/python3.7/site-packages/paddle/hapi/model.py", line 1495, in fit
logs = self._run_one_epoch(train_loader, cbks, 'train')
File "/home/its/.local/lib/python3.7/site-packages/paddle/hapi/model.py", line 1802, in _run_one_epoch
data[len(self._inputs):])
File "/home/its/.local/lib/python3.7/site-packages/paddle/hapi/model.py", line 941, in train_batch
loss = self._adapter.train_batch(inputs, labels)
File "/home/its/.local/lib/python3.7/site-packages/paddle/hapi/model.py", line 656, in train_batch
* [to_variable(x) for x in inputs])
File "", line 6, in forward
File "/home/its/.local/lib/python3.7/site-packages/paddle/fluid/dygraph/layers.py", line 902, in __call__
outputs = self.forward(*inputs, **kwargs)
File "/home/its/.local/lib/python3.7/site-packages/paddle/nn/layer/common.py", line 137, in forward
x=input, weight=self.weight, bias=self.bias, name=self.name)
File "/home/its/.local/lib/python3.7/site-packages/paddle/nn/functional/common.py", line 1473, in linear
'transpose_Y', False, "alpha", 1)
RuntimeError: (NotFound) Operator matmul does not have kernel for data_type[int]:data_layout[ANY_LAYOUT]:place[CPUPlace]:library_type[PLAIN].
[Hint: Expected kernel_iter != kernels.end(), but received kernel_iter == kernels.end().] (at /paddle/paddle/fluid/imperative/prepared_operator.cc:128)
[operator < matmul > error]

0
收藏
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户