Struct executorch_sys::torch::executor::util::FileDataLoader
source · #[repr(C, align(8))]pub struct FileDataLoader {
pub _bindgen_opaque_blob: [u64; 5],
}Expand description
A DataLoader that loads sements from a file, allocating the memory
with malloc().
Note that this will keep the file open for the duration of its lifetime, to avoid the overhead of opening it again for every Load() call.
Fields§
§_bindgen_opaque_blob: [u64; 5]Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileDataLoader
impl RefUnwindSafe for FileDataLoader
impl Send for FileDataLoader
impl Sync for FileDataLoader
impl Unpin for FileDataLoader
impl UnwindSafe for FileDataLoader
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more