Skip to content

Commit

Permalink
shown input shape corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
saliherdemk committed Nov 6, 2024
1 parent 81a9ea2 commit 183d1d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/Draw/MLP/Playable.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class Playable extends Draggable {
const calcComp = this.calculationComponent;
const output = this.getOutput();

calcComp?.setInputData(inputData.slice(0, 5).map((row) => row.slice(0, 4)));
calcComp?.setInputData(inputData);

const outputData = output instanceof OutputLayer ? output.getData() : null;
const mlp_output = await origin.forward(inputData);
Expand Down
1 change: 1 addition & 0 deletions js/Draw/Minors/Viewers/CalculationViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class CalculationViewer extends Viewer {

setInputData(data) {
const shape = [data.length, data[0].length];
data = data.slice(0, 5).map((row) => row.slice(0, 4));
this.data = [this.formatMatrix(data, shape, 0, 0)];
}

Expand Down

0 comments on commit 183d1d8

Please sign in to comment.