diff options
Diffstat (limited to 'app/relay/modules')
| -rw-r--r-- | app/relay/modules/test.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/relay/modules/test.js b/app/relay/modules/test.js index 57a324a..8876f7c 100644 --- a/app/relay/modules/test.js +++ b/app/relay/modules/test.js @@ -7,6 +7,12 @@ const cpu = { type: 'perl', script: 'test.pl', params: '--train', + listen: (task, line, i) => { + if ( (parseInt(line) % 10) === 0) { + return { type: 'epoch', task, epoch: (i/10)|0 } + } + return null + } } const gpu = { type: 'python', |
