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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
//! # Burn Standard Library
//!
//! Core types and utilities shared across the Burn crates.
//!
//! - [`Shape`], slicing ([`s!`]) and indexing helpers.
//! - [`DType`], the element traits and conversions, and [`TensorData`], the backend-independent
//! representation of tensor contents.
//! - [`Distribution`] for random tensor initialization.
//! - [`DeviceSettings`], per-device defaults such as dtypes.
//! - Quantization schemes, [`Bytes`], identifiers and errors.
//! - [`config`]: runtime configuration read from `burn.toml`.
//! - `network`: file downloads with a progress bar (`network` feature).
//!
//! Applications use these through `burn::tensor`. The crate supports `no_std` with `alloc`.
//!
//! # Feature flags
//!
//! - `std` (default): standard library support.
//! - `network`: file downloads.
//! - `tracing`: instrument operations with the `tracing` crate.
extern crate derive_new;
extern crate alloc;
/// Id module contains types for unique identifiers.
/// Tensor utilities.
pub use *;
/// Tensor data representation and helpers.
pub use *;
/// Random value distributions.
pub use *;
/// Traits for tensor element types and conversions.
pub use *;
pub use *;
/// Runtime kind of the host program (async / sync / no-std).
pub use *;
/// Distributed configurations.
/// Configuration types for tensor operations (conv, pool, interpolate, pad, etc).
pub use *;
/// Burn runtime configurations.
/// Common Errors.
pub use ;
/// Network utilities.
pub use DeviceHandle;
pub use *;
pub use *;
// Environment shims live in `cubecl-environment`. They are re-exported here so
// backends and other burn crates don't have to depend on it directly.
pub use reader;
pub use ;
pub use ;
pub use flex32;