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