Skip to main content

burn_import/
lib.rs

1#![warn(missing_docs)]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3#![deprecated(
4    since = "0.21.0",
5    note = "burn-import ONNX functionality has moved to burn-onnx. Please migrate to burn-onnx directly."
6)]
7
8//! # burn-import (Legacy)
9//!
10//! **This crate is deprecated.** ONNX import functionality has been moved to
11//! [`burn-onnx`](https://crates.io/crates/burn-onnx).
12//!
13//! PyTorch and Safetensors model weights import has been replaced by
14//! [`burn-store`](https://crates.io/crates/burn-store).
15//! Check out the [migration guide](https://github.com/tracel-ai/burn/blob/main/crates/burn-store/MIGRATION.md).
16//!
17//! ## Migration Guide
18//!
19//! Replace your dependency:
20//!
21//! ```toml
22//! # Before
23//! burn-import = { version = "0.21", features = ["onnx"] }
24//!
25//! # After
26//! burn-onnx = "0.21"
27//! ```
28//!
29//! Update your imports:
30//!
31//! ```ignore
32//! // Before
33//! use burn_import::onnx::ModelGen;
34//!
35//! // After
36//! use burn_onnx::ModelGen;
37//! ```
38//!
39//! For more information, see the [burn-onnx documentation](https://docs.rs/burn-onnx).
40
41/// The onnx module (deprecated).
42///
43/// Use [`burn_onnx`] directly instead.
44#[deprecated(
45    since = "0.21.0",
46    note = "Use burn_onnx directly instead of burn_import::onnx"
47)]
48pub mod onnx {
49    pub use burn_onnx::*;
50}
51
52/// The burn module for code generation (deprecated).
53///
54/// Use [`burn_onnx::burn`] directly instead.
55#[deprecated(
56    since = "0.21.0",
57    note = "Use burn_onnx::burn directly instead of burn_import::burn"
58)]
59pub mod burn {
60    pub use burn_onnx::burn::*;
61}
62
63// Re-export main types at crate root for convenience during migration
64#[doc(hidden)]
65#[deprecated(since = "0.21.0", note = "Use burn_onnx::ModelGen instead")]
66pub use burn_onnx::ModelGen;