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
sourceimpl 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
sourceimpl Clone for SwitchInst
impl Clone for SwitchInst
sourcefn clone(&self) -> SwitchInst
fn clone(&self) -> SwitchInst
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SwitchInst
impl Debug for SwitchInst
sourceimpl From<SwitchInst> for Operation
impl From<SwitchInst> for Operation
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more