pub struct StatelessSampleDistortedBoundingBox { /* private fields */ }
Expand description

Builder for the StatelessSampleDistortedBoundingBox operation.

Implementations§

source§

impl StatelessSampleDistortedBoundingBox

source

pub fn new() -> Self

Creates a new StatelessSampleDistortedBoundingBox.

source

pub fn T<ArgType: Into<DataType>>(self, value: ArgType) -> Self

Sets the T attribute.

source

pub fn Tseed<ArgType: Into<DataType>>(self, value: ArgType) -> Self

Sets the Tseed attribute.

source

pub fn aspect_ratio_range<ArgType: Into<Vec<f32>>>(self, value: ArgType) -> Self

Sets the aspect_ratio_range attribute.

source

pub fn area_range<ArgType: Into<Vec<f32>>>(self, value: ArgType) -> Self

Sets the area_range attribute.

source

pub fn max_attempts<ArgType: Into<i64>>(self, value: ArgType) -> Self

Sets the max_attempts attribute.

source

pub fn use_image_if_no_bounding_boxes<ArgType: Into<bool>>( self, value: ArgType ) -> Self

Sets the use_image_if_no_bounding_boxes attribute.

source

pub fn add_control_input(self, op: Operation) -> Self

Adds a control input.

source

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.

source

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 Debug for StatelessSampleDistortedBoundingBox

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StatelessSampleDistortedBoundingBox

source§

fn default() -> StatelessSampleDistortedBoundingBox

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.