yr.datasystem.hetero_client.Blob¶
- class yr.datasystem.hetero_client.Blob(dev_ptr, size)¶
用于描述 Device NPU 卡上的一段内存。
- 参数:
dev_ptr (int) - 用于描述 Device 上的内存指针。
size (int) - 用于描述内存的大小。
- 输出:
Blob
方法:
指定 Device 内存指针地址。
指定 Device 内存地址空间大小。
用于描述 Device NPU 卡上的一段内存。
dev_ptr (int) - 用于描述 Device 上的内存指针。
size (int) - 用于描述内存的大小。
Blob
方法:
指定 Device 内存指针地址。 |
|
指定 Device 内存地址空间大小。 |