Skip to content

Commit

Permalink
use flatten instead of weird error
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanTUD committed Aug 28, 2024
1 parent 8b76a7e commit 926d82e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -8346,7 +8346,7 @@ function _draw_neurons_or_conv2d(layerId, numNeurons, ctx, verticalSpacing, laye
if (get_shape_from_array(this_layer_states).length == 1) {
this_layer_output = this_layer_states;
} else {
log(`#_draw_neurons_or_conv2d: shape doesn't have length 1, but ${get_shape_from_array(this_layer_states)}`);
this_layer_output = flatten(this_layer_states);
}
}

Expand Down

0 comments on commit 926d82e

Please sign in to comment.