delete trailing whitespaces

This commit is contained in:
huafengchun 2024-07-16 06:26:45 +00:00
parent f8c345d59d
commit 0da1e1fc19
3 changed files with 11 additions and 11 deletions

View file

@ -31,7 +31,7 @@
* *
* @details This function takes a ggml_type as input and returns the corresponding * @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 * 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. * ACL_DT_UNDEFINED.
* *
* @param type The ggml_type to be mapped. * @param type The ggml_type to be mapped.
@ -51,7 +51,7 @@ aclDataType type_mapping(ggml_type type);
* @param tensor Pointer to the ggml_tensor to be converted to ACL tensor. * @param tensor Pointer to the ggml_tensor to be converted to ACL tensor.
* @param ne Pointer to an array containing dimensions. Defaults to nullptr * @param ne Pointer to an array containing dimensions. Defaults to nullptr
* if no customer shape is applied. * 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. * if no customer shape is applied.
* @param dims Number of dimensions in the tensor. Defaults to 0 if no customer * @param dims Number of dimensions in the tensor. Defaults to 0 if no customer
* shape is applied. * shape is applied.
@ -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. * that src1 can be element-wise broadcasted to src0's shape.
* *
* How it works: * How it works:
* *
* if dim0 has padding. * if dim0 has padding.
* a -> (2, 2) padding = 2 * a -> (2, 2) padding = 2
* a: [[1, 2, *, *] * a: [[1, 2, *, *]

View file

@ -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 * @brief Adds two tensors element-wise and stores the result in a destination
* tensor. * tensor.
* *
* This function performs the operation: * This function performs the operation:
* \f[ * \f[
* dst = acl\_src0 + alpha \times acl\_src1 * dst = acl\_src0 + alpha \times acl\_src1
* \f] * \f]
* where alpha is a scalar value and defaults to 1.0f. * where alpha is a scalar value and defaults to 1.0f.
* *
@ -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 * @brief Creates a tensor with values starting from `start`, incremented by
* `step`, and ending before `stop`. * `step`, and ending before `stop`.
* *
* This function performs the operation: * This function performs the operation:
* \f[ * \f[
* \text {out }_{i+1}=\text {out }_i+\text {step} * \text {out }_{i+1}=\text {out }_i+\text {step}
* \f] * \f]
* the range is [start, stop). * the range is [start, stop).
* *
@ -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. * @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` * This function computes the cosine of each element in the source tensor `acl_src`
* and stores the result in the destination tensor `acl_dst`. * and stores the result in the destination tensor `acl_dst`.
* The operation is defined as: * The operation is defined as:
@ -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. * @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` * This function computes the sine of each element in the source tensor `acl_src`
* and stores the result in the destination tensor `acl_dst`. * and stores the result in the destination tensor `acl_dst`.
* The operation is defined as: * The operation is defined as:

View file

@ -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); 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. * backend.
* *
* @details This function dispatches the execution of a 2D pooling operation on * @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);
* prevent division by zero. * prevent division by zero.
* The operation is defined as: * The operation is defined as:
* \f[ * \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} * \quad \text { where } \text{Rms}(\mathbf{x})=\sqrt{\frac{1}{n} \sum_{i=1}^n x_i^2+e p s}
* \f] * \f]
* `eps` is in dst->op_params. * `eps` is in dst->op_params.