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