Struct tensorflow::ops::DecodeAndCropJpeg
source · pub struct DecodeAndCropJpeg { /* private fields */ }
Expand description
Builder for the DecodeAndCropJpeg
operation.
Implementations§
source§impl DecodeAndCropJpeg
impl DecodeAndCropJpeg
sourcepub fn fancy_upscaling<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn fancy_upscaling<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the fancy_upscaling
attribute.
sourcepub fn try_recover_truncated<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn try_recover_truncated<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the try_recover_truncated
attribute.
sourcepub fn acceptable_fraction<ArgType: Into<f32>>(self, value: ArgType) -> Self
pub fn acceptable_fraction<ArgType: Into<f32>>(self, value: ArgType) -> Self
Sets the acceptable_fraction
attribute.
sourcepub fn dct_method<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn dct_method<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the dct_method
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,
contents: O0,
crop_window: O1,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>>( &self, contents: O0, crop_window: O1, scope: &mut Scope ) -> Result<Operation>
Builds the DecodeAndCropJpeg
operation.
sourcepub fn build_instance(
&self,
contents: Output,
crop_window: Output,
scope: &mut Scope
) -> Result<DecodeAndCropJpegInst>
pub fn build_instance( &self, contents: Output, crop_window: Output, scope: &mut Scope ) -> Result<DecodeAndCropJpegInst>
Builds a new instance of ‘DecodeAndCropJpeg’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for DecodeAndCropJpeg
impl Debug for DecodeAndCropJpeg
source§impl Default for DecodeAndCropJpeg
impl Default for DecodeAndCropJpeg
source§fn default() -> DecodeAndCropJpeg
fn default() -> DecodeAndCropJpeg
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DecodeAndCropJpeg
impl Send for DecodeAndCropJpeg
impl Sync for DecodeAndCropJpeg
impl Unpin for DecodeAndCropJpeg
impl UnwindSafe for DecodeAndCropJpeg
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