mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 19:47:12 +00:00
Add a synchronize method to devices. (#2055)
* Add a synchronize method to devices. * Metal version.
This commit is contained in:
@ -1790,6 +1790,10 @@ impl BackendDevice for MetalDevice {
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn synchronize(&self) -> Result<()> {
|
||||
self.wait_until_completed()
|
||||
}
|
||||
}
|
||||
|
||||
fn read_to_vec<T: Clone>(buffer: &Buffer, n: usize) -> Vec<T> {
|
||||
|
Reference in New Issue
Block a user