INNER CODE UNIT · Rust

size

rustformers/llm · crates/ggml/src/lib.rs:308

    pub fn size(&self) -> usize {
        self.layout.size()
    }
}

impl Drop for Buffer {
    fn drop(&mut self) {
        unsafe {
            std::alloc::dealloc(self.data.cast(), self.layout);
        }
    }
}

/// A `ggml` computation graph. Keeps track of all state during computation.
pub struct ComputationGraph {
    inner: *mut sys::ggml_cgraph,
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…