Struct tensorflow::ops::EncodeJpeg
source · [−]pub struct EncodeJpeg { /* private fields */ }Expand description
Builder for the EncodeJpeg operation.
Implementations
sourceimpl EncodeJpeg
impl EncodeJpeg
sourcepub fn progressive<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn progressive<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the progressive attribute.
sourcepub fn optimize_size<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn optimize_size<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the optimize_size attribute.
sourcepub fn chroma_downsampling<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn chroma_downsampling<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the chroma_downsampling attribute.
sourcepub fn density_unit<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn density_unit<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the density_unit attribute.
sourcepub fn x_density<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn x_density<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the x_density attribute.
sourcepub fn y_density<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn y_density<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the y_density attribute.
sourcepub fn xmp_metadata<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn xmp_metadata<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the xmp_metadata 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,
image: O0,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>>(
&self,
image: O0,
scope: &mut Scope
) -> Result<Operation>
Builds the EncodeJpeg operation.
sourcepub fn build_instance(
&self,
image: Output,
scope: &mut Scope
) -> Result<EncodeJpegInst>
pub fn build_instance(
&self,
image: Output,
scope: &mut Scope
) -> Result<EncodeJpegInst>
Builds a new instance of ‘EncodeJpeg’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations
sourceimpl Debug for EncodeJpeg
impl Debug for EncodeJpeg
sourceimpl Default for EncodeJpeg
impl Default for EncodeJpeg
sourcefn default() -> EncodeJpeg
fn default() -> EncodeJpeg
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for EncodeJpeg
impl Send for EncodeJpeg
impl Sync for EncodeJpeg
impl Unpin for EncodeJpeg
impl UnwindSafe for EncodeJpeg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more