MNN icon indicating copy to clipboard operation
MNN copied to clipboard

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

Open liuyingbin123 opened this issue 1 year ago • 6 comments

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

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 avatar Apr 09 '24 12:04 liuyingbin123

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

liuyingbin123 avatar Apr 09 '24 12:04 liuyingbin123

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

roachsinai avatar Apr 10 '24 12:04 roachsinai

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

liuyingbin123 avatar Apr 11 '24 01:04 liuyingbin123

@liuyingbin123 优秀!

roachsinai avatar Apr 11 '24 01:04 roachsinai

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

jxt1234 avatar Apr 12 '24 09:04 jxt1234

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

有支持的计划吗

liuyingbin123 avatar Apr 15 '24 10:04 liuyingbin123

Marking as stale. No activity in 60 days.

github-actions[bot] avatar Jun 15 '24 09:06 github-actions[bot]