From e8fd98bd770262fedd757c75756bac3cd091ee7c Mon Sep 17 00:00:00 2001 From: Ann Yuan Date: Wed, 16 Sep 2020 08:32:28 -0400 Subject: [PATCH 1/2] fix docs --- tfjs-backend-wasm/README.md | 17 +++++++++-------- tfjs-backend-wasm/src/backend_wasm.ts | 3 +-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tfjs-backend-wasm/README.md b/tfjs-backend-wasm/README.md index 84427ede0a3..c0d351ffca9 100644 --- a/tfjs-backend-wasm/README.md +++ b/tfjs-backend-wasm/README.md @@ -79,22 +79,23 @@ backend: ```ts import {setWasmPaths} from '@tensorflow/tfjs-backend-wasm'; -// setWasmPaths accepts a `prefix` argument which indicates the path to the -// directory where your WASM binaries are located. +// setWasmPaths accepts a `prefixOrFileMap` argument which can be either a +// string or an object. If passing in a string, this indicates the path to +// the directory where your WASM binaries are located. setWasmPaths('www.yourdomain.com/'); // or tf.wasm.setWasmPaths when using