Skip to content

Commit

Permalink
Fix missing graph param
Browse files Browse the repository at this point in the history
  • Loading branch information
wchao1115 committed Mar 28, 2022
1 parent 64b2e5a commit c0f66c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions explainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const bufferB = new Float32Array(4).fill(0.8);
const bufferC = new Float32Array(4);
const inputs = {'A': bufferA, 'B': bufferB};
const outputs = {'C': bufferC};
context.compute(inputs, outputs);
context.compute(graph, inputs, outputs);
// The computed result of [[1, 1], [1, 1]] is in the buffer associated with
// the output operand.
console.log('Output value: ' + bufferC);
Expand Down Expand Up @@ -154,7 +154,7 @@ export class NSNet2 {
'gru94': gru94Buffer,
'gru157': gru157Buffer
};
return this.context.compute(inputs, outputs);
return this.context.compute(this.graph, inputs, outputs);
}
}
```
Expand Down

0 comments on commit c0f66c5

Please sign in to comment.