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
dimensionIndexintThe index of the dimension that doesn't match.
expectedValueintThe expected value of the dimension.
actualValueintThe actual value of the dimension.
componentstringThe component where the dimension mismatch occurred.
operationstringThe operation being performed when the mismatch was detected.
Properties
ActualValue
The actual value of the dimension.
public int ActualValue { get; }
Property Value
Component
The component where the dimension mismatch occurred.
public string Component { get; }
Property Value
DimensionIndex
The index of the dimension that doesn't match.
public int DimensionIndex { get; }
Property Value
ExpectedValue
The expected value of the dimension.
public int ExpectedValue { get; }
Property Value
Operation
The operation being performed when the mismatch was detected.
public string Operation { get; }