Module executorch_sys::torch::executor::util
source · Structs§
- A DataLoader that wraps a pre-allocated buffer. The FreeableBuffers that it returns do not actually free any data.
- A DataLoader that loads sements from a file, allocating the memory with
malloc(). - Dynamically allocates memory using malloc() and frees all pointers at destruction time.
- A DataLoader that loads segments from a file, allocating the memory with
malloc().
Enums§
- Describes how and whether to lock loaded pages with
mlock().
Functions§
- Creates a new FileDataLoader that wraps the named file.
- Creates a new MmapDataLoader that wraps the named file. Fails if the file can’t be opened for reading or if its size can’t be found.