-
Notifications
You must be signed in to change notification settings - Fork 669
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
MacOS 下开启 Metal 会崩溃 #386
Labels
Comments
暂时没有测试过metal哈 |
那如果想要开启GPU加速,在Mac下目前是用什么方案呢? |
mnn调用非cpu后端的时候,需要使用CopyFromHostTensor来进行tensor的拷贝,否则会出现空指针导致crash |
This issue is stale because it has been open for 30 days with no activity. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在void MNNRobustVideoMatting::initialize_interpreter()中,修改代码,设置Metal,如下
MNN::BackendConfig backend_config;
backend_config.precision = MNN::BackendConfig::Precision_High; // default Precision_High
schedule_config.backendConfig = &backend_config;
schedule_config.type = MNN_FORWARD_METAL;
schedule_config.backupType = MNN_FORWARD_METAL;
在执行static void test_mnn()的时候,会崩溃
请问是否我开在MNN Metal的方式不对
The text was updated successfully, but these errors were encountered: