Struct tensorflow::eager::raw_ops::RiscCondition
source · pub struct RiscCondition { /* private fields */ }
Expand description
RiscCondition
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/RiscCondition
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 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>>(
&self,
ctx: &'a Context,
pred: &T0,
input_true: &T1,
input_false: &T2
) -> Result<TensorHandle<'a>>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>>( &self, ctx: &'a Context, pred: &T0, input_true: &T1, input_false: &T2 ) -> Result<TensorHandle<'a>>
Execute risc_condition.
Trait Implementations§
source§impl Clone for RiscCondition
impl Clone for RiscCondition
source§fn clone(&self) -> RiscCondition
fn clone(&self) -> RiscCondition
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 RiscCondition
impl Debug for RiscCondition
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