Struct tensorflow::eager::raw_ops::Batch
source · pub struct Batch { /* private fields */ }
Expand description
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 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>>(
&self,
ctx: &'a Context,
in_tensors: &T0
) -> Result<[TensorHandle<'a>; 3]>
pub fn call<'a, T0: ToTensorHandle<'a>>( &self, ctx: &'a Context, in_tensors: &T0 ) -> Result<[TensorHandle<'a>; 3]>
Execute batch.
Trait Implementations§
Auto Trait Implementations§
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