Skip to content

Commit

Permalink
Add docs to the Tensor struct (tracel-ai#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielsimard authored Sep 9, 2022
1 parent 823f28c commit d0b581a
Show file tree
Hide file tree
Showing 6 changed files with 286 additions and 54 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/test-burn-dataset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ jobs:
cd burn-dataset
cargo fmt --check --all
- name: check doc
run: |
cd burn-dataset
cargo test --doc
- name: check tests
run: |
cd burn-dataset
cargo test
cargo test --tests
9 changes: 7 additions & 2 deletions .github/workflows/test-burn-tensor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,19 @@ jobs:
cd burn-tensor
cargo fmt --check --all
- name: check doc
run: |
cd burn-tensor
cargo test --no-default-features --features doc --doc
- name: check tests backend ndarray
run: |
cd burn-tensor
cargo test --no-default-features --features ndarray
cargo test --no-default-features --features ndarray --tests
- name: check tests backend tch
run: |
cd burn-tensor
cargo test --no-default-features --features tch
cargo test --no-default-features --features tch --tests
8 changes: 7 additions & 1 deletion .github/workflows/test-burn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ jobs:
cd burn
cargo fmt --check --all
- name: check doc
run: |
cd burn
cargo test --no-default-features --features doc --doc
- name: check tests
run: |
cd burn
cargo test
cargo test --tests
9 changes: 5 additions & 4 deletions burn-tensor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "burn-tensor"
version = "0.2.1"
version = "0.2.2"
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]

description = """
Expand All @@ -13,17 +13,18 @@ keywords = ["deep-learning", "machine-learning", "tensor", "pytorch", "ndarray"]
categories = ["science"]
license = "MIT/Apache-2.0"
edition = "2021"
doctest = false

[package.metadata.docs.rs]
features = ["ndarray"]
features = ["doc"]
all-features = false
no-default-features = true

[features]
default = ["ndarray"]
full = ["tch", "ndarray"]
default = ["tch", "ndarray"]
tch = ["dep:tch"]
ndarray = ["dep:ndarray"]
doc = ["dep:tch", "tch/doc-only", "dep:ndarray"]

[dependencies]
num-traits = "0.2"
Expand Down
Loading

0 comments on commit d0b581a

Please sign in to comment.