Skip to content

Commit 9e38497

Browse files
authored
Merge pull request #18 from elixir-nx/tm-ep-docs
added docs around new EPs and default config.exs
2 parents 2903f58 + 58ae0db commit 9e38497

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ iex> result |> Nx.backend_transfer() |> Nx.argmax(axis: 1)
5656
```elixir
5757
def deps do
5858
[
59-
{:ortex, "~> 0.1.6"}
59+
{:ortex, "~> 0.1.7"}
6060
]
6161
end
6262
```

lib/ortex.ex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ defmodule Ortex do
1111
of descending priority and graph optimization level 1-3. Any graph optimization level
1212
beyond the range of 1-3 will disable graph optimization.
1313
14+
By default, `Ortex` only includes some of the supported execution providers of ONNX Runtime.
15+
To enable others, first ensure you have downloaded or compiled a version of
16+
`libonnxruntime` that includes them, then set the environment variable `ORT_LIB_LOCATION`
17+
to its location. Then add `config :ortex, Ortex.Native, features: [EXECUTION_PROVIDERS]` to your
18+
`config.exs` where `EXECUTION_PROVIDERS` is a list of strings of which execution providers
19+
to enable.
20+
1421
## Examples
1522
1623
iex> Ortex.load("./models/tinymodel.onnx")

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule Ortex.MixProject do
44
def project do
55
[
66
app: :ortex,
7-
version: "0.1.6",
7+
version: "0.1.7",
88
elixir: "~> 1.14",
99
start_permanent: Mix.env() == :prod,
1010
deps: deps(),
@@ -43,7 +43,7 @@ defmodule Ortex.MixProject do
4343

4444
defp package do
4545
[
46-
files: ~w(lib .formatter.exs mix.exs README* LICENSE* native/ortex/src/
46+
files: ~w(lib .formatter.exs mix.exs README* LICENSE* native/ortex/src/ config/config.exs
4747
native/ortex/Cargo.lock native/ortex/Cargo.toml native/ortex/.cargo/config.toml),
4848
licenses: ["MIT"],
4949
links: %{"GitHub" => "https://github.com/elixir-nx/ortex"},

0 commit comments

Comments
 (0)