pub struct Batch { /* private fields */ }
Expand description
Builder for the Batch
operation.
Implementations§
Source§impl Batch
impl Batch
Sourcepub fn num_batch_threads<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_batch_threads<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_batch_threads
attribute.
Sourcepub fn max_batch_size<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn max_batch_size<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the max_batch_size
attribute.
Sourcepub fn max_enqueued_batches<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn max_enqueued_batches<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the max_enqueued_batches
attribute.
Sourcepub fn batch_timeout_micros<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn batch_timeout_micros<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the batch_timeout_micros
attribute.
Sourcepub fn allowed_batch_sizes<ArgType: Into<Vec<i64>>>(
self,
value: ArgType,
) -> Self
pub fn allowed_batch_sizes<ArgType: Into<Vec<i64>>>( self, value: ArgType, ) -> Self
Sets the allowed_batch_sizes
attribute.
Sourcepub fn grad_timeout_micros<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn grad_timeout_micros<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the grad_timeout_micros
attribute.
Sourcepub fn container<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn container<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the container
attribute.
Sets the shared_name
attribute.
Sourcepub fn batching_queue<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn batching_queue<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the batching_queue
attribute.
Sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Batch
impl RefUnwindSafe for Batch
impl Send for Batch
impl Sync for Batch
impl Unpin for Batch
impl UnwindSafe for Batch
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