Struct tensorflow::ops::BatchFunction
source · pub struct BatchFunction { /* private fields */ }
Expand description
Builder for the BatchFunction
operation.
Implementations§
source§impl BatchFunction
impl BatchFunction
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 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 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 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 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 Tcaptured<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
pub fn Tcaptured<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
Sets the Tcaptured
attribute.
sourcepub fn Tout<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
pub fn Tout<ArgType: Into<Vec<DataType>>>(self, value: ArgType) -> Self
Sets the Tout
attribute.
sourcepub fn enable_large_batch_splitting<ArgType: Into<bool>>(
self,
value: ArgType
) -> Self
pub fn enable_large_batch_splitting<ArgType: Into<bool>>( self, value: ArgType ) -> Self
Sets the enable_large_batch_splitting
attribute.
sourcepub fn add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
sourcepub fn build<O0: Into<Output>, O1: Into<Output>>(
&self,
in_tensors: O0,
captured_tensors: O1,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>>( &self, in_tensors: O0, captured_tensors: O1, scope: &mut Scope ) -> Result<Operation>
Builds the BatchFunction
operation.
sourcepub fn build_instance(
&self,
in_tensors: Output,
captured_tensors: Output,
scope: &mut Scope
) -> Result<BatchFunctionInst>
pub fn build_instance( &self, in_tensors: Output, captured_tensors: Output, scope: &mut Scope ) -> Result<BatchFunctionInst>
Builds a new instance of ‘BatchFunction’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for BatchFunction
impl Debug for BatchFunction
source§impl Default for BatchFunction
impl Default for BatchFunction
source§fn default() -> BatchFunction
fn default() -> BatchFunction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for BatchFunction
impl Send for BatchFunction
impl Sync for BatchFunction
impl Unpin for BatchFunction
impl UnwindSafe for BatchFunction
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