Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

op lookup_table does not have kernel for data_type[int64_t]:data_layout[ANY_LAYOUT]

Open yangtclive opened this issue 7 years ago • 1 comments

c++代码:

int64_t data[5] = { 1, 1, 1, 1, 2 };
    paddle::PaddleTensor tensor;
    tensor.shape = std::vector<int>( { 5, 1 });
    tensor.data.Reset(data, sizeof(data));
    tensor.dtype = paddle::PaddleDType::INT64;
    // 创建输出 tensor,输出 tensor 的内存可以复用
    std::vector<paddle::PaddleTensor> outputs;
    std::vector<paddle::PaddleTensor> slots(6, tensor);
    cout << "begin run..." << endl;
    predictor->Run(slots, &outputs);
    cout << "end!" << endl;

image

yangtclive avatar May 08 '19 10:05 yangtclive

经内部沟通,是save inference model的时候feed target names给错了

kuke avatar May 09 '19 09:05 kuke