Changesets · Branches · Tags · Compare
| Changeset | b2ca57dc6b91b39d7374154cf6eb9ace04c8cb4a40fbcdd296a049773b01fcd8 |
|---|---|
| Author | nihui <nihuini@tencent.com> · 2024-08-17 10:39 +08:00 |
| Committer | GitHub <noreply@github.com> · 2024-08-17 10:39 +08:00 |
| Parents | b428072b6350 |
1 file changed
modified tools/pnnx/src/pass_onnx.cpp +2 −0
| @@ -820,6 +820,8 @@ | ||
| 820 | 820 | is_attr_weight = true; |
| 821 | 821 | if (sim_op_type == "Gather" && j == 0) |
| 822 | 822 | is_attr_weight = true; |
| 823 | + if (sim_op_type == "Gemm" && (j == 1 || j == 2)) | |
| 824 | + is_attr_weight = true; | |
| 823 | 825 | if (sim_op_type == "GroupNormalization" && (j == 1 || j == 2)) |
| 824 | 826 | is_attr_weight = true; |
| 825 | 827 | if (sim_op_type == "GRU" && (j == 1 || j == 2 || j == 3 || j == 5)) |