We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
numHiddenLayers
1 parent b9fc4ae commit bae4677Copy full SHA for bae4677
src/playground/state.ts
@@ -242,8 +242,8 @@ export class State {
242
getHideProps (map).forEach (prop => {
243
state[prop] = (map[prop] === 'true');
244
});
245
- // state.numHiddenLayers = state.networkShape.length;
246
- state.numHiddenLayers = getNetworkShape (presets['2-2']).length;
+ const currentPreset = state?.networkPreset || 'allOn';
+ state.numHiddenLayers = getNetworkShape (presets[currentPreset]).length;
247
if (state.seed == null) {
248
state.seed = Math.random ().toFixed (5);
249
}
0 commit comments