CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 02:50:29 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/opencv/opencv.git
etag: W/"d89999361feb3c18bb18878b1d74b126"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=ydj53ZARh5ttq9%2F4aqafIhuIhm7W0GN7j2xFT0P679njHtAPC6tdK34hN%2FGcr6SE4VxwRnDNeR8kJwsu99MznGCo7tqq22K%2FjOW%2FmHvj9E%2BQzDz58KQMlu8iPOQ6qqW8dleQHEjFiXBviwth0tJktqt%2BPirr4ZM0ret8O3egUwKYFZWwiU%2FPJKt8qO76DvIWN8pG0H7Y3wWG7sDYhu3GZ1dabJGVkLa3UreL02xnAFOtIgj%2FVT6wI25Z4bLBZ26ynnROI7c8wIcl0JIaX7R6iA%3D%3D--Hfz4LqlI6CqDe7w3--j%2FmNyiO0n0WXuiOlCItPMg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1889028074.1753239026; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 02:50:26 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 02:50:26 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CEAC:394F4C:28E5C9:39D915:68804DF2
Merge pull request #23401 from fengyuentau:fix_cann_layer_support · opencv/opencv@3c1fcd5 · GitHub
Copy file name to clipboardExpand all lines: modules/dnn/include/opencv2/dnn/dnn.hpp
Copy file name to clipboardExpand all lines: modules/dnn/src/layers/batch_norm_layer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/layers/blank_layer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/layers/concat_layer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/layers/const_layer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/layers/convolution_layer.cpp
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Commit 3c1fcd5
authored
Merge pull request #23401 from fengyuentau:fix_cann_layer_support
dnn: Support more operators in CANN backend #23401
This PR adds the support of following layers:
- [x] Sub
- [x] PRelu
- [x] DeConv
- [x] Also warn users if backend is switched back to default if some of the layers are not supported.
- [ ] [Dropped] LSTM: some hacks (adding layers) were introduced which makes it even harder to build the graph for CANN backend.
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake1 parent b3a2444 commit 3c1fcd5Copy full SHA for 3c1fcd5
File tree
Expand file treeCollapse file tree
21 files changed
+178
-80
lines changedFilter options
- modules/dnn
- include/opencv2/dnn
- src
- layers
Expand file treeCollapse file tree
21 files changed
+178
-80
lines changedmodules/dnn/include/opencv2/dnn/dnn.hpp
Copy file name to clipboardExpand all lines: modules/dnn/include/opencv2/dnn/dnn.hpp+4-2Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
347 | 347 |
| |
348 | 348 |
| |
349 | 349 |
| |
350 |
| - | |
| 350 | + | |
| 351 | + | |
351 | 352 |
| |
352 | 353 |
| |
353 |
| - | |
| 354 | + | |
| 355 | + | |
354 | 356 |
| |
355 | 357 |
| |
356 | 358 |
| |
|
+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
87 |
| - | |
| 87 | + | |
| 88 | + | |
88 | 89 |
| |
89 | 90 |
| |
90 | 91 |
| |
|
modules/dnn/src/layers/batch_norm_layer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/layers/batch_norm_layer.cpp+3-2Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
392 | 392 |
| |
393 | 393 |
| |
394 | 394 |
| |
395 |
| - | |
| 395 | + | |
| 396 | + | |
396 | 397 |
| |
397 | 398 |
| |
398 | 399 |
| |
399 | 400 |
| |
400 | 401 |
| |
401 |
| - | |
| 402 | + | |
402 | 403 |
| |
403 | 404 |
| |
404 | 405 |
| |
|
modules/dnn/src/layers/blank_layer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/layers/blank_layer.cpp+3-2Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
124 |
| - | |
| 124 | + | |
| 125 | + | |
125 | 126 |
| |
126 | 127 |
| |
127 |
| - | |
| 128 | + | |
128 | 129 |
| |
129 | 130 |
| |
130 | 131 |
| |
|
modules/dnn/src/layers/concat_layer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/layers/concat_layer.cpp+5-4Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
367 | 367 |
| |
368 | 368 |
| |
369 | 369 |
| |
370 |
| - | |
| 370 | + | |
| 371 | + | |
371 | 372 |
| |
372 | 373 |
| |
373 |
| - | |
| 374 | + | |
374 | 375 |
| |
375 | 376 |
| |
376 | 377 |
| |
377 | 378 |
| |
378 | 379 |
| |
379 |
| - | |
| 380 | + | |
380 | 381 |
| |
381 | 382 |
| |
382 | 383 |
| |
383 | 384 |
| |
384 | 385 |
| |
385 | 386 |
| |
386 | 387 |
| |
387 |
| - | |
| 388 | + | |
388 | 389 |
| |
389 | 390 |
| |
390 | 391 |
| |
|
modules/dnn/src/layers/const_layer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/layers/const_layer.cpp+2-1Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
87 |
| - | |
| 87 | + | |
| 88 | + | |
88 | 89 |
| |
89 | 90 |
| |
90 | 91 |
| |
|
modules/dnn/src/layers/convolution_layer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/layers/convolution_layer.cpp+79-4Lines changed: 79 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
782 | 782 |
| |
783 | 783 |
| |
784 | 784 |
| |
785 |
| - | |
| 785 | + | |
| 786 | + | |
786 | 787 |
| |
787 | 788 |
| |
788 | 789 |
| |
789 |
| - | |
| 790 | + | |
790 | 791 |
| |
791 | 792 |
| |
792 | 793 |
| |
793 | 794 |
| |
794 |
| - | |
| 795 | + | |
795 | 796 |
| |
796 | 797 |
| |
797 | 798 |
| |
| |||
1611 | 1612 |
| |
1612 | 1613 |
| |
1613 | 1614 |
| |
1614 |
| - | |
| 1615 | + | |
| 1616 | + | |
1615 | 1617 |
| |
1616 | 1618 |
| |
1617 | 1619 |
| |
| |||
2272 | 2274 |
| |
2273 | 2275 |
| |
2274 | 2276 |
| |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
| 2286 | + | |
| 2287 | + | |
| 2288 | + | |
| 2289 | + | |
| 2290 | + | |
| 2291 | + | |
| 2292 | + | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
| 2339 | + | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
2275 | 2350 |
| |
2276 | 2351 |
| |
2277 | 2352 |
| |
|
You can’t perform that action at this time.
0 commit comments