MCPcopy Index your code
hub / github.com/OpenGVLab/HumanBench / device

Method device

PATH/core/models/ops/boxes.py:297–298  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

295
296 @property
297 def device(self) -> device:
298 return self.tensor.device
299
300 # type "Iterator[torch.Tensor]", yield, and iter() not supported by torchscript
301 # https://github.com/pytorch/pytorch/issues/18627

Callers 12

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
ckpt_trans.pyFile · 0.45
ckpt_trans.pyFile · 0.45

Calls

no outgoing calls

Tested by 8

__init__Method · 0.36
__init__Method · 0.36
__init__Method · 0.36
__init__Method · 0.36
__init__Method · 0.36
__init__Method · 0.36
__init__Method · 0.36
__init__Method · 0.36