0
4
0
0
数学库
请问migraphx-driver模型转换到底怎么用,我把migraphx-driver模型固定输出,也无法通多编译
2025-12-05 15:15:55
114
操作
migraphx-driver compile --onnx /mnt/aware/test/test_onnx_haiguang_new/models/superpointFold.onnx --gpu --dyn-input-dim
@image
"[1,1, 640, 640]"
光合私有镜像仓库
全部评论(3)
只看楼主
S
S
这个人很懒,什么也没留下~
0
发帖总数
0
点赞
0
已关注
0
粉丝
关注
私信
屏蔽
suily
只看此人
1楼
试下--input-dim @image 1 1 640 640。使用方法可以参考https://download.sourcefind.cn:65024/directlink/4/%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3/DAS1.7/MIGraphX%E6%95%99%E7%A8%8B-v5.1.0.pdf
2025/12/5
赞
回复
@圈友
暂无数据
尚未选择
发送
Z
Z
这个人很懒,什么也没留下~
0
发帖总数
0
点赞
0
已关注
0
粉丝
关注
私信
屏蔽
zzhzzh
回复
@suily
你好,还是有问题,先将onnx转成静态模型倒是可以。@320 = multibroadcast[out_lens={1, 640, 4},out_dyn_dims={}](@6) -> float_type, {1, 640, 4}, {2560, 4, 1} @321 = gather[axis=0](@4,@140) -> int64_type, {1}, {0} @322 = convert[target_type=9](@321) -> int64_type, {1}, {0} @323 = gather[axis=0](@2,@137) -> int64_type, {1}, {0} @324 = convert[target_type=9](@323) -> int64_type, {1}, {0} @325 = slice[axes={0},starts={0},ends={4}](@1) -> int64_type, {4}, {1} @326 = reshape[dims={-1, 1}](@3) -> int64_type, {640, 1}, {1, 1} @327 = multibroadcast[out_lens={1, 640, 1},out_dyn_dims={}](@129) -> int64_type, {1, 640, 1}, {1, 0, 1} @328 = multibroadcast[out_lens={1, 640, 1},out_dyn_dims={}](@326) -> int64_type, {1, 640, 1}, {0, 1, 1} @329 = add(@327,@328) -> int64_type, {1, 640, 1}, {0, 1, 1} @330 = multibroadcast[out_lens={1, 640, 4},out_dyn_dims={}](@329) -> int64_type, {1, 640, 4}, {0, 1, 0} @331 = multibroadcast[out_lens={1, 640, 4},out_dyn_dims={}](@325) -> int64_type, {1, 640, 4}, {0, 0, 1} @332 = add(@330,@331) -> int64_type, {1, 640, 4}, {2560, 4, 1} @333 = equal(@0,@128) -> int64_type, {3}, {1} @334 = convert[target_type=0](@333) -> bool_type, {3}, {1} @335 = where(@334,@127,@0) -> int64_type, {3}, {1} @336 = multibroadcast[out_lens={1, 640, 4},out_dyn_dims={}](@129) -> int64_type, {1, 640, 4}, {1, 0, 0} @337 = contiguous(@336) -> int64_type, {1, 640, 4}, {2560, 4, 1} @338 = unsqueeze[axes={-1},steps={}](@337) -> int64_type, {1, 640, 4, 1}, {2560, 4, 1, 1} @339 = equal(@0,@125) -> int64_type, {3}, {1} @340 = convert[target_type=0](@339) -> bool_type, {3}, {1} @341 = where(@340,@124,@0) -> int64_type, {3}, {1} @342 = multibroadcast[out_lens={1, 640, 4},out_dyn_dims={}](@326) -> int64_type, {1, 640, 4}, {0, 1, 0} @343 = contiguous(@342) -> int64_type, {1, 640, 4}, {2560, 4, 1} @344 = unsqueeze[axes={-1},steps={}](@343) -> int64_type, {1, 640, 4, 1}, {2560, 4, 1, 1} @345 = equal(@0,@122) -> int64_type, {3}, {1} @346 = convert[target_type=0](@345) -> bool_type, {3}, {1} @347 = where(@346,@121,@0) -> int64_type, {3}, {1} @348 = multibroadcast[out_lens={1, 640, 4},out_dyn_dims={}](@325) -> int64_type, {1, 640, 4}, {0, 0, 1} @349 = contiguous(@348) -> int64_type, {1, 640, 4}, {2560, 4, 1} @350 = unsqueeze[axes={-1},steps={}](@349) -> int64_type, {1, 640, 4, 1}, {2560, 4, 1, 1} @351 = concat[axis=-1](@338,@344,@350) -> int64_type, {1, 640, 4, 3}, {7680, 12, 3, 1} terminate called after throwing an instance of 'migraphx::version_5_1_0::exception' what(): /home/migraphx/src/include/migraphx/check_shapes.hpp:233: same_ndims: concat: Number of dimensions do not match Aborted (core dumped)
2025/12/11
赞
回复
@圈友
暂无数据
尚未选择
发送
S
S
这个人很懒,什么也没留下~
0
发帖总数
0
点赞
0
已关注
0
粉丝
关注
私信
屏蔽
suily
回复
@zzhzzh
麻烦发下完整命令。并且可以先检查下模型各层是否有固定shape或者动态调整shape的操作
2025/12/12
赞
回复
@圈友
暂无数据
尚未选择
发送
没有更多内容了
--
楼主
0
点赞
0
帖子
关注
私信
楼主热帖
暂无数据
常见问题新帖
暂无数据