pub struct ReshapeConfig {
pub shape: Vec<usize>,
}
Expand description
Specifies configuration parameters for a Reshape Layer.
Fields§
§shape: Vec<usize>
The target shape that the input should assume.
Preceding dimensions are treated as independent inputs
Defaults to 1
Implementations§
source§impl ReshapeConfig
impl ReshapeConfig
sourcepub fn of_shape(shape: &[usize]) -> ReshapeConfig
pub fn of_shape(shape: &[usize]) -> ReshapeConfig
Create a ReshapeConfig that describes a Reshape layer with a provided shape.
Trait Implementations§
source§impl Clone for ReshapeConfig
impl Clone for ReshapeConfig
source§fn clone(&self) -> ReshapeConfig
fn clone(&self) -> ReshapeConfig
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 ReshapeConfig
impl Debug for ReshapeConfig
Auto Trait Implementations§
impl RefUnwindSafe for ReshapeConfig
impl Send for ReshapeConfig
impl Sync for ReshapeConfig
impl Unpin for ReshapeConfig
impl UnwindSafe for ReshapeConfig
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