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