Skip to content

Commit

Permalink
NNotepad - Fix #277 SyntaxError: missing ) error (#278)
Browse files Browse the repository at this point in the history
* Fix #277 SyntaxError: missing ) error

* Remove dimensions and the value in output
  • Loading branch information
ibelem authored Sep 25, 2024
1 parent 229c4e2 commit 956706e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion nnotepad/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ function explain(outputs) {
.map((output) =>
[
'dataType: ' + output.dataType,
'dimensions: ' + Util.stringify(output.shape),
'shape: ' + Util.stringify(output.shape),
'tensor: ' + dumpTensor(output.shape, output.buffer, 8),
].join('\n'),
Expand Down
2 changes: 1 addition & 1 deletion nnotepad/js/nnotepad.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ export class NNotepad {
}(tensor, 0));
const ctor = WebNNUtil.dataTypeToBufferType(dataType);
return `_.constant({dataType: "${dataType}", dimensions: ${
Util.stringify(shape)}}, shape: ${
Util.stringify(shape)}, shape: ${
Util.stringify(shape)}}, new ${ctor.name}([${
elements.map((n) => Util.stringifyNumber(n, dataType)).join(',')}]))`;
}
Expand Down

0 comments on commit 956706e

Please sign in to comment.