#[non_exhaustive]pub struct ManualBatchTuningParameters {
pub batch_size: i32,
/* private fields */
}Expand description
Manual batch tuning parameters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.batch_size: i32Immutable. The number of the records (e.g. instances) of the operation given in each batch to a machine replica. Machine type, and size of a single record should be considered when setting this parameter, higher value speeds up the batch operation’s execution, but too high value will result in a whole batch not fitting in a machine’s memory, and the whole operation will fail. The default value is 64.
Implementations§
Source§impl ManualBatchTuningParameters
impl ManualBatchTuningParameters
pub fn new() -> Self
Sourcepub fn set_batch_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_batch_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of batch_size.
Trait Implementations§
Source§impl Clone for ManualBatchTuningParameters
impl Clone for ManualBatchTuningParameters
Source§fn clone(&self) -> ManualBatchTuningParameters
fn clone(&self) -> ManualBatchTuningParameters
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ManualBatchTuningParameters
impl Debug for ManualBatchTuningParameters
Source§impl Default for ManualBatchTuningParameters
impl Default for ManualBatchTuningParameters
Source§fn default() -> ManualBatchTuningParameters
fn default() -> ManualBatchTuningParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ManualBatchTuningParameterswhere
ManualBatchTuningParameters: Default,
impl<'de> Deserialize<'de> for ManualBatchTuningParameterswhere
ManualBatchTuningParameters: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ManualBatchTuningParameters
Auto Trait Implementations§
impl Freeze for ManualBatchTuningParameters
impl RefUnwindSafe for ManualBatchTuningParameters
impl Send for ManualBatchTuningParameters
impl Sync for ManualBatchTuningParameters
impl Unpin for ManualBatchTuningParameters
impl UnwindSafe for ManualBatchTuningParameters
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