Skip to content

Commit

Permalink
Fix inconsistent MLTensor usage in Code example
Browse files Browse the repository at this point in the history
  • Loading branch information
Honry committed Oct 25, 2024
1 parent efa8974 commit 8e2b9d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/samples/mul_add.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const tensorC = await context.createTensor({
...desc,
usage: MLTensorUsage.READ,
readable: true,
writable: false,
});
const inputs = {'A': tensorA, 'B': tensorB};
const outputs = {'C': tensorC};
Expand Down
1 change: 1 addition & 0 deletions code/samples/simple_graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const outputTensor = await context.createTensor({
...desc,
usage: MLTensorUsage.READ,
readable: true,
writable: false,
});

// Execute the compiled graph with the specified inputs.
Expand Down

0 comments on commit 8e2b9d9

Please sign in to comment.