MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / to

Method to

detectron2/structures/masks.py:104–105  ·  view source on GitHub ↗
(self, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

102 self.tensor = tensor
103
104 def to(self, *args: Any, **kwargs: Any) -> "BitMasks":
105 return BitMasks(self.tensor.to(*args, **kwargs))
106
107 @property
108 def device(self) -> torch.device:

Callers 3

crop_and_resizeMethod · 0.45
get_bounding_boxesMethod · 0.45
crop_and_resizeMethod · 0.45

Calls 1

BitMasksClass · 0.85

Tested by

no test coverage detected