Table of Contents

Enum MPSOperationType

Namespace
DotCompute.Backends.Metal.MPS
Assembly
DotCompute.Backends.Metal.dll

Extended set of MPS operation types supporting standard compute patterns.

public enum MPSOperationType

Fields

Activation = 7

Activation (generic, maps to ReLU)

BatchNormalization = 10

Batch normalization operation

Convolution = 3

Convolution (alias for Convolution2D)

Convolution2D = 3

2D Convolution with stride and padding

ElementWiseAdd = 5

Element-wise addition of arrays

ElementWiseMultiply = 6

Element-wise multiplication of arrays

GaussianBlur = 15

Gaussian blur filter

ImageConversion = 14

Image format conversion (RGBA, BGRA, etc.)

MatrixMultiplication = 1

Matrix multiplication: C = alpha * (A * B) + beta * C

MatrixMultiply = 1

Matrix multiply (alias for MatrixMultiplication)

MatrixVectorMultiplication = 2

Matrix-vector multiplication: y = alpha * (A * x) + beta * y

MaxPooling2D = 4

2D Max pooling operation

ReLU = 7

ReLU activation: y = max(0, x)

ReduceMax = 12

Maximum value reduction

ReduceMin = 13

Minimum value reduction

ReduceSum = 11

Sum reduction across array

Sigmoid = 8

Sigmoid activation: y = 1 / (1 + exp(-x))

Tanh = 9

Tanh activation: y = tanh(x)

Unknown = 0

Unknown or unsupported operation