Skip to content

Commit f097d89

Browse files
committed
clean code
1 parent 157d59f commit f097d89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ggml/src/ggml-cann/aclnn_ops.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ void ggml_cann_mul_mat_id(ggml_backend_cann_context& ctx, ggml_tensor* dst);
10251025
* @brief Check whether a tensor is a weight tensor for matrix multiplication.
10261026
*
10271027
* @details Checks whether the given tensor serves as weight parameters in matrix multiplication operations,
1028-
* typically within neural network layers. The function maintains a static set of canonical weight
1028+
* typically within neural network layers. The function maintains a static set of canonical weight
10291029
* naming suffixes from Transformer-based architectures. Uses substring matching to identify weight
10301030
* tensors even with hierarchical naming patterns.
10311031
*

ggml/src/ggml-cann/ggml-cann.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ static void weight_format_to_nz(ggml_tensor *tensor, const void *data, size_t of
11511151
aclTensor *weightTransposed = nullptr;
11521152
CreateAclTensorWeight(data, weightTransposedShape, &weightTransposedDeviceAddr,
11531153
ggml_cann_type_mapping(tensor->type), &weightTransposed);
1154-
1154+
11551155
uint64_t workspaceSize = 0;
11561156
aclOpExecutor *executor;
11571157
void *workspaceAddr = nullptr;

0 commit comments

Comments
 (0)