Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

NodeData 类

Represents a single tensor node with metadata and data buffer 表示具有元数据和数据缓冲区的单个张量节点

Definition

命名空间: DeploySharp.Data
程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
public sealed class NodeData : IDisposable
Inheritance
Object    NodeData
Implements
IDisposable

备注

Manages 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使用的所有资源
EqualsDetermines whether the specified object is equal to the current object.
(继承自 Object。)
GetElementSize 
GetHashCodeServes as the default hash function.
(继承自 Object。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
ToStringReturns a string that represents the current object.
(继承自 Object。)

字段

DataBuffer Gets or sets the underlying data buffer array 获取或设置底层数据缓冲区数组

参见