TensorRankException
Exceptions · AiDotNet.Exceptions
Exception thrown when a tensor’s rank doesn’t match the expected rank.
Inheritance: Exception → AiDotNetException → TensorRankException
Constructors
| Constructor | Summary |
|---|---|
TensorRankException(int expectedRank, int actualRank, string component, string operation) |
Initializes a new instance of the TensorRankException class. |
Properties
| Property | Summary |
|---|---|
int ActualRank { get; } |
The actual rank of the tensor. |
int ExpectedRank { get; } |
The expected rank of the tensor. |
string Component { get; } |
The component where the rank mismatch occurred. |
string Operation { get; } |
The operation being performed when the mismatch was detected. |