TensorDimensionException
Exceptions · AiDotNet.Exceptions
Exception thrown when a tensor’s dimension doesn’t match the expected value.
Inheritance: Exception → AiDotNetException → TensorDimensionException
Constructors
| Constructor | Summary |
|---|---|
TensorDimensionException(int dimensionIndex, int expectedValue, int actualValue, string component, string operation) |
Initializes a new instance of the TensorDimensionException class. |
Properties
| Property | Summary |
|---|---|
int ActualValue { get; } |
The actual value of the dimension. |
int DimensionIndex { get; } |
The index of the dimension that doesn’t match. |
int ExpectedValue { get; } |
The expected value of the dimension. |
string Component { get; } |
The component where the dimension mismatch occurred. |
string Operation { get; } |
The operation being performed when the mismatch was detected. |