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