pub struct ResidentOdeExecutor { /* private fields */ }Expand description
Executes checked tensor ODE plans through an active tensor executor.
Implementations§
Source§impl ResidentOdeExecutor
impl ResidentOdeExecutor
Sourcepub fn with_executor(site: Symbol, executor: Arc<dyn TensorExecutor>) -> Self
pub fn with_executor(site: Symbol, executor: Arc<dyn TensorExecutor>) -> Self
Builds a resident ODE executor over an already-selected tensor executor.
Sourcepub fn modeled(profile: ModeledComputeProfile) -> Self
pub fn modeled(profile: ModeledComputeProfile) -> Self
Builds an ODE executor over the modeled resident provider.
Sourcepub fn modeled_tensor_executor(&self) -> Option<&ModeledTensorExecutor>
pub fn modeled_tensor_executor(&self) -> Option<&ModeledTensorExecutor>
Returns the underlying modeled tensor executor.
Sourcepub fn execute(
&self,
cx: &mut Cx,
plan: &ResidentOdePlan,
expr: Expr,
) -> Result<ResidentOdeExecution>
pub fn execute( &self, cx: &mut Cx, plan: &ResidentOdePlan, expr: Expr, ) -> Result<ResidentOdeExecution>
Executes an ODE expression through the resident tensor site.
Source§impl ResidentOdeExecutor
impl ResidentOdeExecutor
Sourcepub fn new(profile: ModeledComputeProfile) -> Self
pub fn new(profile: ModeledComputeProfile) -> Self
Builds an ODE executor that auto-flushes bounded modeled tensor batches.
Trait Implementations§
Source§impl Clone for ResidentOdeExecutor
impl Clone for ResidentOdeExecutor
Source§fn clone(&self) -> ResidentOdeExecutor
fn clone(&self) -> ResidentOdeExecutor
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ResidentOdeExecutor
impl !UnwindSafe for ResidentOdeExecutor
impl Freeze for ResidentOdeExecutor
impl Send for ResidentOdeExecutor
impl Sync for ResidentOdeExecutor
impl Unpin for ResidentOdeExecutor
impl UnsafeUnpin for ResidentOdeExecutor
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