]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/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>
Fri, 12 Dec 2025 15:53:03 +0000 (17:53 +0200)
commitc137d11b812243b25d203f1b4e42afa52cee2216
tree2892f1fea26f7fa1ed406cec2d3854024935480b
parent24b981eff7232b6abbffc36931d045928eff67df
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
ggml/src/ggml-cann/aclnn_ops.cpp