diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/relay/interpreters.js | 5 | ||||
| -rw-r--r-- | app/relay/modules/samplernn.js | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/app/relay/interpreters.js b/app/relay/interpreters.js index b1507e6..d892acf 100644 --- a/app/relay/interpreters.js +++ b/app/relay/interpreters.js @@ -18,6 +18,11 @@ export default { params: ['-u'], gpu: false, }, + pytorch_samplernn: { + cmd: process.env.PYTORCH_SAMPLERNN_BIN, + params: ['-u'], + gpu: true, + }, pytorch: { cmd: process.env.PYTORCH_BIN, params: ['-u'], diff --git a/app/relay/modules/samplernn.js b/app/relay/modules/samplernn.js index 900679d..d25698f 100644 --- a/app/relay/modules/samplernn.js +++ b/app/relay/modules/samplernn.js @@ -23,7 +23,7 @@ const fetch = { } } const train = { - type: 'pytorch', + type: 'pytorch_samplernn', script: 'train.py', params: (task) => { return [ @@ -52,7 +52,7 @@ const train = { after: 'publish', } const generate = { - type: 'pytorch', + type: 'pytorch_samplernn', script: 'generate.py', params: (task) => { return [ |
