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