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

包含5维的gridsample模型,cpu和opencl的输出结果不一致 #2820

Closed
liuyingbin123 opened this issue Apr 9, 2024 · 7 comments
Closed
Labels
bug Something isn't working stale

Comments

@liuyingbin123
Copy link

平台(如果交叉编译请再附上交叉编译目标平台):

Platform(Include target platform as well if cross-compiling):

android

Github版本:

Github Version:

最新版本
直接下载ZIP包请提供下载日期以及压缩包注释里的git版本(可通过7z l zip包路径命令并在输出信息中搜索Comment 获得,形如Comment = bc80b11110cd440aacdabbf59658d630527a7f2b)。 git clone请提供 git commit 第一行的commit id

Provide date (or better yet, git revision from the comment section of the zip. Obtainable using 7z l PATH/TO/ZIP and search for Comment in the output) if downloading source as zip,otherwise provide the first commit id from the output of git commit

编译方式:

Compiling Method

请在这里粘贴cmake参数或使用的cmake脚本路径以及完整输出
Paste cmake arguments or path of the build script used here as well as the full log of the cmake proess here or pastebin

编译日志:

Build Log:

粘贴在这里
Paste log here or pastebin
@liuyingbin123
Copy link
Author

cpu的输出结果是对的,opencl的输出结果是错的,尝试将5维的gridsample改为4维后,opencl的输出符合预期。
请问mnn的gridsample的opencl实现是不支持5维吗

@roachsinai
Copy link
Contributor

@liuyingbin123 老哥你的 5 维改 4 维是按 channel 拆分的么?

@liuyingbin123
Copy link
Author

@liuyingbin123 老哥你的 5 维改 4 维是按 channel 拆分的么?
按channel拆分,复杂度过高,我最后是用torch的基础算子自己实现了一个5维的gridsample

@roachsinai
Copy link
Contributor

@liuyingbin123 优秀!

@jxt1234 jxt1234 added the bug Something isn't working label Apr 12, 2024
@jxt1234
Copy link
Collaborator

jxt1234 commented Apr 12, 2024

是的,目前仅 cpu / cuda 支持 5维 gridsample

@liuyingbin123
Copy link
Author

是的,目前仅 cpu / cuda 支持 5维 gridsample

有支持的计划吗

Copy link

Marking as stale. No activity in 60 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

3 participants