Skip to content

Commit 0afaa2f

Browse files
authored
Typo fix README.md (bytecodealliance#10077)
1 parent 442003a commit 0afaa2f

File tree

1 file changed

+2
-2
lines changed
  • crates/wasi-nn/examples/classification-example-pytorch

1 file changed

+2
-2
lines changed

crates/wasi-nn/examples/classification-example-pytorch/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
This example project demonstrates using the `wasi-nn` API to perform PyTorch based inference. It consists of Rust code that is built using the `wasm32-wasip1` target.
22

33
To run this example:
4-
1. Ensure you set appropriate Libtorch enviornment variables according to [tch-rs instructions]( https://github.com/LaurentMazare/tch-rs?tab=readme-ov-file#libtorch-manual-install).
4+
1. Ensure you set appropriate Libtorch environment variables according to [tch-rs instructions]( https://github.com/LaurentMazare/tch-rs?tab=readme-ov-file#libtorch-manual-install).
55
- Requires the C++ PyTorch library (libtorch) in version *v2.4.0* to be available on
66
your system.
77
- `export LIBTORCH=/path/to/libtorch`
@@ -16,4 +16,4 @@ curl https://github.com/rahulchaphalkar/libtorch-models/releases/download/v0.1/s
1616
```
1717
${Wasmtime_root_dir}/target/debug/wasmtime -S nn --dir ${Wasmtime_root_dir}/crates/wasi-nn/examples/classification-example-pytorch::. ${Wasmtime_root_dir}/crates/wasi-nn/examples/classification-example-pytorch/target/wasm32-wasip1/debug/wasi-nn-example-pytorch.wasm
1818
```
19-
6. Check that result `281` has highest probability, which corresponds to `tabby cat`.
19+
6. Check that result `281` has highest probability, which corresponds to `tabby cat`.

0 commit comments

Comments
 (0)