Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

megengine在cuda平台推理时候出现core dumped #527

Open
g1050 opened this issue May 16, 2024 · 0 comments
Open

megengine在cuda平台推理时候出现core dumped #527

g1050 opened this issue May 16, 2024 · 0 comments

Comments

@g1050
Copy link

g1050 commented May 16, 2024

环境

1.系统环境:Ubuntu 18.04.6 LTS
2.MegEngine版本:master分支3b1a1d0 commit编译
3.python版本:Python 3.6.9

复现步骤

1.代码采用注释掉的std::shared_ptr<Network> network = std::make_shared<Network>(config, network_io);方式加载模型
2.编译

cd test_megengine/src/cplusplus/
bash build.sh

3.执行
./bin/lite_infer ../model/lenet.mge ../image/handwrittern-digit.png

请提供关键的代码片段便于追查问题

// cuda配置
lite::Config config{LiteDeviceType::LITE_CUDA};
NetworkIO network_io;
IO device_input{"data",false};
network_io.inputs.push_back(device_input);

//加载模型
// std::shared_ptr<Network> network = std::make_shared<Network>(config, network_io);
std::shared_ptr<Network> network = std::make_shared<Network>();
network->load_model(model_path);

请提供完整的日志及报错信息

LITE[ERR] 10:40:13.743351 Lite exception: Error: Unexpected compression method.
terminate called after throwing an instance of 'lite::Error'
  what():  Error: Unexpected compression method
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant