File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -6807,17 +6807,17 @@ static void list_all_ops() {
6807
6807
static void show_test_coverage () {
6808
6808
std::set<std::string> all_ops;
6809
6809
for (int i = 1 ; i < GGML_OP_COUNT; i++) {
6810
- auto op_name = ggml_op_name (( enum ggml_op)i) ;
6811
- if (strcmp (op_name, " VIEW " ) == 0 ||
6812
- strcmp (op_name, " RESHAPE " ) == 0 ||
6813
- strcmp (op_name, " PERMUTE " ) == 0 ||
6814
- strcmp (op_name, " TRANSPOSE " ) == 0 ||
6815
- strcmp (op_name, " CONT " ) == 0 ||
6816
- strcmp (op_name, " GLU " ) == 0 ||
6817
- strcmp (op_name, " UNARY " ) == 0 ) {
6810
+ auto op = ( enum ggml_op)i;
6811
+ if (op == GGML_OP_VIEW ||
6812
+ op == GGML_OP_RESHAPE ||
6813
+ op == GGML_OP_PERMUTE ||
6814
+ op == GGML_OP_TRANSPOSE ||
6815
+ op == GGML_OP_CONT ||
6816
+ op == GGML_OP_GLU ||
6817
+ op == GGML_OP_UNARY ) {
6818
6818
continue ;
6819
6819
}
6820
- all_ops.insert (op_name );
6820
+ all_ops.insert (ggml_op_name (op) );
6821
6821
}
6822
6822
for (int i = 0 ; i < GGML_UNARY_OP_COUNT; i++) {
6823
6823
all_ops.insert (ggml_unary_op_name ((enum ggml_unary_op)i));
You can’t perform that action at this time.
0 commit comments