open3d.core.HashSet类中的device表示当前HashSet所在的设备。
创建一个在CUDA设备上的HashSet对象:
import open3d.core as o3c device = o3c.Device('CUDA:0') hash_set = o3c.HashSet(device)
获取HashSet当前所在的设备:
device = hash_set.get_device()