Struct tensorflow::eager::raw_ops::SampleDistortedBoundingBox
source · pub struct SampleDistortedBoundingBox { /* private fields */ }
Expand description
SampleDistortedBoundingBox
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/SampleDistortedBoundingBox
Implementations§
source§impl SampleDistortedBoundingBox
impl SampleDistortedBoundingBox
sourcepub fn min_object_covered<ArgType: Into<f32>>(self, value: ArgType) -> Self
pub fn min_object_covered<ArgType: Into<f32>>(self, value: ArgType) -> Self
Sets the min_object_covered
attribute.
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>>(
&self,
ctx: &'a Context,
image_size: &T0,
bounding_boxes: &T1
) -> Result<[TensorHandle<'a>; 3]>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>>( &self, ctx: &'a Context, image_size: &T0, bounding_boxes: &T1 ) -> Result<[TensorHandle<'a>; 3]>
Execute sample_distorted_bounding_box.
Trait Implementations§
source§impl Clone for SampleDistortedBoundingBox
impl Clone for SampleDistortedBoundingBox
source§fn clone(&self) -> SampleDistortedBoundingBox
fn clone(&self) -> SampleDistortedBoundingBox
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 SampleDistortedBoundingBox
impl Debug for SampleDistortedBoundingBox
Auto Trait Implementations§
impl RefUnwindSafe for SampleDistortedBoundingBox
impl Send for SampleDistortedBoundingBox
impl Sync for SampleDistortedBoundingBox
impl Unpin for SampleDistortedBoundingBox
impl UnwindSafe for SampleDistortedBoundingBox
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