[package]
authors = ["nathanielsimard <nathaniel.simard.42@gmail.com>"]
categories = ["science", "no-std", "embedded", "wasm"]
description = "Optimizer building blocks for the Burn deep learning framework"
documentation = "https://docs.rs/burn-optim"
edition.workspace = true
keywords = ["deep-learning", "machine-learning", "tensor", "pytorch", "ndarray"]
license.workspace = true
name = "burn-optim"
readme.workspace = true
repository = "https://github.com/tracel-ai/burn/tree/main/crates/burn-optim"
version.workspace = true
[lints]
workspace = true
[features]
default = [
"std",
"burn-core/default",
]
doc = [
"std",
"burn-core/doc",
]
std = [
"burn-core/std",
"num-traits/std",
"serde/std",
"log",
]
collective = ["burn-collective"]
test-cuda = [
"burn-cuda/default",
]
test-rocm = [
"burn-rocm/default",
]
test-tch = [
"burn-tch/default",
]
test-wgpu = [
"burn-wgpu/default",
]
test-vulkan = [
"test-wgpu",
"burn-wgpu/vulkan",
]
test-metal = [
"test-wgpu",
"burn-wgpu/metal",
]
test-memory-checks = ["burn-fusion/memory-checks"]
[dependencies]
burn-core = { path = "../burn-core", version = "0.19.1", default-features = false }
burn-collective = { path = "../burn-collective", version = "0.19.1", optional = true, default-features = false }
num-traits = { workspace = true }
derive-new = { workspace = true }
log = { workspace = true, optional = true }
serde = { workspace = true, features = ["derive"] }
hashbrown = { workspace = true, features = ["serde"] }
burn-cuda = { path = "../burn-cuda", version = "0.19.1", optional = true, default-features = false }
burn-rocm = { path = "../burn-rocm", version = "0.19.1", optional = true, default-features = false }
burn-remote = { path = "../burn-remote", version = "0.19.1", default-features = false, optional = true }
burn-router = { path = "../burn-router", version = "0.19.1", default-features = false, optional = true }
burn-tch = { path = "../burn-tch", version = "0.19.1", optional = true }
burn-wgpu = { path = "../burn-wgpu", version = "0.19.1", optional = true, default-features = false }
burn-fusion = { path = "../burn-fusion", version = "0.19.1", optional = true }
[dev-dependencies]
burn-nn = { path = "../burn-nn", version = "0.19.1" }
burn-ndarray = { path = "../burn-ndarray", version = "0.19.1" }
burn-autodiff = { path = "../burn-autodiff", version = "0.19.1" }
rstest = { workspace = true }
[package.metadata.docs.rs]
features = ["doc"]
rustdoc-args = ["--cfg", "docsrs"]