Commit b8f874b
zhangyue
refactor(cpu/linear): drop redundant
- `if (bias_ptr && bias)` → `if (bias_ptr)` (line 75). `bias_ptr` is
`nullptr` iff `!bias` by construction at line 38, so `&& bias` is dead.
- Remove `// Determine `m`, `n`, `k` from shapes and transpose flags.` —
the three lines below literally do exactly that; self-describing now that
names are snake_case.&& bias guard + narrating comment1 parent 2a28bb5 commit b8f874b
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | | - | |
| 74 | + | |
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
| |||
0 commit comments