burn-flex 0.21.0

A fast, portable CPU backend for the Burn framework
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "burn-flex"
version = "0.21.0"
authors = ["Dilshod Tadjibaev (@antimora)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast, portable CPU backend for the Burn framework"
documentation = "https://docs.rs/burn-flex"
readme = "README.md"
keywords = [
    "deep-learning",
    "machine-learning",
    "tensor",
    "simd",
]
categories = [
    "science",
    "mathematics",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tracel-ai/burn/tree/main/crates/burn-flex"
resolver = "2"

[package.metadata.docs.rs]
features = ["default"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
apple-amx = [
    "std",
    "gemm/experimental-apple-amx",
]
critical-section = [
    "dep:once_cell",
    "once_cell/critical-section",
    "dep:portable-atomic",
    "portable-atomic/critical-section",
    "dep:portable-atomic-util",
]
default = [
    "std",
    "simd",
    "rayon",
]
doc = ["default"]
rayon = [
    "dep:rayon",
    "gemm/rayon",
]
simd = [
    "dep:macerator",
    "dep:aligned-vec",
    "gemm/wasm-simd128-enable",
]
std = [
    "gemm/std",
    "burn-backend/std",
    "burn-std/std",
    "burn-ir/std",
    "half/std",
    "num-traits/std",
]
tracing = [
    "burn-std/tracing",
    "burn-backend/tracing",
    "burn-ir/tracing",
]
x86-v4 = ["gemm/x86-v4"]

[lib]
name = "burn_flex"
path = "src/lib.rs"

[dependencies.aligned-vec]
version = "0.6"
optional = true
default-features = false

[dependencies.burn-backend]
version = "0.21.0"
default-features = false

[dependencies.burn-ir]
version = "0.21.0"
default-features = false

[dependencies.burn-std]
version = "0.21.0"
default-features = false

[dependencies.bytemuck]
version = "1.25.0"

[dependencies.gemm]
version = "0.19"
features = ["f16"]
default-features = false

[dependencies.half]
version = "2.7.1"
features = [
    "alloc",
    "num-traits",
    "serde",
]
default-features = false

[dependencies.libm]
version = "0.2.15"

[dependencies.macerator]
version = "0.3.0"
optional = true

[dependencies.num-traits]
version = "0.2.19"
features = ["libm"]
default-features = false

[dependencies.once_cell]
version = "1"
optional = true
default-features = false

[dependencies.portable-atomic]
version = "1.13.1"
optional = true

[dependencies.portable-atomic-util]
version = "0.2.6"
features = ["alloc"]
optional = true

[dependencies.rayon]
version = "1.10.0"
optional = true

[dev-dependencies.realfft]
version = "3"

[lints.clippy]

[lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_html_tags = "deny"