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