Struct tensorflow::eager::raw_ops::CropAndResize
source · pub struct CropAndResize { /* private fields */ }
Expand description
CropAndResize
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/CropAndResize
Implementations§
source§impl CropAndResize
impl CropAndResize
sourcepub fn extrapolation_value<ArgType: Into<f32>>(self, value: ArgType) -> Self
pub fn extrapolation_value<ArgType: Into<f32>>(self, value: ArgType) -> Self
Sets the extrapolation_value
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>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>, T3: ToTensorHandle<'a>>(
&self,
ctx: &'a Context,
image: &T0,
boxes: &T1,
box_ind: &T2,
crop_size: &T3
) -> Result<TensorHandle<'a>>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>, T3: ToTensorHandle<'a>>( &self, ctx: &'a Context, image: &T0, boxes: &T1, box_ind: &T2, crop_size: &T3 ) -> Result<TensorHandle<'a>>
Execute crop_and_resize.
Trait Implementations§
source§impl Clone for CropAndResize
impl Clone for CropAndResize
source§fn clone(&self) -> CropAndResize
fn clone(&self) -> CropAndResize
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 CropAndResize
impl Debug for CropAndResize
Auto Trait Implementations§
impl RefUnwindSafe for CropAndResize
impl Send for CropAndResize
impl Sync for CropAndResize
impl Unpin for CropAndResize
impl UnwindSafe for CropAndResize
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