OnnxTensorInfo

Models & Types · AiDotNet.Onnx

Information about an ONNX tensor (input or output).

Implements: IOnnxTensorInfo

Constructors

Constructor Summary
OnnxTensorInfo()

Properties

Property Summary
bool HasDynamicShape { get; } Gets whether this tensor has dynamic dimensions (shape contains -1).
int[] Shape { get; set; }
long TotalElements { get; } Gets the total number of elements if the shape is fully known, -1 otherwise.
string ElementType { get; set; }
string Name { get; set; }

Methods

Method Summary
string ToString() Creates a string representation of the tensor info.