(args)
| 302 | # |
| 303 | # |
| 304 | def contains_cl(args): |
| 305 | for t in args: |
| 306 | if isinstance(t, torch.Tensor): |
| 307 | if t.is_contiguous(memory_format=torch.channels_last) and not t.is_contiguous(): |
| 308 | return True |
| 309 | elif isinstance(t, list) or isinstance(t, tuple): |
| 310 | if contains_cl(list(t)): |
| 311 | return True |
| 312 | return False |
| 313 | |
| 314 | |
| 315 | def print_inputs(args, indent=""): |