Skip to content

Commit 2640473

Browse files
author
noemotiovon
committed
[CANN]codestyle adjustment
Signed-off-by: noemotiovon <[email protected]>
1 parent 38a52cd commit 2640473

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ggml/src/ggml-cann/aclnn_ops.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2706,7 +2706,7 @@ void ggml_cann_count_equal(ggml_backend_cann_context& ctx, ggml_tensor* dst){
27062706

27072707
aclTensor* acl_self = ggml_cann_create_tensor(src0);
27082708
aclTensor* acl_other = ggml_cann_create_tensor(src1);
2709-
2709+
27102710
GGML_CANN_CALL_ACLNN_OP(InplaceEqTensor, acl_self, acl_other);
27112711

27122712
ggml_cann_sum(ctx, dst);
@@ -2724,7 +2724,7 @@ void ggml_cann_step(ggml_backend_cann_context& ctx, ggml_tensor* dst){
27242724
float alphaValue = 0.0f;
27252725
aclScalar* alpha = nullptr;
27262726
alpha = aclCreateScalar(&alphaValue, aclDataType::ACL_FLOAT);
2727-
2727+
27282728
GGML_CANN_CALL_ACLNN_OP(GtScalar, acl_src, alpha, acl_dst);
27292729

27302730
ACL_CHECK(aclDestroyTensor(acl_src));

ggml/src/ggml-cann/aclnn_ops.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -684,14 +684,14 @@ void ggml_cann_pad_reflect_1d(ggml_backend_cann_context& ctx, ggml_tensor* dst);
684684

685685
/**
686686
* @brief Counts the number of equal elements in two ggml tensors using the CANN backend.
687-
*
687+
*
688688
* @details This function performs an element-wise comparison between two input tensors,
689-
* and counts the number of positions where the elements are equal. The result is
689+
* and counts the number of positions where the elements are equal. The result is
690690
* stored in the destination tensor `dst` as a scalar.
691-
*
691+
*
692692
* The operation is optimized using the CANN backend, making it suitable for
693693
* high-performance inference or training scenarios.
694-
*
694+
*
695695
* @param ctx The CANN context used for operations.
696696
* @param dst The destination tensor where the result will be stored.
697697
* dst->op is expected to be `GGML_OP_COUNT_EQUAL`.
@@ -700,13 +700,13 @@ void ggml_cann_count_equal(ggml_backend_cann_context& ctx, ggml_tensor* dst);
700700

701701
/**
702702
* @brief Applies the Step activation function to a ggml tensor using the CANN backend.
703-
*
703+
*
704704
* @details This function applies a step function element-wise to the input tensor, where
705705
* each element is transformed to 1.0 if it is greater than 0, and 0.0 otherwise.
706706
* The result is stored in the destination tensor `dst`.
707-
*
707+
*
708708
* This operation is accelerated using the CANN backend to improve runtime performance.
709-
*
709+
*
710710
* @param ctx The CANN context used for operations.
711711
* @param dst The destination tensor where the result will be stored.
712712
* dst->op is expected to be `GGML_OP_STEP`.

0 commit comments

Comments
 (0)