(exportPath)
| 142 | |
| 143 | // SimpleRNN with embedding. |
| 144 | async function exportSimpleRNNModel(exportPath) { |
| 145 | const model = tfl.sequential(); |
| 146 | const inputDim = 100; |
| 147 | model.add(tfl.layers.embedding({inputDim, outputDim: 20, inputShape: [10]})); |
| 148 | model.add(tfl.layers.simpleRNN({units: 4})); |
| 149 | |
| 150 | await saveModelAndRandomInputs(model, exportPath, inputDim); |
| 151 | } |
| 152 | |
| 153 | // GRU with embedding. |
| 154 | async function exportGRUModel(exportPath) { |
no test coverage detected
searching dependent graphs…