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
expectedRankintThe expected rank of the tensor.
actualRankintThe actual rank of the tensor.
componentstringThe component where the rank mismatch occurred.
operationstringThe operation being performed when the mismatch was detected.
Properties
ActualRank
The actual rank of the tensor.
public int ActualRank { get; }
Property Value
Component
The component where the rank mismatch occurred.
public string Component { get; }
Property Value
ExpectedRank
The expected rank of the tensor.
public int ExpectedRank { get; }
Property Value
Operation
The operation being performed when the mismatch was detected.
public string Operation { get; }