Skip to content

Commit

Permalink
fix CANN compile fail bug: the assert in ascend kernel function doesn…
Browse files Browse the repository at this point in the history
…'t supportted on some CANN version
  • Loading branch information
leo-pony committed Nov 27, 2024
1 parent 8d6454a commit af21be2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ggml/src/ggml-cann/kernels/dup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class DupByRows {
// Input has four dims.
int64_t op_block_num = GetBlockNum();
int64_t op_block_idx = GetBlockIdx();
assert(op_block_idx < SUPPORTED_MAX_DIM && op_block_idx >= 0, "Invalid block index:%d, max is:%d\n", op_block_idx, SUPPORTED_MAX_DIM);

// param
num_rows = input_ne_ub[1] * input_ne_ub[2] * input_ne_ub[3];
Expand Down

0 comments on commit af21be2

Please sign in to comment.