Skip to content

Commit

Permalink
Remove candle from release
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielsimard committed Sep 6, 2023
1 parent 8be5889 commit 76894ef
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 38 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/publish.yml
Expand Up @@ -78,16 +78,6 @@ jobs:
crate: burn-wgpu
secrets: inherit

publish-burn-candle:
uses: burn-rs/burn/.github/workflows/publish-template.yml@main
needs:
- publish-burn-tensor
- publish-burn-autodiff
- publish-burn-tch
with:
crate: burn-candle
secrets: inherit

publish-burn-core:
uses: burn-rs/burn/.github/workflows/publish-template.yml@main
needs:
Expand All @@ -96,7 +86,6 @@ jobs:
- publish-burn-derive
- publish-burn-tensor
- publish-burn-autodiff
- publish-burn-candle
- publish-burn-wgpu
- publish-burn-tch
- publish-burn-ndarray
Expand Down
3 changes: 0 additions & 3 deletions burn-core/Cargo.toml
Expand Up @@ -44,14 +44,12 @@ wgpu = ["burn-wgpu"]
wgpu-autotune = ["wgpu", "burn-wgpu/autotune"]

tch = ["burn-tch"]
candle = ["burn-candle"]

# Serialization formats
experimental-named-tensor = ["burn-tensor/experimental-named-tensor"]

test-tch = ["tch"] # To use tch during testing, default uses ndarray.
test-wgpu = ["wgpu"] # To use wgpu during testing, default uses ndarray.
test-candle = ["candle"] # To use candle during testing, default uses ndarray.

[dependencies]

Expand All @@ -67,7 +65,6 @@ burn-ndarray = { path = "../burn-ndarray", version = "0.9.0", optional = true, d
burn-autodiff = { path = "../burn-autodiff", version = "0.9.0", optional = true }
burn-wgpu = { path = "../burn-wgpu", version = "0.9.0", optional = true }
burn-tch = { path = "../burn-tch", version = "0.9.0", optional = true }
burn-candle = { path = "../burn-candle", version = "0.9.0", optional = true }

derive-new = { workspace = true }
libm = { workspace = true }
Expand Down
11 changes: 0 additions & 11 deletions burn-core/src/backend.rs
Expand Up @@ -28,14 +28,3 @@ pub type TchBackend<F = f32> = tch::TchBackend<F>;
/// A TchBackend with autodiffing enabled.
#[cfg(all(feature = "tch", feature = "autodiff"))]
pub type TchAutodiffBackend<F = f32> = crate::autodiff::ADBackendDecorator<TchBackend<F>>;

/// Candle module.
#[cfg(feature = "candle")]
pub use burn_candle as candle;
/// A CandleBackend with a default type of f32/i32.
#[cfg(feature = "candle")]
pub type CandleBackend<F = f32, I = i32> = candle::CandleBackend<F, I>;
/// A CandleBackend with autodiffing enabled.
#[cfg(all(feature = "candle", feature = "autodiff"))]
pub type CandleAutodiffBackend<F = f32, I = i32> =
crate::autodiff::ADBackendDecorator<CandleBackend<F, I>>;
10 changes: 1 addition & 9 deletions burn-core/src/lib.rs
Expand Up @@ -45,20 +45,12 @@ pub mod backend;

extern crate alloc;

#[cfg(all(
test,
not(feature = "test-tch"),
not(feature = "test-wgpu"),
not(feature = "test-candle")
))]
#[cfg(all(test, not(feature = "test-tch"), not(feature = "test-wgpu"),))]
pub type TestBackend = burn_ndarray::NdArrayBackend<f32>;

#[cfg(all(test, feature = "test-tch"))]
pub type TestBackend = burn_tch::TchBackend<f32>;

#[cfg(all(test, feature = "test-candle"))]
pub type TestBackend = burn_candle::CandleBackend<f32, u32>;

#[cfg(all(test, feature = "test-wgpu", not(target_os = "macos")))]
pub type TestBackend = burn_wgpu::WgpuBackend<burn_wgpu::Vulkan, f32, i32>;

Expand Down
1 change: 0 additions & 1 deletion burn/Cargo.toml
Expand Up @@ -47,7 +47,6 @@ wgpu = ["burn-core/wgpu"]
wgpu-autotune = ["burn-core/wgpu-autotune"]

tch = ["burn-core/tch"]
candle = ["burn-core/candle"]

# Experimental
experimental-named-tensor = ["burn-core/experimental-named-tensor"]
Expand Down
3 changes: 0 additions & 3 deletions xtask/src/runchecks.rs
Expand Up @@ -208,9 +208,6 @@ fn burn_core_std() {
// Run cargo test --features test-tch
cargo_test(&["-p", "burn-core", "--features", "test-tch"]);

// Run cargo test --features test-candle
// cargo_test(&["-p", "burn-core", "--features", "test-candle"]);

// Run cargo test --features test-wgpu
cargo_test(&["-p", "burn-core", "--features", "test-wgpu"]);
}
Expand Down

0 comments on commit 76894ef

Please sign in to comment.