pub struct ConvDims {
pub lhs_spec: Vec<usize>,
pub rhs_spec: Vec<usize>,
pub out_spec: Vec<usize>,
}Expand description
The dimension numbers of a convolution, as JAX’s ConvDimensionNumbers:
each spec lists dimensions of an operand or of the result.
lhs_spec is (batch, feature, spatial...) of the input, rhs_spec
is (output feature, input feature, spatial...) of the kernel, and
out_spec is (batch, feature, spatial...) of the result. Spatial
dimension k of the three correspond, and the window parameters of a
convolution are given in this order.
Fields§
§lhs_spec: Vec<usize>The input’s batch, feature, and spatial dimensions.
rhs_spec: Vec<usize>The kernel’s output feature, input feature, and spatial dimensions.
out_spec: Vec<usize>The result’s batch, feature, and spatial dimensions.
Implementations§
Trait Implementations§
impl Eq for ConvDims
impl StructuralPartialEq for ConvDims
Auto Trait Implementations§
impl Freeze for ConvDims
impl RefUnwindSafe for ConvDims
impl Send for ConvDims
impl Sync for ConvDims
impl Unpin for ConvDims
impl UnsafeUnpin for ConvDims
impl UnwindSafe for ConvDims
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