(x)
| 196 | |
| 197 | |
| 198 | def isimage(x): |
| 199 | if not isinstance(x, torch.Tensor): |
| 200 | return False |
| 201 | return (len(x.shape) == 4) and (x.shape[1] == 3 or x.shape[1] == 1) |
| 202 | |
| 203 | |
| 204 | def isheatmap(x): |
nothing calls this directly
no outgoing calls
no test coverage detected