Struct alumina::shape::DataShape
[−]
[src]
pub struct DataShape { pub channels: usize, pub spatial_dimensions: SmallVec<[usize; 4]>, pub n: usize, }
Fields
channels: usize
spatial_dimensions: SmallVec<[usize; 4]>
n: usize
The number of training examples being processed in parallel
Methods
impl DataShape
[src]
fn spatial_size_single(&self) -> usize
fn flat_size_single(&self) -> usize
fn flat_size_all(&self) -> usize
fn rank(&self) -> usize
Rank excluding 'n'
fn new(channels: usize, higher_dims: &[usize], n: usize) -> DataShape
fn new_flat(size: usize, n: usize) -> DataShape
fn to_node_shape(&self) -> NodeShape
Trait Implementations
impl Clone for DataShape
[src]
fn clone(&self) -> DataShape
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for DataShape
[src]
fn eq(&self, __arg_0: &DataShape) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DataShape) -> bool
This method tests for !=
.