public sealed class NodeData : IDisposableManages tensor data including shape, type and buffer memory. 管理张量数据,包括形状、类型和缓冲区内存。
Implements IDisposable for proper resource cleanup. 实现了IDisposable接口以进行适当的资源清理。
| NodeData | Initializes a new instance of the NodeData class 初始化NodeData类的新实例 |
| DataType | Gets the data type of buffer elements 获取缓冲区元素的数据类型 |
| ElementCount | Gets the total number of elements in the buffer 获取缓冲区中的元素总数 |
| ElementSize | Gets the byte size of a single element 获取单个元素的字节大小 |
| Index | Gets or sets the index position in tensor collection 获取或设置在张量集合中的索引位置 |
| Name | Gets or sets the name identifier of the node 获取或设置节点的名称标识符 |
| Shape | Gets the dimensional shape of the tensor 获取张量的维度形状 |
| Type | Gets or sets the tensor type (Input/Output) 获取或设置张量类型(输入/输出) |
| Dispose | Releases all resources used by the NodeData 释放NodeData使用的所有资源 |
| Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
| GetElementSize | |
| GetHashCode | Serves as the default hash function. (继承自 Object。) |
| GetType | Gets the Type of the current instance. (继承自 Object。) |
| ToString | Returns a string that represents the current object. (继承自 Object。) |
| DataBuffer | Gets or sets the underlying data buffer array 获取或设置底层数据缓冲区数组 |