Trait dfdx::tensor::Synchronize
source · pub trait Synchronize: HasErr {
// Required method
fn try_synchronize(&self) -> Result<(), Self::Err>;
// Provided method
fn synchronize(&self) { ... }
}
Required Methods§
sourcefn try_synchronize(&self) -> Result<(), Self::Err>
fn try_synchronize(&self) -> Result<(), Self::Err>
Blocks until all work on device to complete. Useful for benchmarking.
Provided Methods§
sourcefn synchronize(&self)
fn synchronize(&self)
Blocks until all work on device to complete. Useful for benchmarking.