Table of Contents

Class TensorDimensionException

Namespace
AiDotNet.Exceptions
Assembly
AiDotNet.dll

Exception thrown when a tensor's dimension doesn't match the expected value.

public class TensorDimensionException : AiDotNetException, ISerializable
Inheritance
TensorDimensionException
Implements
Inherited Members

Constructors

TensorDimensionException(int, int, int, string, string)

Initializes a new instance of the TensorDimensionException class.

public TensorDimensionException(int dimensionIndex, int expectedValue, int actualValue, string component, string operation)

Parameters

dimensionIndex int

The index of the dimension that doesn't match.

expectedValue int

The expected value of the dimension.

actualValue int

The actual value of the dimension.

component string

The component where the dimension mismatch occurred.

operation string

The operation being performed when the mismatch was detected.

Properties

ActualValue

The actual value of the dimension.

public int ActualValue { get; }

Property Value

int

Component

The component where the dimension mismatch occurred.

public string Component { get; }

Property Value

string

DimensionIndex

The index of the dimension that doesn't match.

public int DimensionIndex { get; }

Property Value

int

ExpectedValue

The expected value of the dimension.

public int ExpectedValue { get; }

Property Value

int

Operation

The operation being performed when the mismatch was detected.

public string Operation { get; }

Property Value

string