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