Skip to content

Commit

Permalink
delete trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
hipudding committed Jul 16, 2024
1 parent f8c345d commit 0da1e1f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions ggml/src/ggml-cann/acl_tensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*
* @details This function takes a ggml_type as input and returns the corresponding
* aclDataType. It supports mapping for various ggml_types. If the input type
* does not match any of the predefined ggml_types, the function returns
* does not match any of the predefined ggml_types, the function returns
* ACL_DT_UNDEFINED.
*
* @param type The ggml_type to be mapped.
Expand All @@ -51,7 +51,7 @@ aclDataType type_mapping(ggml_type type);
* @param tensor Pointer to the ggml_tensor to be converted to ACL tensor.
* @param ne Pointer to an array containing dimensions. Defaults to nullptr
* if no customer shape is applied.
* @param nb Pointer to an array containing strides. Defaults to nullptr
* @param nb Pointer to an array containing strides. Defaults to nullptr
* if no customer shape is applied.
* @param dims Number of dimensions in the tensor. Defaults to 0 if no customer
* shape is applied.
Expand Down Expand Up @@ -132,7 +132,7 @@ bool need_bcast(const ggml_tensor* t0, const ggml_tensor* t1);
* that src1 can be element-wise broadcasted to src0's shape.
*
* How it works:
*
*
* if dim0 has padding.
* a -> (2, 2) padding = 2
* a: [[1, 2, *, *]
Expand Down
12 changes: 6 additions & 6 deletions ggml/src/ggml-cann/aclnn_ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ void ggml_cann_repeat(ggml_backend_cann_context& ctx, ggml_tensor* dst) {
* @brief Adds two tensors element-wise and stores the result in a destination
* tensor.
*
* This function performs the operation:
* This function performs the operation:
* \f[
* dst = acl\_src0 + alpha \times acl\_src1
* dst = acl\_src0 + alpha \times acl\_src1
* \f]
* where alpha is a scalar value and defaults to 1.0f.
*
Expand Down Expand Up @@ -250,9 +250,9 @@ void ggml_cann_concat(ggml_backend_cann_context& ctx, ggml_tensor* dst) {
* @brief Creates a tensor with values starting from `start`, incremented by
* `step`, and ending before `stop`.
*
* This function performs the operation:
* This function performs the operation:
* \f[
* \text {out }_{i+1}=\text {out }_i+\text {step}
* \text {out }_{i+1}=\text {out }_i+\text {step}
* \f]
* the range is [start, stop).
*
Expand Down Expand Up @@ -1568,7 +1568,7 @@ static void aclnn_mul(ggml_backend_cann_context& ctx,

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

/**
* @brief Applies element-wise sine function to the elements of a tensor.
*
*
* This function computes the sine of each element in the source tensor `acl_src`
* and stores the result in the destination tensor `acl_dst`.
* The operation is defined as:
Expand Down
4 changes: 2 additions & 2 deletions ggml/src/ggml-cann/aclnn_ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ void ggml_cann_upsample_nearest2d(ggml_backend_cann_context& ctx,
void ggml_cann_pad(ggml_backend_cann_context& ctx, ggml_tensor* dst);

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

0 comments on commit 0da1e1f

Please sign in to comment.