MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / draw

Function draw

fashion-mnist-vae/client.js:154–162  ·  view source on GitHub ↗

* Generate an evenly spaced 2d latent space.

()

Source from the content-addressed store, hash-verified

152 * Generate an evenly spaced 2d latent space.
153 */
154function draw() {
155 const params = getParams();
156 console.log('params', params);
157 const latentSpace = generateLatentSpace(
158 LATENT_DIMS, params.pointsPerDim, params.start, params.end);
159
160 renderLatentSpace(latentSpace);
161 tf.dispose(latentSpace);
162}
163
164function setupListeners() {
165 document.getElementById('update').addEventListener('click', () => {

Callers 2

setupListenersFunction · 0.70
client.jsFile · 0.70

Calls 3

getParamsFunction · 0.85
generateLatentSpaceFunction · 0.85
renderLatentSpaceFunction · 0.85

Tested by

no test coverage detected