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

Function visualizeModelLayers

jena-weather/index.js:209–214  ·  view source on GitHub ↗

* Visualize layers of a model. * * @param {string} tab Name of the tfjs-vis visor tab on which the visualization * will be made. * @param {tf.layers.Layer[]} layers An array of layers to visualize. * @param {string[]} layerNames Names of the layers, to be used to label the * tfvis surfaces

(tab, layers, layerNames)

Source from the content-addressed store, hash-verified

207 * tfvis surfaces. Must have the same length as `layers`.
208 */
209function visualizeModelLayers(tab, layers, layerNames) {
210 layers.forEach((layer, i) => {
211 const surface = tfvis.visor().surface({tab, name: layerNames[i]});
212 tfvis.show.layer(surface, layer);
213 });
214}
215
216async function run() {
217 logStatus('Loading Jena weather data (41.2 MB)...');

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected