pub trait BackendSessionHost: BackendRuntimeCache {
// Provided method
fn with_backend_session<R: Send>(
&mut self,
f: impl FnOnce(&mut dyn BackendSession) -> R + Send,
) -> R
where Self: TensorBackend + Sized { ... }
}Expand description
Backend execution-session entry points.
§Examples
use tenferro_tensor::BackendSessionHost;
fn accepts_session_host<B: BackendSessionHost>(_backend: &mut B) {}