1#![cfg_attr(not(feature = "std"), no_std)]
2#![warn(missing_docs)]
3#![cfg_attr(docsrs, feature(doc_cfg))]
4
5#[macro_use]
13extern crate derive_new;
14
15extern crate alloc;
16
17pub mod checkpoint;
19pub mod grads;
21pub mod ops;
23
24pub(crate) mod graph;
25pub use graph::NodeId;
27pub(crate) mod tensor;
28pub(crate) mod utils;
29
30mod backend;
31
32pub(crate) mod runtime;
33
34pub use backend::*;
35
36#[cfg(feature = "export_tests")]
37mod tests;
38
39mod collections {
42 #[cfg(not(feature = "std"))]
43 pub use hashbrown::{HashMap, HashSet};
44 #[cfg(feature = "std")]
45 pub use std::collections::{HashMap, HashSet};
46}