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