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