MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / __init__

Method __init__

SwissArmyTransformer/examples/yolos/util/misc.py:284–286  ·  view source on GitHub ↗
(self, tensors, mask: Optional[Tensor])

Source from the content-addressed store, hash-verified

282
283class NestedTensor(object):
284 def __init__(self, tensors, mask: Optional[Tensor]):
285 self.tensors = tensors
286 self.mask = mask
287
288 def to(self, device):
289 # type: (Device) -> NestedTensor # noqa

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected