Skip to content

Commit

Permalink
fix 404
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-eire committed Feb 20, 2024
1 parent 20c26a3 commit 1685658
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions docs/get-started/with-javascript/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ nav_order: 6

ONNX Runtime JavaScript API is the unified interface used by [ONNX Runtime Node.js binding](https://github.com/microsoft/onnxruntime/tree/main/js/node), [ONNX Runtime Web](https://github.com/microsoft/onnxruntime/tree/main/js/web), and [ONNX Runtime for React Native](https://github.com/microsoft/onnxruntime/tree/main/js/react_native).

See [how to choose the right package](../tutorials/web/build-web-app#options-for-deployment-target) for your JavaScript application.
See [how to choose the right package](../../tutorials/web/build-web-app#options-for-deployment-target) for your JavaScript application.

## Contents
{: .no_toc }
Expand All @@ -32,13 +32,13 @@ See [how to choose the right package](../tutorials/web/build-web-app#options-for
|Web|[onnxruntime-web](https://www.npmjs.com/package/onnxruntime-web)|CPU and GPU|Chromium Browsers (Chrome, Edge): wasm, webgl, webgpu, webnn<br/>Safari: wasm, webgl<br/>Other Browsers: wasm<br/> Node.js: wasm|
|React Native|[onnxruntime-react-native](https://www.npmjs.com/package/onnxruntime-react-native)|CPU|Android, iOS|

- For Web, pre-built binaries are published in NPM package as well as served in CDNs. See [Deploy ONNX Runtime Web](TBD) for more details. If you want to use a custom build, you can [build ONNX Runtime Web from source](../build/web.md).
- For Node.js binding, to use on platforms without pre-built binaries, you can [build Node.js binding from source](../build/inferencing.md#apis-and-language-bindings) and consume using `npm install <onnxruntime_repo_root>/js/node/`.
- For Web, pre-built binaries are published in NPM package as well as served in CDNs. If you want to use a custom build, you can [build ONNX Runtime Web from source](../../build/web.md).
- For Node.js binding, to use on platforms without pre-built binaries, you can [build Node.js binding from source](../../build/inferencing.md#apis-and-language-bindings) and consume using `npm install <onnxruntime_repo_root>/js/node/`.
- Explore a simple web application to [classify images with ONNX Runtime Web](https://onnxruntime.ai/docs/tutorials/web/classify-images-nextjs-github-template.html).

## API Reference

See [ONNX Runtime JavaScript API](../api/js/index.html){:target="_blank"} for API reference.
See [ONNX Runtime JavaScript API](../../api/js/index.html){:target="_blank"} for API reference.

See also:

Expand Down
2 changes: 1 addition & 1 deletion docs/get-started/with-javascript/web.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ For a complete table for importing, see [Conditional Importing](https://github.c

## Documentation

See [Tutorial: Web](../tutorials/web/index.md) for more details. Please also check the following links:
See [Tutorial: Web](../../tutorials/web/index.md) for more details. Please also check the following links:
- [Tensor](https://github.com/microsoft/onnxruntime-inference-examples/blob/main/js/api-usage_tensor) - a demonstration of basic usage of Tensor.
- [Tensor <--> Image conversion](https://github.com/microsoft/onnxruntime-inference-examples/blob/main/js/api-usage-tensor-image) - a demonstration of conversions from Image elements to and from Tensor.
- [InferenceSession](https://github.com/microsoft/onnxruntime-inference-examples/blob/main/js/api-usage_inference-session) - a demonstration of basic usage of InferenceSession.
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/web/build-web-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Add "@dev" to the package name to use the nightly build (eg. npm install onnxrun
## Consume onnxruntime-web in your code

1. Import onnxruntime-web
See [import onnxruntime-web](../../get-started/with-javascript.md#import-1)
See [import onnxruntime-web](../../get-started/with-javascript/web.md#import-1)

2. Initialize the inference session
See [InferenceSession.create](https://github.com/microsoft/onnxruntime-inference-examples/blob/main/js/quick-start_onnxruntime-web-bundler/main.js#L14)
Expand Down

0 comments on commit 1685658

Please sign in to comment.