41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#[derive(Debug, Error)]
pub enum Error<E> {
/// MPI error.
#[error("MPI error")]
MPI,
/// Original oracle error.
#[error("Error by underlying oracle")]
OracleError(E),
}
pub trait DistributedFirstOrderProblem: FirstOrderProblem + Send + Sync {
/// Abstract information about a model update.
///
/// The update must be a serializable representation of a model
/// change, which can be transferred to different nodes in a
|
|
|
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#[derive(Debug, Error)]
pub enum Error<E> {
/// MPI error.
#[error("MPI error")]
MPI,
/// Original oracle error.
#[error("Error by underlying oracle")]
OracleError(#[source] E),
}
pub trait DistributedFirstOrderProblem: FirstOrderProblem + Send + Sync {
/// Abstract information about a model update.
///
/// The update must be a serializable representation of a model
/// change, which can be transferred to different nodes in a
|