Table of Contents

Class TensorRankException

Namespace
AiDotNet.Exceptions
Assembly
AiDotNet.dll

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

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

Constructors

TensorRankException(int, int, string, string)

Initializes a new instance of the TensorRankException class.

public TensorRankException(int expectedRank, int actualRank, string component, string operation)

Parameters

expectedRank int

The expected rank of the tensor.

actualRank int

The actual rank of the tensor.

component string

The component where the rank mismatch occurred.

operation string

The operation being performed when the mismatch was detected.

Properties

ActualRank

The actual rank of the tensor.

public int ActualRank { get; }

Property Value

int

Component

The component where the rank mismatch occurred.

public string Component { get; }

Property Value

string

ExpectedRank

The expected rank of the tensor.

public int ExpectedRank { get; }

Property Value

int

Operation

The operation being performed when the mismatch was detected.

public string Operation { get; }

Property Value

string