Expand description
This library provides the core types that define how Burn tensor data is represented, stored, and interpreted.
Re-exports§
pub use distribution::*;pub use element::*;pub use backend::*;pub use shape::*;pub use slice::*;pub use indexing::*;
Modules§
- backend
Backendtrait and required types.- distribution
- Random value distributions used to initialize and populate tensor data.
- element
- Traits and helpers for working with element types and conversions.
- indexing
- Indexing utilities.
- quantization
- Quantization data representation.
- shape
- Shape definition.
- slice
- Slice utilities.
- tensor
- Backend tensor primitives and operations.
Macros§
- dequant_
op_ flow - Automatically applies
dequantization -> float operation [-> quantization]. - dequant_
op_ quant - Automatically applies
dequantization -> float operation -> quantization. - doc_
tensor - Convenience macro to link to the
burn-tensordocs for this crate version. - make_
element - Macro to implement the element trait for a type.
Structs§
- Bytes
- A buffer similar to
Box<[u8]>that supports custom memory alignment and allows trailing uninitialized bytes. - Stream
Id - Unique identifier that can represent a stream based on the current thread id.
- Tensor
Data - Data structure for tensors.
- Tolerance
- The tolerance used to compare to floating point numbers.
- bf16
- A 16-bit floating point type implementing the
bfloat16format. - f16
- A 16-bit floating point type implementing the IEEE 754-2008 standard
binary16a.k.a “half” format.
Enums§
- Allocation
Property - The kind of allocation behind the Bytes type.
- DType
- Data
Error - The things that can go wrong when manipulating tensor data.
- FloatD
Type - IntD
Type
Functions§
- read_
sync - Read a future synchronously.
- try_
read_ sync - Read a future synchronously.