Struct tensorflow::ops::SampleDistortedBoundingBox
source · pub struct SampleDistortedBoundingBox { /* private fields */ }
Expand description
Builder for the SampleDistortedBoundingBox
operation.
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 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,
image_size: O0,
bounding_boxes: O1,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>>( &self, image_size: O0, bounding_boxes: O1, scope: &mut Scope ) -> Result<Operation>
Builds the SampleDistortedBoundingBox
operation.
sourcepub fn build_instance(
&self,
image_size: Output,
bounding_boxes: Output,
scope: &mut Scope
) -> Result<SampleDistortedBoundingBoxInst>
pub fn build_instance( &self, image_size: Output, bounding_boxes: Output, scope: &mut Scope ) -> Result<SampleDistortedBoundingBoxInst>
Builds a new instance of ‘SampleDistortedBoundingBox’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for SampleDistortedBoundingBox
impl Debug for SampleDistortedBoundingBox
source§impl Default for SampleDistortedBoundingBox
impl Default for SampleDistortedBoundingBox
source§fn default() -> SampleDistortedBoundingBox
fn default() -> SampleDistortedBoundingBox
Returns the “default value” for a type. Read more
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