MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / to

Method to

PATH/core/models/ops/boxes.py:166–168  ·  view source on GitHub ↗
(self, device: torch.device)

Source from the content-addressed store, hash-verified

164 return Boxes(self.tensor.clone())
165
166 def to(self, device: torch.device):
167 # Boxes are assumed float32 and does not support to(dtype)
168 return Boxes(self.tensor.to(device=device))
169
170 def area(self) -> torch.Tensor:
171 """

Callers 15

forwardMethod · 0.45
backwardMethod · 0.45
convertMethod · 0.45
__init__Method · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45

Calls 1

BoxesClass · 0.85

Tested by 5

processMethod · 0.36
all_gatherMethod · 0.36
processMethod · 0.36
processMethod · 0.36