We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
您好, 我当前在UE里面用Vulkan做了一个渲染管线,现在想把每一帧的数据传给MNN做推理,我现在可以拿到UE侧VkBuffer相关数据,请问下如何正确的让MNN Vulkan后端 接收 将UE侧的数据。目前我理解的流程是:
The text was updated successfully, but these errors were encountered:
基于 vulkan buffer (-DMNN_VULKAN_IMAGE=false)模式的话是支持传输的。需要加载如下头文件:
#define MNN_VULKAN #include <MNN/MNNSharedContext.h>
MNN::ScheduleConfig config; MNN::BackendConfig bnConfig; MNNVulkanContext mShareContext; mShareContext.iQueueFamilyIndex = mDevice->queueFamilyIndex(); mShareContext.pDevice = mDevice->get(); mShareContext.pInstance = mInstance->get(); mShareContext.pPhysicalDevice = mDevice->physicalDevice(); mShareContext.pQueue = mDevice->queue(); bnConfig.sharedContext = &mShareContext; config.backendConfig = &bnConfig; /*创建 session 或者 module */
MNNVulkanTensorContent dst; tensor->getDeviceInfo(&dst, MNN_FORWARD_VULKAN);
3.同步(获取的Vulkan内存有可能并没有计算完成,此时需要先同步 )
tensor->wait
Sorry, something went wrong.
多谢回复,这里还有几个小问题想请教:
No branches or pull requests
您好,
我当前在UE里面用Vulkan做了一个渲染管线,现在想把每一帧的数据传给MNN做推理,我现在可以拿到UE侧VkBuffer相关数据,请问下如何正确的让MNN Vulkan后端 接收 将UE侧的数据。目前我理解的流程是:
The text was updated successfully, but these errors were encountered: