#[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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MatrixOperation
impl Debug for MatrixOperation
Source§impl From<MatrixOperation> for MatrixOperation
impl From<MatrixOperation> for MatrixOperation
Source§fn from(value: MatrixOperation) -> Self
fn from(value: MatrixOperation) -> Self
Source§impl Hash for MatrixOperation
impl Hash for MatrixOperation
Source§impl Into<MatrixOperation> for MatrixOperation
impl Into<MatrixOperation> for MatrixOperation
Source§fn into(self) -> MatrixOperation
fn into(self) -> MatrixOperation
Source§impl Ord for MatrixOperation
impl Ord for MatrixOperation
Source§fn cmp(&self, other: &MatrixOperation) -> Ordering
fn cmp(&self, other: &MatrixOperation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MatrixOperation
impl PartialEq for MatrixOperation
Source§fn eq(&self, other: &MatrixOperation) -> bool
fn eq(&self, other: &MatrixOperation) -> bool
self and other values to be equal, and is used by ==.