Skip to content

Commit 1c7810c

Browse files
committed
Update
1 parent 1e521f2 commit 1c7810c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

intermediate_source/memory_format_tutorial.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,15 @@ def attribute(m):
359359

360360

361361
#############################
362-
# To debug which operators don't support channels last format, you could uncomment
363-
# the following code. This will wrap PyTorch functions to check if channels last
364-
# format is preserved through operations.
362+
# To debug which operators don't support channels last format, execute
363+
# the following lines:
364+
#
365+
# .. code-block:: python
366+
#
367+
# attribute(torch.Tensor)
368+
# attribute(torch.nn.functional)
369+
# attribute(torch)
365370
#
366-
# attribute(torch.Tensor)
367-
# attribute(torch.nn.functional)
368-
# attribute(torch)
369371

370372
######################################################################
371373
# If you found an operator that doesn't support channels last tensors

0 commit comments

Comments
 (0)