pub struct StatelessSampleDistortedBoundingBox { /* private fields */ }
Expand description
StatelessSampleDistortedBoundingBox
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/StatelessSampleDistortedBoundingBox
Implementations§
source§impl StatelessSampleDistortedBoundingBox
impl StatelessSampleDistortedBoundingBox
sourcepub fn aspect_ratio_range<ArgType: Into<Vec<f32>>>(self, value: ArgType) -> Self
pub fn aspect_ratio_range<ArgType: Into<Vec<f32>>>(self, value: ArgType) -> Self
Sets the aspect_ratio_range
attribute.
sourcepub fn area_range<ArgType: Into<Vec<f32>>>(self, value: ArgType) -> Self
pub fn area_range<ArgType: Into<Vec<f32>>>(self, value: ArgType) -> Self
Sets the area_range
attribute.
sourcepub fn max_attempts<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn max_attempts<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the max_attempts
attribute.
sourcepub fn use_image_if_no_bounding_boxes<ArgType: Into<bool>>(
self,
value: ArgType
) -> Self
pub fn use_image_if_no_bounding_boxes<ArgType: Into<bool>>( self, value: ArgType ) -> Self
Sets the use_image_if_no_bounding_boxes
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>, T2: ToTensorHandle<'a>, T3: ToTensorHandle<'a>>(
&self,
ctx: &'a Context,
image_size: &T0,
bounding_boxes: &T1,
min_object_covered: &T2,
seed: &T3
) -> Result<[TensorHandle<'a>; 3]>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>, T3: ToTensorHandle<'a>>( &self, ctx: &'a Context, image_size: &T0, bounding_boxes: &T1, min_object_covered: &T2, seed: &T3 ) -> Result<[TensorHandle<'a>; 3]>
Execute stateless_sample_distorted_bounding_box.
Trait Implementations§
source§impl Clone for StatelessSampleDistortedBoundingBox
impl Clone for StatelessSampleDistortedBoundingBox
source§fn clone(&self) -> StatelessSampleDistortedBoundingBox
fn clone(&self) -> StatelessSampleDistortedBoundingBox
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 moreAuto Trait Implementations§
impl RefUnwindSafe for StatelessSampleDistortedBoundingBox
impl Send for StatelessSampleDistortedBoundingBox
impl Sync for StatelessSampleDistortedBoundingBox
impl Unpin for StatelessSampleDistortedBoundingBox
impl UnwindSafe for StatelessSampleDistortedBoundingBox
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