一键导入
burn-core
Burn core framework - Provides tensor operations, automatic differentiation, and neural network building blocks for Rust deep learning.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Burn core framework - Provides tensor operations, automatic differentiation, and neural network building blocks for Rust deep learning.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Convert Markdown with LaTeX math, images, and tables into a polished PDF. Two rendering engines: (1) weasyprint — pure Python, no browser needed; (2) chromium — best for matrices/bmatrix/pmatrix/vmatrix and complex formulas. Supports Chinese/Japanese fonts. Can chain after ocr-md-polish for a complete OCR→clean→PDF workflow.
Burn CUDA backend - High-performance NVIDIA GPU acceleration. Provides optimal performance for NVIDIA hardware.
Burn Metal backend - Apple GPU acceleration for macOS and iOS. Optimized for Apple Silicon and Intel-based Macs.
Burn NdArray backend - CPU-based tensor operations using Rust's ndarray crate. Ideal for development, testing, and lightweight inference.
Burn ONNX support - Import ONNX models into Burn for inference on any backend. Supports compile-time code generation and runtime loading.
Provides guidance on using Burn deep learning framework for Rust projects. Invoke when working with tensor operations, model inference, or ONNX model integration in Rust.
| name | burn-core |
| description | Burn core framework - Provides tensor operations, automatic differentiation, and neural network building blocks for Rust deep learning. |
The core burn crate provides the fundamental building blocks for deep learning in Rust:
use burn::tensor::Tensor;
use burn_ndarray::NdArrayDevice;
let device = NdArrayDevice::default();
let tensor = Tensor::from_data(&[1.0, 2.0, 3.0], &device);
let x = Tensor::from_data(&[1.0, 2.0], &device).require_grad();
let y = x * 2.0;
let grads = y.backward();
use burn::nn::{Linear, Module, ReLU};
#[derive(Module)]
struct Model {
linear: Linear<NdArrayBackend>,
relu: ReLU,
}
use burn::optim::Adam;
let mut optimizer = Adam::new();
optimizer.step(grads);
| Component | Description |
|---|---|
burn::tensor | Tensor operations and autodiff |
burn::nn | Neural network layers |
burn::optim | Optimization algorithms |
burn::loss | Loss functions |
burn::data | Data loading utilities |
burn-ndarray: CPU backendburn-wgpu: GPU backendburn-onnx: ONNX model import