pub struct ModeledTensorExecutor { /* private fields */ }Expand description
Deterministic tensor executor that models resident compute placement.
Implementations§
Source§impl ModeledTensorExecutor
impl ModeledTensorExecutor
Sourcepub fn new(profile: ModeledComputeProfile) -> Self
pub fn new(profile: ModeledComputeProfile) -> Self
Builds a modeled executor from a profile.
Sourcepub fn default_profile() -> Self
pub fn default_profile() -> Self
Builds a modeled executor with the default profile.
Sourcepub fn snapshot(&self) -> ModeledComputeSnapshot
pub fn snapshot(&self) -> ModeledComputeSnapshot
Returns the current counter snapshot.
Trait Implementations§
Source§impl Clone for ModeledTensorExecutor
impl Clone for ModeledTensorExecutor
Source§fn clone(&self) -> ModeledTensorExecutor
fn clone(&self) -> ModeledTensorExecutor
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 Default for ModeledTensorExecutor
impl Default for ModeledTensorExecutor
Source§impl TensorExecutor for ModeledTensorExecutor
impl TensorExecutor for ModeledTensorExecutor
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 Freeze for ModeledTensorExecutor
impl RefUnwindSafe for ModeledTensorExecutor
impl Send for ModeledTensorExecutor
impl Sync for ModeledTensorExecutor
impl Unpin for ModeledTensorExecutor
impl UnsafeUnpin for ModeledTensorExecutor
impl UnwindSafe for ModeledTensorExecutor
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