pub enum OnnxOpType {
Show 32 variants
Add,
Sub,
Mul,
Div,
MatMul,
Gemm,
Relu,
Sigmoid,
Tanh,
Softmax,
Gelu,
Conv,
ConvTranspose,
MaxPool,
AveragePool,
GlobalAveragePool,
BatchNormalization,
LayerNormalization,
Reshape,
Transpose,
Flatten,
Squeeze,
Unsqueeze,
Concat,
ReduceSum,
ReduceMean,
ReduceMax,
ReduceMin,
Dropout,
Constant,
Identity,
Unknown,
}Expand description
ONNX operator type mapping.
Variants§
Add
Element-wise addition.
Sub
Element-wise subtraction.
Mul
Element-wise multiplication.
Div
Element-wise division.
MatMul
Matrix multiplication.
Gemm
General matrix multiplication (with bias).
Relu
Rectified Linear Unit activation.
Sigmoid
Sigmoid activation.
Tanh
Hyperbolic tangent activation.
Softmax
Softmax activation.
Gelu
Gaussian Error Linear Unit activation.
Conv
Convolution operation.
ConvTranspose
Transposed convolution (deconvolution).
MaxPool
Max pooling operation.
AveragePool
Average pooling operation.
GlobalAveragePool
Global average pooling operation.
BatchNormalization
Batch normalization.
LayerNormalization
Layer normalization.
Reshape
Reshape tensor dimensions.
Transpose
Transpose tensor dimensions.
Flatten
Flatten tensor to 2D.
Squeeze
Remove dimensions of size 1.
Unsqueeze
Add dimension of size 1.
Concat
Concatenate tensors along axis.
ReduceSum
Sum reduction along axis.
ReduceMean
Mean reduction along axis.
ReduceMax
Max reduction along axis.
ReduceMin
Min reduction along axis.
Dropout
Dropout layer (training regularization).
Constant
Constant tensor.
Identity
Identity pass-through.
Unknown
Unknown or unsupported operator.
Implementations§
Trait Implementations§
Source§impl Clone for OnnxOpType
impl Clone for OnnxOpType
Source§fn clone(&self) -> OnnxOpType
fn clone(&self) -> OnnxOpType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OnnxOpType
impl Debug for OnnxOpType
Source§impl PartialEq for OnnxOpType
impl PartialEq for OnnxOpType
impl Copy for OnnxOpType
impl Eq for OnnxOpType
impl StructuralPartialEq for OnnxOpType
Auto Trait Implementations§
impl Freeze for OnnxOpType
impl RefUnwindSafe for OnnxOpType
impl Send for OnnxOpType
impl Sync for OnnxOpType
impl Unpin for OnnxOpType
impl UnwindSafe for OnnxOpType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more