Table of Contents

Class GradSpMVOp

Namespace
AiDotNet.JitCompiler.IR.Operations
Assembly
AiDotNet.dll

Represents the gradient of sparse matrix-vector multiplication in the IR.

public class GradSpMVOp : IROp
Inheritance
GradSpMVOp
Inherited Members

Remarks

For SpMV y = A * x: - Gradient w.r.t. x: d_x = A^T * d_y - Gradient w.r.t. A (sparse): d_A[i,j] = d_y[i] * x[j] for non-zero positions

Properties

Columns

Gets or sets the number of columns in the sparse matrix.

public int Columns { get; set; }

Property Value

int

Rows

Gets or sets the number of rows in the sparse matrix.

public int Rows { get; set; }

Property Value

int

Methods

Validate()

Validates that this operation is correctly formed.

public override bool Validate()

Returns

bool

True if valid, false otherwise.