* 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)
| 207 | * tfvis surfaces. Must have the same length as `layers`. |
| 208 | */ |
| 209 | function 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 | |
| 216 | async function run() { |
| 217 | logStatus('Loading Jena weather data (41.2 MB)...'); |