MCPcopy Create free account
hub / github.com/WeChatCV/WeVisionOne / __init__

Method __init__

WeVisionOne/utils/misc.py:27–29  ·  view source on GitHub ↗
(self, tensors, mask: Optional[Tensor])

Source from the content-addressed store, hash-verified

25
26class NestedTensor(object):
27 def __init__(self, tensors, mask: Optional[Tensor]):
28 self.tensors = tensors
29 self.mask = mask
30
31 def to(self, device):
32 # type: (Device) -> NestedTensor # noqa

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected