Struct tensorflow::eager::raw_ops::EncodeJpeg
source · pub struct EncodeJpeg { /* private fields */ }
Expand description
EncodeJpeg
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/EncodeJpeg
Implementations§
source§impl 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 target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the `` attribute.
sourcepub fn call<'a, T0: ToTensorHandle<'a>>(
&self,
ctx: &'a Context,
image: &T0
) -> Result<TensorHandle<'a>>
pub fn call<'a, T0: ToTensorHandle<'a>>( &self, ctx: &'a Context, image: &T0 ) -> Result<TensorHandle<'a>>
Execute encode_jpeg.
Trait Implementations§
source§impl Clone for EncodeJpeg
impl Clone for EncodeJpeg
source§fn clone(&self) -> EncodeJpeg
fn clone(&self) -> EncodeJpeg
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EncodeJpeg
impl Debug for EncodeJpeg
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§
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