Skip to main content

burn_ndarray/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2#![warn(missing_docs)]
3#![cfg_attr(docsrs, feature(doc_cfg))]
4#![deprecated(
5    since = "0.22.0",
6    note = "burn-ndarray is deprecated and will be removed in a future release. Use burn-flex for pure-Rust CPU execution (std, no_std, WebAssembly), or one of the CubeCL backends (burn-cuda, burn-rocm, burn-wgpu, burn-cpu) for GPU acceleration."
7)]
8
9//! Burn ndarray backend.
10//!
11//! **Deprecated:** This backend is deprecated and will be removed in a future release.
12//! Please migrate to one of the actively maintained backends:
13//! - Flex (`burn-flex`) for portable pure-Rust CPU execution (std, no_std, WASM)
14//! - CubeCL backends (CUDA, ROCm, Vulkan, Metal, WebGPU) for GPU acceleration
15//!
16//! See [COMPARISON.md](https://github.com/tracel-ai/burn/blob/main/crates/burn-flex/COMPARISON.md)
17//! for an operation-by-operation migration path.
18
19#[cfg(any(
20    feature = "blas-netlib",
21    feature = "blas-openblas",
22    feature = "blas-openblas-system",
23))]
24extern crate blas_src;
25
26mod backend;
27mod element;
28mod ops;
29mod parallel;
30mod rand;
31mod sharing;
32mod storage;
33mod tensor;
34
35pub use backend::*;
36pub use element::*;
37pub(crate) use sharing::*;
38pub(crate) use storage::*;
39pub use tensor::*;
40
41extern crate alloc;