Struct tensorflow::ops::SwitchInst
source · pub struct SwitchInst {
pub op: Operation,
}
Expand description
An instance of ‘Switch’ Operation with it’s Outputs and Inputs exposed as methods.
Fields§
§op: Operation
An instance of a fully built Switch Operation in a Tensorflow graph.
Implementations§
source§impl SwitchInst
impl SwitchInst
sourcepub fn output_false(&self) -> Output
pub fn output_false(&self) -> Output
Returns the ‘output_false’ Output of this ‘Switch’ operation.
sourcepub fn output_true(&self) -> Output
pub fn output_true(&self) -> Output
Returns the ‘output_true’ Output of this ‘Switch’ operation.
Trait Implementations§
source§impl Clone for SwitchInst
impl Clone for SwitchInst
source§fn clone(&self) -> SwitchInst
fn clone(&self) -> SwitchInst
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 SwitchInst
impl Debug for SwitchInst
source§impl From<SwitchInst> for Operation
impl From<SwitchInst> for Operation
source§fn from(inst: SwitchInst) -> Operation
fn from(inst: SwitchInst) -> Operation
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for SwitchInst
impl Send for SwitchInst
impl Sync for SwitchInst
impl Unpin for SwitchInst
impl UnwindSafe for SwitchInst
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