#[repr(i32)]pub enum MatrixOperation {
kNONE = 0,
kTRANSPOSE = 1,
kVECTOR = 2,
}Expand description
! ! \enum MatrixOperation ! ! \brief Enumerates the operations that may be performed on a tensor ! by IMatrixMultiplyLayer before multiplication. !
Variants§
kNONE = 0
! Treat x as a matrix if it has two dimensions, or as a collection of ! matrices if x has more than two dimensions, where the last two dimensions ! are the matrix dimensions. x must have at least two dimensions.
kTRANSPOSE = 1
! Like kNONE, but transpose the matrix dimensions.
kVECTOR = 2
! Treat x as a vector if it has one dimension, or as a collection of ! vectors if x has more than one dimension. x must have at least one dimension. ! ! The first input tensor with dimensions [M,K] used with MatrixOperation::kVECTOR is equivalent to a tensor ! with dimensions [M, 1, K] with MatrixOperation::kNONE, i.e. is treated as M row vectors of length K, ! or dimensions [M, K, 1] with MatrixOperation::kTRANSPOSE. ! ! The second input tensor with dimensions [M,K] used with MatrixOperation::kVECTOR is equivalent to a tensor ! with dimensions [M, K, 1] with MatrixOperation::kNONE, i.e. is treated as M column vectors of length K, ! or dimensions [M, 1, K] with MatrixOperation::kTRANSPOSE.
Trait Implementations§
Source§impl Clone for MatrixOperation
impl Clone for MatrixOperation
Source§fn clone(&self) -> MatrixOperation
fn clone(&self) -> MatrixOperation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more