Skip to content

Commit 0da1e1f

Browse files
committed
delete trailing whitespaces
1 parent f8c345d commit 0da1e1f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

ggml/src/ggml-cann/acl_tensor.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*
3232
* @details This function takes a ggml_type as input and returns the corresponding
3333
* aclDataType. It supports mapping for various ggml_types. If the input type
34-
* does not match any of the predefined ggml_types, the function returns
34+
* does not match any of the predefined ggml_types, the function returns
3535
* ACL_DT_UNDEFINED.
3636
*
3737
* @param type The ggml_type to be mapped.
@@ -51,7 +51,7 @@ aclDataType type_mapping(ggml_type type);
5151
* @param tensor Pointer to the ggml_tensor to be converted to ACL tensor.
5252
* @param ne Pointer to an array containing dimensions. Defaults to nullptr
5353
* if no customer shape is applied.
54-
* @param nb Pointer to an array containing strides. Defaults to nullptr
54+
* @param nb Pointer to an array containing strides. Defaults to nullptr
5555
* if no customer shape is applied.
5656
* @param dims Number of dimensions in the tensor. Defaults to 0 if no customer
5757
* shape is applied.
@@ -132,7 +132,7 @@ bool need_bcast(const ggml_tensor* t0, const ggml_tensor* t1);
132132
* that src1 can be element-wise broadcasted to src0's shape.
133133
*
134134
* How it works:
135-
*
135+
*
136136
* if dim0 has padding.
137137
* a -> (2, 2) padding = 2
138138
* a: [[1, 2, *, *]

ggml/src/ggml-cann/aclnn_ops.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ void ggml_cann_repeat(ggml_backend_cann_context& ctx, ggml_tensor* dst) {
109109
* @brief Adds two tensors element-wise and stores the result in a destination
110110
* tensor.
111111
*
112-
* This function performs the operation:
112+
* This function performs the operation:
113113
* \f[
114-
* dst = acl\_src0 + alpha \times acl\_src1
114+
* dst = acl\_src0 + alpha \times acl\_src1
115115
* \f]
116116
* where alpha is a scalar value and defaults to 1.0f.
117117
*
@@ -250,9 +250,9 @@ void ggml_cann_concat(ggml_backend_cann_context& ctx, ggml_tensor* dst) {
250250
* @brief Creates a tensor with values starting from `start`, incremented by
251251
* `step`, and ending before `stop`.
252252
*
253-
* This function performs the operation:
253+
* This function performs the operation:
254254
* \f[
255-
* \text {out }_{i+1}=\text {out }_i+\text {step}
255+
* \text {out }_{i+1}=\text {out }_i+\text {step}
256256
* \f]
257257
* the range is [start, stop).
258258
*
@@ -1568,7 +1568,7 @@ static void aclnn_mul(ggml_backend_cann_context& ctx,
15681568

15691569
/**
15701570
* @brief Applies element-wise cosine function to the elements of a tensor.
1571-
*
1571+
*
15721572
* This function computes the cosine of each element in the source tensor `acl_src`
15731573
* and stores the result in the destination tensor `acl_dst`.
15741574
* The operation is defined as:
@@ -1598,7 +1598,7 @@ static void aclnn_cos(ggml_backend_cann_context& ctx, aclTensor* acl_src,
15981598

15991599
/**
16001600
* @brief Applies element-wise sine function to the elements of a tensor.
1601-
*
1601+
*
16021602
* This function computes the sine of each element in the source tensor `acl_src`
16031603
* and stores the result in the destination tensor `acl_dst`.
16041604
* The operation is defined as:

ggml/src/ggml-cann/aclnn_ops.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ void ggml_cann_upsample_nearest2d(ggml_backend_cann_context& ctx,
308308
void ggml_cann_pad(ggml_backend_cann_context& ctx, ggml_tensor* dst);
309309

310310
/**
311-
* @brief Executes a 2D pooling operation on a ggml tensor using the CANN
311+
* @brief Executes a 2D pooling operation on a ggml tensor using the CANN
312312
* backend.
313313
*
314314
* @details This function dispatches the execution of a 2D pooling operation on
@@ -355,7 +355,7 @@ void ggml_cann_dup(ggml_backend_cann_context& ctx, ggml_tensor* dst);
355355
* prevent division by zero.
356356
* The operation is defined as:
357357
* \f[
358-
* \text{RmsNorm}\left(x_i\right)=\frac{x_i}{\text{Rms}(\mathbf{x})} g_i,
358+
* \text{RmsNorm}\left(x_i\right)=\frac{x_i}{\text{Rms}(\mathbf{x})} g_i,
359359
* \quad \text { where } \text{Rms}(\mathbf{x})=\sqrt{\frac{1}{n} \sum_{i=1}^n x_i^2+e p s}
360360
* \f]
361361
* `eps` is in dst->op_params.

0 commit comments

Comments
 (0)