Commit f9ede76
committed
refactor(rpc): initial zero check in create_node
The caller (`graph_compute`) already checks `id != 0` when handling
a `nullptr` return from `create_node`, correctly distinguishing
intentional null links from actual errors. This makes the initial
`if (id == 0)` check redundant.
Also removes the log message when a tensor ID is not found in the
provided map which was added in this branch.
Signed-off-by: Ville Vesilehto <[email protected]>1 parent 604f0a0 commit f9ede76
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1247 | 1247 | | |
1248 | 1248 | | |
1249 | 1249 | | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | 1250 | | |
1254 | 1251 | | |
1255 | 1252 | | |
1256 | 1253 | | |
1257 | 1254 | | |
1258 | 1255 | | |
1259 | | - | |
1260 | 1256 | | |
1261 | 1257 | | |
1262 | 1258 | | |
| |||
0 commit comments