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

Method cuda

embodiedscan/structures/points/base_points.py:455–464  ·  view source on GitHub ↗

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

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

453 attribute_dims=self.attribute_dims)
454
455 def cuda(self, *args, **kwargs) -> 'BasePoints':
456 """Convert current points to cuda device.
457
458 Returns:
459 :obj:`BasePoints`: A new points object on the cuda device.
460 """
461 original_type = type(self)
462 return original_type(self.tensor.cuda(*args, **kwargs),
463 points_dim=self.points_dim,
464 attribute_dims=self.attribute_dims)
465
466 def clone(self) -> 'BasePoints':
467 """Clone the points.

Callers 1

voxelizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected