(ret)
| 44 | |
| 45 | |
| 46 | def _not_requiring_metadata(ret): |
| 47 | return isinstance(ret, (int, str, bytes, torch.Size, torch.dtype, torch.device, np.ndarray)) or not ( |
| 48 | isinstance(ret, MetaTensor) or (isinstance(ret, Sequence) and any(isinstance(x, MetaTensor) for x in ret)) |
| 49 | ) |
| 50 | |
| 51 | |
| 52 | class MetaTensor(MetaObj, torch.Tensor): |
no outgoing calls
no test coverage detected
searching dependent graphs…