MCPcopy Index your code
hub / github.com/tensorflow/tfjs / exportSimpleRNNModel

Function exportSimpleRNNModel

e2e/integration_tests/create_save_predict.js:144–151  ·  view source on GitHub ↗
(exportPath)

Source from the content-addressed store, hash-verified

142
143// SimpleRNN with embedding.
144async 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.
154async function exportGRUModel(exportPath) {

Callers 1

Calls 2

saveModelAndRandomInputsFunction · 0.85
addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…