(x)
| 58 | return tensor.mean(dim=list(range(1, len(tensor.shape)))) |
| 59 | |
| 60 | def ismap(x): |
| 61 | if not isinstance(x, torch.Tensor): |
| 62 | return False |
| 63 | return (len(x.shape) == 4) and (x.shape[1] > 3) |
| 64 | |
| 65 | def isimage(x): |
| 66 | if not isinstance(x,torch.Tensor): |
nothing calls this directly
no outgoing calls
no test coverage detected