Struct tensorflow::eager::raw_ops::BatchFunction
source · pub struct BatchFunction { /* private fields */ }
Expand description
BatchFunction
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/BatchFunction
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 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 target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the `` attribute.
sourcepub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>>(
&self,
ctx: &'a Context,
in_tensors: &T0,
captured_tensors: &T1
) -> Result<TensorHandle<'a>>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>>( &self, ctx: &'a Context, in_tensors: &T0, captured_tensors: &T1 ) -> Result<TensorHandle<'a>>
Execute batch_function.
Trait Implementations§
source§impl Clone for BatchFunction
impl Clone for BatchFunction
source§fn clone(&self) -> BatchFunction
fn clone(&self) -> BatchFunction
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 BatchFunction
impl Debug for BatchFunction
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