SIGN IN SIGN UP

CANN: Improve device ID handling and aclnnArange checks (#16752)

* cann: improve device ID handling and aclnnArange checks

- Stop relying on CANN's internal device ID retrieval; use a global variable instead.
- Enforce stricter dimension validation in aclnnArange for better compatibility across CANN versions.

* cann: use thread local var
C
Chenguang Li committed
3479efd112b3910d2d008ad08fe4cb4895605903
Parent: 463bbf2
Committed by GitHub <noreply@github.com> on 10/28/2025, 2:54:53 AM