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.
1 parent 3afc047 commit 55511efCopy full SHA for 55511ef
nnotepad/js/nnotepad.js
@@ -668,12 +668,13 @@ export class NNotepad {
668
const namedOutputs = {};
669
const outputTensors = {};
670
const outputBuffers = {};
671
- await outputOperands.map(async (op, index) => {
+ await Promise.all(outputOperands.map(async (op, index) => {
672
const name = `output-${index}`;
673
namedOutputs[name] = op;
674
outputBuffers[name] = WebNNUtil.bufferForOperand(op);
675
outputTensors[name] = await WebNNUtil.tensorForOperand(op, context);
676
- });
+ }));
677
+
678
let graph;
679
try {
680
graph = await builder.build(namedOutputs);
0 commit comments