Struct argmin::core::executor::Executor [−][src]
Expand description
Executes a solver
Fields
op: OpWrapper<O>
operator
Implementations
impl<O, S> Executor<O, S> where
O: ArgminOp,
S: Solver<O>,
[src]
impl<O, S> Executor<O, S> where
O: ArgminOp,
S: Solver<O>,
[src]pub fn new(op: O, solver: S, init_param: O::Param) -> Self
[src]
pub fn new(op: O, solver: S, init_param: O::Param) -> Self
[src]Create a new executor with a solver
and an initial parameter init_param
pub fn from_checkpoint<P: AsRef<Path>>(path: P, op: O) -> Result<Self, Error> where
Self: Sized + DeserializeOwned,
[src]
pub fn from_checkpoint<P: AsRef<Path>>(path: P, op: O) -> Result<Self, Error> where
Self: Sized + DeserializeOwned,
[src]Create a new executor from a checkpoint
pub fn run(self) -> Result<ArgminResult<O>, Error>
[src]
pub fn run(self) -> Result<ArgminResult<O>, Error>
[src]Run the executor
pub fn add_observer<OBS: Observe<O> + 'static>(
self,
observer: OBS,
mode: ObserverMode
) -> Self
[src]
pub fn add_observer<OBS: Observe<O> + 'static>(
self,
observer: OBS,
mode: ObserverMode
) -> Self
[src]Attaches a observer which implements ArgminLog
to the solver.
pub fn target_cost(self, cost: O::Float) -> Self
[src]
pub fn target_cost(self, cost: O::Float) -> Self
[src]Set target cost value
pub fn checkpoint_dir(self, dir: &str) -> Self
[src]
pub fn checkpoint_dir(self, dir: &str) -> Self
[src]Set checkpoint directory
pub fn checkpoint_name(self, dir: &str) -> Self
[src]
pub fn checkpoint_name(self, dir: &str) -> Self
[src]Set checkpoint name
pub fn checkpoint_mode(self, mode: CheckpointMode) -> Self
[src]
pub fn checkpoint_mode(self, mode: CheckpointMode) -> Self
[src]Set the checkpoint mode
Trait Implementations
impl<'de, O: ArgminOp, S> Deserialize<'de> for Executor<O, S> where
IterState<O>: Serialize,
S: Deserialize<'de>,
O: Default,
[src]
impl<'de, O: ArgminOp, S> Deserialize<'de> for Executor<O, S> where
IterState<O>: Serialize,
S: Deserialize<'de>,
O: Default,
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<O, S> RefUnwindSafe for Executor<O, S> where
O: RefUnwindSafe,
S: RefUnwindSafe,
<O as ArgminOp>::Float: RefUnwindSafe,
<O as ArgminOp>::Hessian: RefUnwindSafe,
<O as ArgminOp>::Jacobian: RefUnwindSafe,
<O as ArgminOp>::Param: RefUnwindSafe,
O: RefUnwindSafe,
S: RefUnwindSafe,
<O as ArgminOp>::Float: RefUnwindSafe,
<O as ArgminOp>::Hessian: RefUnwindSafe,
<O as ArgminOp>::Jacobian: RefUnwindSafe,
<O as ArgminOp>::Param: RefUnwindSafe,
impl<O, S> !Send for Executor<O, S>
impl<O, S> !Sync for Executor<O, S>
impl<O, S> Unpin for Executor<O, S> where
O: Unpin,
S: Unpin,
<O as ArgminOp>::Float: Unpin,
<O as ArgminOp>::Hessian: Unpin,
<O as ArgminOp>::Jacobian: Unpin,
<O as ArgminOp>::Param: Unpin,
O: Unpin,
S: Unpin,
<O as ArgminOp>::Float: Unpin,
<O as ArgminOp>::Hessian: Unpin,
<O as ArgminOp>::Jacobian: Unpin,
<O as ArgminOp>::Param: Unpin,
impl<O, S> UnwindSafe for Executor<O, S> where
O: UnwindSafe,
S: UnwindSafe,
<O as ArgminOp>::Float: UnwindSafe,
<O as ArgminOp>::Hessian: UnwindSafe,
<O as ArgminOp>::Jacobian: UnwindSafe,
<O as ArgminOp>::Param: UnwindSafe,
O: UnwindSafe,
S: UnwindSafe,
<O as ArgminOp>::Float: UnwindSafe,
<O as ArgminOp>::Hessian: UnwindSafe,
<O as ArgminOp>::Jacobian: UnwindSafe,
<O as ArgminOp>::Param: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,