1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#![cfg_attr(not(feature = "std"), no_std)]
#[macro_use]
extern crate derive_new;
#[cfg(any(
feature = "blas-netlib",
feature = "blas-openblas",
feature = "blas-openblas-system",
))]
extern crate blas_src;
mod backend;
mod element;
mod ops;
mod parallel;
mod sharing;
mod tensor;
pub use backend::*;
pub(crate) use sharing::*;
pub(crate) use tensor::*;
extern crate alloc;
#[cfg(test)]
mod tests {
type TestBackend = crate::NdArrayBackend<f32>;
type TestTensor<const D: usize> = burn_tensor::Tensor<TestBackend, D>;
type TestTensorInt<const D: usize> = burn_tensor::Tensor<TestBackend, D, burn_tensor::Int>;
burn_tensor::testgen_all!();
#[cfg(feature = "std")]
burn_autodiff::testgen_all!();
}