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