Table of Contents

Class GradOctonionMultiplyOp

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

Represents the gradient of octonion multiplication in the IR.

public class GradOctonionMultiplyOp : IROp
Inheritance
GradOctonionMultiplyOp
Inherited Members

Remarks

For octonion product c = a * b, the gradients are computed using: - d_a = d_c * b^* (right multiplication by conjugate of b) - d_b = a^* * d_c (left multiplication by conjugate of a) where ^* denotes octonion conjugate.

For Beginners: When training with octonions, we need to compute how changes in inputs affect the output. The gradient tells us this information for backpropagation through the octonion multiplication.

Fields

ExpectedOutputCount

Expected number of outputs: d_a and d_b.

public const int ExpectedOutputCount = 2

Field Value

int

Methods

Validate()

Validates that this operation is correctly formed.

public override bool Validate()

Returns

bool

True if valid, false otherwise.