OpenCV 4.7.0 Huawei CANN support error: CANN graph check failed in function 'compileCannGraph'

hello, I’m testing Huawei Ascend CANN.

according to guide Huawei CANN Backend · opencv/opencv Wiki · GitHub

but the sample code result in error:

[ERROR:0@0.822] global net_cann.cpp:286 compileCannGraph CANN graph check failed, ret = 4294967295
terminate called after throwing an instance of ‘cv::Exception’
what(): OpenCV(4.7.0) /usr/huaweitest1/OpenCV_4.7/opencv-4.7.0/modules/dnn/src/net_cann.cpp:286: error: (-2:Unspecified error) CANN graph check failed in function ‘compileCannGraph’

[ERROR:0@1.427] global net_cann.cpp:286 compileCannGraph CANN graph check failed, ret = 4294967295
terminate called after throwing an instance of ‘cv::Exception’
what(): OpenCV(4.7.0) /usr/huaweitest1/OpenCV_4.7/opencv-4.7.0/modules/dnn/src/net_cann.cpp:286: error: (-2:Unspecified error) CANN graph check failed in function ‘compileCannGraph’

[ERROR:0@1.959] global op_cann.cpp:258 loadToDevice CANN check failed, ret = 100000
terminate called after throwing an instance of ‘cv::Exception’
what(): OpenCV(4.7.0) /usr/huaweitest1/OpenCV_4.7/opencv-4.7.0/modules/dnn/src/op_cann.cpp:258: error: (-2:Unspecified error) CANN check failed in function ‘loadToDevice’

Aborted (core dumped)

I checked OpenCV 4.7 and CANN installation, seems fine.

Anyone knows about this issue?

appears to have been reported already (by yourself?)

Yes. I’m not sure the forum or github will have the solution.