]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
CANN: fix acl_tensor_ptr usage in ASCEND_310P ROPE (llama/17347)
authorChenguang Li <redacted>
Tue, 18 Nov 2025 08:41:52 +0000 (16:41 +0800)
committerGeorgi Gerganov <redacted>
Thu, 11 Dec 2025 13:32:39 +0000 (15:32 +0200)
commit01a23ac327e19b2f64caf55f6c0fbbfb04a0f247
tree34484417894bd7c0ec4c87b3c178fb1ed6014f32
parent746d1f8c15d544aadc1068ca9caa4677901f098b
CANN: fix acl_tensor_ptr usage in ASCEND_310P ROPE (llama/17347)

* cann: fix acl_tensor_ptr usage in ASCEND_310P ROPE implementation

Fix compilation errors in the ASCEND_310P-specific ROPE operation code
by adding .get() calls when passing acl_tensor_ptr smart pointers to
functions expecting raw aclTensor* pointers.

This fixes the code that was missed in the previous refactoring commit
(8981848) which changed ggml_cann_create_tensor() return type from
aclTensor* to acl_tensor_ptr.

* cann: format code
src/ggml-cann/aclnn_ops.cpp