1 2 3 4 5 6 7 8 9 10 11 12 13 14
// This module contains intentional unsafe code for zero-overhead dataset // sharing with worker threads. #![allow(unsafe_code)] mod builder; mod core; mod iter; mod worker; pub use builder::DataLoaderBuilder; pub use core::DataLoader; pub use iter::DataLoaderIter; #[cfg(feature = "python")] pub(crate) use iter::OwnedDataLoaderIter;