Skip to content

Commit fe1f1c9

Browse files
author
noemotiovon
committed
adjustment
1 parent c71809c commit fe1f1c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ggml/src/ggml-cann/aclnn_ops.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2948,7 +2948,7 @@ void ggml_cann_rope(ggml_backend_cann_context& ctx, ggml_tensor* dst) {
29482948
int acl_mode = mode;
29492949
if (mode == 0) {
29502950
acl_mode = 1;
2951-
}
2951+
}
29522952

29532953
aclTensor* acl_x = ggml_cann_create_tensor(src0);
29542954
aclTensor* acl_dst = ggml_cann_create_tensor(dst);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ static bool ggml_backend_cann_supports_op(ggml_backend_dev_t dev,
17211721
case GGML_OP_ROPE: {
17221722
// TODO: with ops-test v == 1
17231723
float freq_scale, attn_factor, ext_factor;
1724-
memcpy(&freq_scale, (int32_t*)op->op_params + 6, sizeof(float));
1724+
memcpy(&freq_scale, (int32_t*)op->op_params + 6, sizeof(float));
17251725
memcpy(&attn_factor, (int32_t*)op->op_params + 8, sizeof(float));
17261726
memcpy(&ext_factor, (int32_t*)op->op_params + 7, sizeof(float));
17271727
// TODO: with freq_factors
@@ -1760,8 +1760,8 @@ static bool ggml_backend_cann_supports_op(ggml_backend_dev_t dev,
17601760
}
17611761
return true;
17621762
}
1763-
case GGML_OP_IM2COL:
1764-
case GGML_OP_CONCAT:
1763+
case GGML_OP_IM2COL:
1764+
case GGML_OP_CONCAT:
17651765
case GGML_OP_DUP:
17661766
case GGML_OP_REPEAT:
17671767
case GGML_OP_NONE:

0 commit comments

Comments
 (0)