Skip to main content

TensorExecutor

Trait TensorExecutor 

Source
pub trait TensorExecutor:
    Send
    + Sync
    + 'static {
    // Required methods
    fn card(&self) -> TensorExecutorCard;
    fn execute(
        &self,
        cx: &mut Cx,
        request: TensorRequest,
    ) -> Result<TensorExecution, TensorExecError>;
    fn flush(&self) -> Result<SubmissionEvidence, TensorExecError>;
}
Expand description

A loadable provider that executes checked tensor requests.

Required Methods§

Source

fn card(&self) -> TensorExecutorCard

Returns the executor descriptor.

Source

fn execute( &self, cx: &mut Cx, request: TensorRequest, ) -> Result<TensorExecution, TensorExecError>

Executes one checked tensor request.

Source

fn flush(&self) -> Result<SubmissionEvidence, TensorExecError>

Flushes accepted submissions and returns synchronization evidence.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§