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

Method __iter__

PATH/core/models/ops/boxes.py:303–307  ·  view source on GitHub ↗

Yield a box as a Tensor of shape (4,) at a time.

(self)

Source from the content-addressed store, hash-verified

301 # https://github.com/pytorch/pytorch/issues/18627
302 @torch.jit.unused
303 def __iter__(self):
304 """
305 Yield a box as a Tensor of shape (4,) at a time.
306 """
307 yield from self.tensor
308
309
310def pairwise_intersection(boxes1: Boxes, boxes2: Boxes) -> torch.Tensor:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected