MCPcopy Create free account
hub / github.com/apple/ml-pointersect / to

Method to

pointersect/inference/structures.py:1643–1646  ·  view source on GitHub ↗
(self, device: torch.device)

Source from the content-addressed store, hash-verified

1641 return cameras
1642
1643 def to(self, device: torch.device) -> 'Camera':
1644 self.H_c2w = self.H_c2w.to(device=device)
1645 self.intrinsic = self.intrinsic.to(device=device)
1646 return self
1647
1648 def detach(self) -> 'Camera':
1649 self.H_c2w = self.H_c2w.detach()

Callers

nothing calls this directly

Calls 1

toMethod · 0.45

Tested by

no test coverage detected