useserde::{Deserialize, Serialize};/// The different ways to execute the reduce operation.
#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy, Serialize, Deserialize)]pubenumReduceOperation{/// The sum of the values.
Sum,/// The mean of the values.
Mean,}/// Parameter struct for setting up and getting parameters for distributed operations.
#[derive(Clone, Debug)]pubstructDistributedConfig{/// How to execute the all_reduce operation.
puball_reduce_op: ReduceOperation,
}