Skip to content

Commit 956706e

Browse files
authored
NNotepad - Fix #277 SyntaxError: missing ) error (#278)
* Fix #277 SyntaxError: missing ) error * Remove dimensions and the value in output
1 parent 229c4e2 commit 956706e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

nnotepad/js/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ function explain(outputs) {
130130
.map((output) =>
131131
[
132132
'dataType: ' + output.dataType,
133-
'dimensions: ' + Util.stringify(output.shape),
134133
'shape: ' + Util.stringify(output.shape),
135134
'tensor: ' + dumpTensor(output.shape, output.buffer, 8),
136135
].join('\n'),

nnotepad/js/nnotepad.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ export class NNotepad {
476476
}(tensor, 0));
477477
const ctor = WebNNUtil.dataTypeToBufferType(dataType);
478478
return `_.constant({dataType: "${dataType}", dimensions: ${
479-
Util.stringify(shape)}}, shape: ${
479+
Util.stringify(shape)}, shape: ${
480480
Util.stringify(shape)}}, new ${ctor.name}([${
481481
elements.map((n) => Util.stringifyNumber(n, dataType)).join(',')}]))`;
482482
}

0 commit comments

Comments
 (0)