MCPcopy
hub / github.com/facebookresearch/detectron2 / to

Method to

detectron2/structures/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

test_toMethod · 0.95
funcMethod · 0.95
forwardMethod · 0.45
do_trainFunction · 0.45
mainFunction · 0.45
benchmark_evalFunction · 0.45
_get_augmented_boxesMethod · 0.45
apply_deltasMethod · 0.45
apply_deltasMethod · 0.45
apply_deltasMethod · 0.45
assign_boxes_to_levelsFunction · 0.45
forwardMethod · 0.45

Calls 1

BoxesClass · 0.85

Tested by 15

test_toMethod · 0.76
funcMethod · 0.76
_get_augmented_boxesMethod · 0.36
_data_loaderMethod · 0.36
test_simple_trainerMethod · 0.36
get_empty_instanceFunction · 0.36
_test_scriptabilityMethod · 0.36