public sealed class DataTensor : IEnumerable<NodeData>,
IEnumerable, IDisposable
Provides indexed access to nodes by both numeric index and name. 提供通过数值索引和名称对节点的索引访问。
Implements IDisposable for proper cleanup of managed nodes. 实现了IDisposable接口以正确清理托管节点。
DataTensor | 初始化 DataTensor 类的一个新实例 |
Count | Gets the number of nodes in the collection 获取集合中的节点数量 |
ItemInt32 | Indexer to access nodes by numerical index 通过数值索引访问节点的索引器 |
ItemString | Indexer to access nodes by name 通过名称访问节点的索引器 |
TotalElements | Gets the total number of elements across all node buffers 获取所有节点缓冲区中的元素总数 |
AddNode(String, Int32, TensorType, Array, Int32, Type) | Adds a new node to the collection using external memory 使用外部内存向集合中添加新节点 |
AddNodeT(String, Int32, TensorType, Int32) | Adds a new node to the collection with newly allocated memory 使用新分配的内存向集合中添加新节点 |
Dispose | Releases all resources used by the DataTensor 释放DataTensor使用的所有资源 |
Equals | Determines whether the specified object is equal to the current object. (继承自 Object。) |
GetEnumerator | Returns an enumerator that iterates through the collection of nodes 返回一个遍历节点集合的枚举器 |
GetHashCode | Serves as the default hash function. (继承自 Object。) |
GetNode | Gets a node by name 通过名称获取节点 |
GetType | Gets the Type of the current instance. (继承自 Object。) |
ToString | Returns a string that represents the current object. (继承自 Object。) |
TryGetNode | Attempts to get a node by name 尝试通过名称获取节点 |