MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / __init__

Method __init__

semantic_sam/utils/misc.py:43–45  ·  view source on GitHub ↗
(self, tensors, mask: Optional[Tensor])

Source from the content-addressed store, hash-verified

41
42class NestedTensor(object):
43 def __init__(self, tensors, mask: Optional[Tensor]):
44 self.tensors = tensors
45 self.mask = mask
46
47 def to(self, device):
48 # type: (Device) -> NestedTensor # noqa

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected