MCPcopy Create free account
hub / github.com/InternRobotics/EmbodiedScan / cpu

Method cpu

embodiedscan/structures/points/base_points.py:444–453  ·  view source on GitHub ↗

Convert current points to cpu device. Returns: :obj:`BasePoints`: A new points object on the cpu device.

(self)

Source from the content-addressed store, hash-verified

442 attribute_dims=self.attribute_dims)
443
444 def cpu(self) -> 'BasePoints':
445 """Convert current points to cpu device.
446
447 Returns:
448 :obj:`BasePoints`: A new points object on the cpu device.
449 """
450 original_type = type(self)
451 return original_type(self.tensor.cpu(),
452 points_dim=self.points_dim,
453 attribute_dims=self.attribute_dims)
454
455 def cuda(self, *args, **kwargs) -> 'BasePoints':
456 """Convert current points to cuda device.

Callers 11

convertMethod · 0.45
recoverMethod · 0.45
__getitem__Method · 0.45
_9dof_to_boxFunction · 0.45
nms_filterFunction · 0.45
bbox3d2resultFunction · 0.45
processMethod · 0.45
voxelizeMethod · 0.45
assignMethod · 0.45
nms_filterFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected