Class TensorMetadata
- Namespace
- AiDotNet.ModelLoading
- Assembly
- AiDotNet.dll
Metadata about a tensor in a SafeTensors file.
public class TensorMetadata
- Inheritance
-
TensorMetadata
- Inherited Members
Properties
DataSizeBytes
Size of the tensor data in bytes.
public long DataSizeBytes { get; set; }
Property Value
DataType
Data type (e.g., "F16", "F32", "BF16").
public string DataType { get; set; }
Property Value
ElementCount
Gets the total number of elements in the tensor.
public long ElementCount { get; }
Property Value
Name
Name of the tensor.
public string Name { get; set; }
Property Value
Shape
Shape of the tensor.
public int[] Shape { get; set; }
Property Value
- int[]
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.