@@ -844,7 +844,7 @@ void ggml_cann_pool2d(ggml_backend_cann_context& ctx, ggml_tensor* dst) {
844
844
ggml_cann_max_pool2d (ctx, dst);
845
845
break ;
846
846
case GGML_OP_POOL_COUNT:
847
- GGML_ASSERT ( false );
847
+ GGML_ABORT ( " fatal error " );
848
848
break ;
849
849
}
850
850
}
@@ -931,9 +931,9 @@ void ggml_cann_dup(ggml_backend_cann_context& ctx, ggml_tensor* dst) {
931
931
((ggml_tensor*)dst->extra )->nb );
932
932
return ;
933
933
}
934
- GGML_ASSERT ( false );
934
+ GGML_ABORT ( " fatal error " );
935
935
}
936
- GGML_ASSERT ( false );
936
+ GGML_ABORT ( " fatal error " );
937
937
}
938
938
if (dst->type == GGML_TYPE_F32) {
939
939
if (ggml_are_same_shape (src, dst)) {
@@ -955,12 +955,12 @@ void ggml_cann_dup(ggml_backend_cann_context& ctx, ggml_tensor* dst) {
955
955
((ggml_tensor*)dst->extra )->nb );
956
956
return ;
957
957
}
958
- GGML_ASSERT ( false );
958
+ GGML_ABORT ( " fatal error " );
959
959
}
960
- GGML_ASSERT ( false );
960
+ GGML_ABORT ( " fatal error " );
961
961
}
962
962
// TODO
963
- GGML_ASSERT ( false );
963
+ GGML_ABORT ( " fatal error " );
964
964
} else if (src->type == GGML_TYPE_F32) {
965
965
// TODO: if (src0->type == dst->type && ne00 == ne0 && nb00 == type_size
966
966
// && nb0 == type_size)
@@ -991,10 +991,10 @@ void ggml_cann_dup(ggml_backend_cann_context& ctx, ggml_tensor* dst) {
991
991
((ggml_tensor*)dst->extra )->nb );
992
992
return ;
993
993
}
994
- GGML_ASSERT ( false );
994
+ GGML_ABORT ( " fatal error " );
995
995
} else {
996
996
// TODO: dst not contiguous
997
- GGML_ASSERT ( false );
997
+ GGML_ABORT ( " fatal error " );
998
998
}
999
999
}
1000
1000
if (dst->type == GGML_TYPE_F16) {
@@ -1017,19 +1017,19 @@ void ggml_cann_dup(ggml_backend_cann_context& ctx, ggml_tensor* dst) {
1017
1017
((ggml_tensor*)dst->extra )->nb );
1018
1018
return ;
1019
1019
}
1020
- GGML_ASSERT ( false );
1020
+ GGML_ABORT ( " fatal error " );
1021
1021
}
1022
1022
}
1023
1023
// TODO
1024
- GGML_ASSERT ( false );
1024
+ GGML_ABORT ( " fatal error " );
1025
1025
} else {
1026
1026
if (ggml_are_same_shape (src, dst)) {
1027
1027
cann_copy (ctx, acl_src, acl_dst);
1028
1028
ACL_CHECK (aclDestroyTensor (acl_src));
1029
1029
ACL_CHECK (aclDestroyTensor (acl_dst));
1030
1030
return ;
1031
1031
}
1032
- GGML_ASSERT ( false );
1032
+ GGML_ABORT ( " fatal error " );
1033
1033
}
1034
1034
}
1035
1035
@@ -2219,7 +2219,7 @@ void ggml_cann_get_rows(ggml_backend_cann_context& ctx, ggml_tensor* dst) {
2219
2219
((ggml_tensor*)dst->extra )->nb );
2220
2220
break ;
2221
2221
default :
2222
- GGML_ASSERT ( false );
2222
+ GGML_ABORT ( " fatal error " );
2223
2223
break ;
2224
2224
}
2225
2225
}
@@ -2492,7 +2492,7 @@ void ggml_cann_mul_mat(ggml_backend_cann_context& ctx, ggml_tensor* dst) {
2492
2492
ggml_cann_mul_mat_q8_0 (ctx, dst);
2493
2493
break ;
2494
2494
default :
2495
- GGML_ASSERT ( false );
2495
+ GGML_ABORT ( " fatal error " );
2496
2496
break ;
2497
2497
}
2498
2498
}
0 commit comments