Struct tensorflow::ops::EncodePng
source · pub struct EncodePng { /* private fields */ }
Expand description
Builder for the EncodePng
operation.
Implementations§
source§impl EncodePng
impl EncodePng
sourcepub fn compression<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn compression<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the compression
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 EncodePng
operation.
sourcepub fn build_instance(
&self,
image: Output,
scope: &mut Scope
) -> Result<EncodePngInst>
pub fn build_instance( &self, image: Output, scope: &mut Scope ) -> Result<EncodePngInst>
Builds a new instance of ‘EncodePng’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for EncodePng
impl Send for EncodePng
impl Sync for EncodePng
impl Unpin for EncodePng
impl UnwindSafe for EncodePng
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