diff --git a/.jenkins/validate_tutorials_built.py b/.jenkins/validate_tutorials_built.py index f4586c19b3..bc86f7f7f5 100644 --- a/.jenkins/validate_tutorials_built.py +++ b/.jenkins/validate_tutorials_built.py @@ -51,8 +51,7 @@ "intermediate_source/text_to_speech_with_torchaudio", "intermediate_source/tensorboard_profiler_tutorial", # reenable after 2.0 release. "advanced_source/semi_structured_sparse", # reenable after 3303 is fixed. - "intermediate_source/torchrec_intro_tutorial", # reenable after 3302 is fixe - "intermediate_source/memory_format_tutorial", # causes other tutorials like torch_logs fail. "state" issue, reseting dynamo didn't help + "intermediate_source/torchrec_intro_tutorial" # reenable after 3302 is fixe ] def tutorial_source_dirs() -> List[Path]: diff --git a/intermediate_source/memory_format_tutorial.py b/intermediate_source/memory_format_tutorial.py index 26bc5c9d53..ee436832db 100644 --- a/intermediate_source/memory_format_tutorial.py +++ b/intermediate_source/memory_format_tutorial.py @@ -358,23 +358,29 @@ def attribute(m): print(e) -attribute(torch.Tensor) -attribute(torch.nn.functional) -attribute(torch) - +############################# +# To debug which operators don't support channels last format, execute +# the following lines: +# +# .. code-block:: python +# +# attribute(torch.Tensor) +# attribute(torch.nn.functional) +# attribute(torch) +# ###################################################################### # If you found an operator that doesn't support channels last tensors -# and you want to contribute, feel free to use following developers -# guide https://github.com/pytorch/pytorch/wiki/Writing-memory-format-aware-operators. +# and you want to contribute, see following developers +# `Writing Memory Format Aware Operators `__. # ###################################################################### -# Code below is to recover the attributes of torch. - -for (m, attrs) in old_attrs.items(): - for (k, v) in attrs.items(): - setattr(m, k, v) +# The code below is to recover the attributes of torch. +# +# for (m, attrs) in old_attrs.items(): +# for (k, v) in attrs.items(): +# setattr(m, k, v) ###################################################################### # Work to do