Skip to content

Commit

Permalink
webapp/trainer: avoid graph shakes
Browse files Browse the repository at this point in the history
  • Loading branch information
tharvik committed Jul 2, 2024
1 parent 06efe2c commit a0f54a1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webapp/src/components/training/Trainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,19 @@ async function startTraining(distributed: boolean): Promise<void> {
const [roundGen, roundLogs] = async_iterator.split(round)
roundGenerator.value = roundGen
epochsOfRoundLogs.value = List<EpochLogs>()
for await (const epoch of roundGenerator.value) {
const [epochGen, epochLogs] = async_iterator.split(epoch)
epochGenerator.value = epochGen
batchesOfEpochLogs.value = List<BatchLogs>()
for await (const batch of epochGenerator.value)
batchesOfEpochLogs.value = batchesOfEpochLogs.value.push(batch);
epochsOfRoundLogs.value = epochsOfRoundLogs.value.push(await epochLogs)
batchesOfEpochLogs.value = List<BatchLogs>()
}
roundsLogs.value = roundsLogs.value.push(await roundLogs)
epochsOfRoundLogs.value = List<EpochLogs>()
}
} catch (e) {
if (e === stopper) {
Expand Down

0 comments on commit a0f54a1

Please sign in to comment.