MNN icon indicating copy to clipboard operation
MNN copied to clipboard

MNN.expr.scalar无法使用返回变量,报segmentation fault (core dumped)错误

Open jropen opened this issue 1 year ago • 1 comments

MNN 版本:2.8.0

运行以下代码:

import MNN

b = MNN.expr.scalar(12, dtype=MNN.expr.int64)
print("bbb")
print(b)

报错输出:

bbb
[1]    5783 segmentation fault (core dumped)  python mnn_test.py

神奇的是,能打印“bbb”,说明调用没问题,但使用该变量就会报 segmentation fault错误

jropen avatar Mar 25 '24 11:03 jropen

额,mnn 是不支持 int64 的,可以换成用 int ,这个 crash 问题后面会修改

jxt1234 avatar Apr 08 '24 08:04 jxt1234

Marking as stale. No activity in 60 days.

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