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§

source

fn try_synchronize(&self) -> Result<(), Self::Err>

Blocks until all work on device to complete. Useful for benchmarking.

Provided Methods§

source

fn synchronize(&self)

Blocks until all work on device to complete. Useful for benchmarking.

Implementors§