pub struct WgpuTensorExecutor { /* private fields */ }Expand description
Tensor executor descriptor backed by a successful wgpu probe.
Implementations§
Source§impl WgpuTensorExecutor
impl WgpuTensorExecutor
Sourcepub fn new(probe: WgpuAdapterProbe) -> Self
pub fn new(probe: WgpuAdapterProbe) -> Self
Builds an executor from successful probe evidence.
Sourcepub fn probe(&self) -> &WgpuAdapterProbe
pub fn probe(&self) -> &WgpuAdapterProbe
Returns the underlying probe evidence.
Sourcepub fn pipeline_cache_snapshot(&self) -> WgpuPipelineCacheSnapshot
pub fn pipeline_cache_snapshot(&self) -> WgpuPipelineCacheSnapshot
Returns the pipeline cache snapshot.
Sourcepub fn physical_evidence(&self) -> PhysicalSubmissionEvidence
pub fn physical_evidence(&self) -> PhysicalSubmissionEvidence
Returns queue-derived physical submission evidence.
Trait Implementations§
Source§impl Clone for WgpuTensorExecutor
impl Clone for WgpuTensorExecutor
Source§fn clone(&self) -> WgpuTensorExecutor
fn clone(&self) -> WgpuTensorExecutor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl TensorExecutor for WgpuTensorExecutor
impl TensorExecutor for WgpuTensorExecutor
Source§fn card(&self) -> TensorExecutorCard
fn card(&self) -> TensorExecutorCard
Returns the executor descriptor.
Source§fn execute(
&self,
cx: &mut Cx,
request: TensorRequest,
) -> Result<TensorExecution, TensorExecError>
fn execute( &self, cx: &mut Cx, request: TensorRequest, ) -> Result<TensorExecution, TensorExecError>
Executes one checked tensor request.
Source§fn flush(&self) -> Result<SubmissionEvidence, TensorExecError>
fn flush(&self) -> Result<SubmissionEvidence, TensorExecError>
Flushes accepted submissions and returns synchronization evidence.
Auto Trait Implementations§
impl !RefUnwindSafe for WgpuTensorExecutor
impl !UnwindSafe for WgpuTensorExecutor
impl Freeze for WgpuTensorExecutor
impl Send for WgpuTensorExecutor
impl Sync for WgpuTensorExecutor
impl Unpin for WgpuTensorExecutor
impl UnsafeUnpin for WgpuTensorExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more