MCPcopy Create free account
hub / github.com/Gabesarch/ICAL / __init__

Method __init__

TEACh/utils/misc.py:343–345  ·  view source on GitHub ↗
(self, tensors, mask: Optional[Tensor])

Source from the content-addressed store, hash-verified

341
342class NestedTensor(object):
343 def __init__(self, tensors, mask: Optional[Tensor]):
344 self.tensors = tensors
345 self.mask = mask
346
347 def to(self, device, non_blocking=False):
348 cast_tensor = self.tensors.to(device, non_blocking=non_blocking)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected