Trait caffe2_operator::RunStream
source · pub trait RunStream {
// Provided method
fn run(&mut self, stream_id: i32) -> bool { ... }
}
Provided Methods§
sourcefn run(&mut self, stream_id: i32) -> bool
fn run(&mut self, stream_id: i32) -> bool
| The run function of Operator switches to | the device, and then carries out the | actual computation with RunOnDevice(). You | should implement RunOnDevice instead of | Run(). | | Note: Run does not update operator’s event | and can be used only with non-async | executors that do not rely on events