From 140bfd99370967c448477f99ea20bd0191c7d753 Mon Sep 17 00:00:00 2001 From: Honry Date: Fri, 25 Oct 2024 01:54:20 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20webmachi?= =?UTF-8?q?nelearning/webnn-samples@d53452b2a68e3778cca90380b64c625724c040?= =?UTF-8?q?8e=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/samples/mul_add.js | 1 + code/samples/simple_graph.js | 1 + 2 files changed, 2 insertions(+) diff --git a/code/samples/mul_add.js b/code/samples/mul_add.js index 66cb7fad..6e9e3ecf 100644 --- a/code/samples/mul_add.js +++ b/code/samples/mul_add.js @@ -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}; diff --git a/code/samples/simple_graph.js b/code/samples/simple_graph.js index bd6029af..efb724ea 100644 --- a/code/samples/simple_graph.js +++ b/code/samples/simple_graph.js @@ -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.