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