Commit c7acbbb
authored
fix: check payload before accumulating bytes received (#430)
Aggregators sometimes send empty messages at the end of training. Previously, the trainer would throw an error when attempting to get the number of bytes received from an empty message.
This is fixed by checking for an empty payload.1 parent f1d9026 commit c7acbbb
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | | - | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
345 | 346 | | |
346 | 347 | | |
347 | 348 | | |
348 | | - | |
349 | | - | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
350 | 352 | | |
351 | 353 | | |
352 | 354 | | |
| |||
0 commit comments