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

Function exportGRUModel

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

Source from the content-addressed store, hash-verified

152
153// GRU with embedding.
154async function exportGRUModel(exportPath) {
155 const model = tfl.sequential();
156 const inputDim = 100;
157 model.add(tfl.layers.embedding({inputDim, outputDim: 20, inputShape: [10]}));
158 model.add(tfl.layers.gru({units: 4, goBackwards: true}));
159
160 await saveModelAndRandomInputs(model, exportPath, inputDim);
161}
162
163// Bidirecitonal LSTM with embedding.
164async function exportBidirectionalLSTMModel(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…