MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / saveDecoder

Function saveDecoder

fashion-mnist-vae/train.js:128–134  ·  view source on GitHub ↗
(savePath, decoderModel)

Source from the content-addressed store, hash-verified

126 }
127
128 async function saveDecoder(savePath, decoderModel) {
129 const decoderPath = path.join(savePath, 'decoder');
130 mkdirp.sync(decoderPath);
131 const saveURL = `file://${decoderPath}`;
132 console.log(`Saving decoder to ${saveURL}`);
133 await decoderModel.save(saveURL);
134 }
135
136 async function run(savePath, logDir) {
137 // Load the data

Callers 1

trainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected