-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5acc5a
commit 3345b52
Showing
22 changed files
with
5,252 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: 🧩 Backends | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- 'main' | ||
paths: | ||
- '.github/workflows/backends.yml' | ||
- 'src/**/*.rs' | ||
- 'backends/**/*.rs' | ||
- 'ort-sys/src/lib.rs' | ||
- 'Cargo.toml' | ||
pull_request: | ||
paths: | ||
- '.github/workflows/backends.yml' | ||
- 'src/**/*.rs' | ||
- 'backends/**/*.rs' | ||
- 'ort-sys/src/lib.rs' | ||
- 'Cargo.toml' | ||
env: | ||
RUST_BACKTRACE: 1 | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_PROFILE_DEV_DEBUG: 0 | ||
jobs: | ||
candle: | ||
name: Candle | ||
runs-on: ${{ matrix.platform.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- os: ubuntu-latest | ||
- os: macos-15 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install protoc | ||
run: | | ||
if [ "$RUNNER_OS" == "Linux" ]; then | ||
sudo apt-get update && sudo apt-get install protobuf-compiler -y | ||
elif [ "$RUNNER_OS" == "macOS" ]; then | ||
brew install protobuf | ||
fi | ||
- name: Install stable Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Run tests | ||
run: | | ||
cargo test --manifest-path backends/candle/Cargo.toml --verbose -- --test-threads 1 | ||
tract: | ||
name: Tract | ||
runs-on: ${{ matrix.platform.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- os: ubuntu-latest | ||
- os: windows-latest | ||
- os: macos-15 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install stable Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Run tests | ||
run: | | ||
cargo test --manifest-path backends/tract/Cargo.toml --verbose -- --test-threads 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[package] | ||
name = "ort-candle" | ||
description = "ort + candle = 🦀 - An alternative backend for ort, powered by candle." | ||
version = "0.1.0+0.8.1" | ||
edition = "2021" | ||
rust-version = "1.70" | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/pykeio/ort" | ||
homepage = "https://ort.pyke.io/" | ||
keywords = [ "machine-learning", "ai", "ml" , "sys"] | ||
categories = [ "algorithms", "mathematics", "science" ] | ||
authors = [ | ||
"pyke.io <[email protected]>" | ||
] | ||
|
||
[lib] | ||
name = "ort_candle" | ||
path = "lib.rs" | ||
|
||
[features] | ||
|
||
[dependencies] | ||
ort-sys = { version = "=2.0.0-rc.9", path = "../../ort-sys", default-features = false } | ||
candle-core = { version = "0.8.1", default-features = false } | ||
candle-onnx = { version = "0.8.1" } | ||
prost = { version = "0.12.1", default-features = false } | ||
|
||
[dev-dependencies] | ||
ort = { version = "=2.0.0-rc.9", path = "../../", default-features = false, features = [ "alternative-backend", "fetch-models" ] } | ||
|
||
[[test]] | ||
name = "memory" | ||
path = "tests/memory.rs" | ||
[[test]] | ||
name = "tensor" | ||
path = "tests/tensor.rs" |
Oops, something went wrong.