You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
但还是会报输入shape不匹配的问题:
InvalidArgumentError: The shape of input[0] and input[1] is expected to be equal.But received input[0]'s shape = [1, 10], input[1]'s shape = [1, 5, 10].
[Hint: Expected inputs_dims[i].size() == out_dims.size(), but received inputs_dims[i].size():3 != out_dims.size():2.] (at /paddle/paddle/fluid/operators/concat_op.h:40)
[operator < concat > error]
有什么办法可以让我使用Paddle Inference来推理naml吗?
The text was updated successfully, but these errors were encountered:
将naml模型导出为Paddle Inference模型后,使用paddle_infer.py脚本进行预测,但不能正确运行。
这是我的执行命令:
python3 ../../../tools/paddle_infer.py --model_file=PaddleRec_model/naml/model.pdmodel --params_file=PaddleRec_model/naml/model.pdiparams --use_gpu=False --data_dir=data/sample_data/train/ --reader_file=NAMLDataReader.py --batchsize=1 --benchmark=False
但由于NAMLDataReader.py里缺少config的读取,因此我在里面也加了下列代码。
config = load_yaml("/Work/PaddleRec/models/rank/naml/config.yaml")
但还是会报输入shape不匹配的问题:
InvalidArgumentError: The shape of input[0] and input[1] is expected to be equal.But received input[0]'s shape = [1, 10], input[1]'s shape = [1, 5, 10].
[Hint: Expected inputs_dims[i].size() == out_dims.size(), but received inputs_dims[i].size():3 != out_dims.size():2.] (at /paddle/paddle/fluid/operators/concat_op.h:40)
[operator < concat > error]
有什么办法可以让我使用Paddle Inference来推理naml吗?
The text was updated successfully, but these errors were encountered: