From 1d189709801e98f5f184af0567c7f06b8b5156c2 Mon Sep 17 00:00:00 2001 From: partev Date: Fri, 23 May 2025 21:34:34 -0400 Subject: [PATCH] remove obsolete encoding headers --- beginner_source/blitz/autograd_tutorial.py | 1 - beginner_source/blitz/cifar10_tutorial.py | 1 - beginner_source/blitz/neural_networks_tutorial.py | 1 - beginner_source/chatbot_tutorial.py | 2 -- beginner_source/data_loading_tutorial.py | 1 - beginner_source/dcgan_faces_tutorial.py | 1 - beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py | 1 - beginner_source/examples_nn/dynamic_net.py | 1 - beginner_source/examples_nn/polynomial_module.py | 1 - beginner_source/examples_nn/polynomial_nn.py | 1 - beginner_source/examples_nn/polynomial_optim.py | 1 - beginner_source/examples_tensor/polynomial_numpy.py | 1 - beginner_source/examples_tensor/polynomial_tensor.py | 1 - beginner_source/fgsm_tutorial.py | 1 - beginner_source/flava_finetuning_tutorial.py | 1 - .../learning_hybrid_frontend_through_example_tutorial.py | 1 - beginner_source/hyperparameter_tuning_tutorial.py | 1 - beginner_source/knowledge_distillation_tutorial.py | 1 - beginner_source/nlp/advanced_tutorial.py | 1 - beginner_source/nlp/deep_learning_tutorial.py | 1 - beginner_source/nlp/pytorch_tutorial.py | 1 - beginner_source/nlp/sequence_models_tutorial.py | 1 - beginner_source/nlp/word_embeddings_tutorial.py | 1 - beginner_source/nn_tutorial.py | 1 - .../onnx/export_control_flow_model_to_onnx_tutorial.py | 1 - beginner_source/onnx/export_simple_model_to_onnx_tutorial.py | 1 - beginner_source/onnx/onnx_registry_tutorial.py | 1 - beginner_source/saving_loading_models.py | 1 - beginner_source/template_tutorial.py | 2 -- beginner_source/transfer_learning_tutorial.py | 1 - 30 files changed, 32 deletions(-) diff --git a/beginner_source/blitz/autograd_tutorial.py b/beginner_source/blitz/autograd_tutorial.py index b736b429ee..2a35ae7034 100644 --- a/beginner_source/blitz/autograd_tutorial.py +++ b/beginner_source/blitz/autograd_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ A Gentle Introduction to ``torch.autograd`` =========================================== diff --git a/beginner_source/blitz/cifar10_tutorial.py b/beginner_source/blitz/cifar10_tutorial.py index 39dee47962..1cb514831c 100644 --- a/beginner_source/blitz/cifar10_tutorial.py +++ b/beginner_source/blitz/cifar10_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Training a Classifier ===================== diff --git a/beginner_source/blitz/neural_networks_tutorial.py b/beginner_source/blitz/neural_networks_tutorial.py index 9c04d9af0f..7a86b73add 100644 --- a/beginner_source/blitz/neural_networks_tutorial.py +++ b/beginner_source/blitz/neural_networks_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Neural Networks =============== diff --git a/beginner_source/chatbot_tutorial.py b/beginner_source/chatbot_tutorial.py index 520c934d96..d130b64969 100644 --- a/beginner_source/chatbot_tutorial.py +++ b/beginner_source/chatbot_tutorial.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Chatbot Tutorial ================ diff --git a/beginner_source/data_loading_tutorial.py b/beginner_source/data_loading_tutorial.py index 8f21bb7bff..e1621e1fda 100644 --- a/beginner_source/data_loading_tutorial.py +++ b/beginner_source/data_loading_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Writing Custom Datasets, DataLoaders and Transforms =================================================== diff --git a/beginner_source/dcgan_faces_tutorial.py b/beginner_source/dcgan_faces_tutorial.py index e9ac3fdd50..43315cb850 100644 --- a/beginner_source/dcgan_faces_tutorial.py +++ b/beginner_source/dcgan_faces_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ DCGAN Tutorial ============== diff --git a/beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py b/beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py index 1fb0f4d24b..7fb3c4b559 100644 --- a/beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py +++ b/beginner_source/deploy_seq2seq_hybrid_frontend_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Deploying a Seq2Seq Model with TorchScript ================================================== diff --git a/beginner_source/examples_nn/dynamic_net.py b/beginner_source/examples_nn/dynamic_net.py index b24ced1cc5..2244b6dab7 100755 --- a/beginner_source/examples_nn/dynamic_net.py +++ b/beginner_source/examples_nn/dynamic_net.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ PyTorch: Control Flow + Weight Sharing -------------------------------------- diff --git a/beginner_source/examples_nn/polynomial_module.py b/beginner_source/examples_nn/polynomial_module.py index 77b44ae1a5..aae0b083b0 100755 --- a/beginner_source/examples_nn/polynomial_module.py +++ b/beginner_source/examples_nn/polynomial_module.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ PyTorch: Custom nn Modules -------------------------- diff --git a/beginner_source/examples_nn/polynomial_nn.py b/beginner_source/examples_nn/polynomial_nn.py index ad6ba22f19..1599a21e64 100755 --- a/beginner_source/examples_nn/polynomial_nn.py +++ b/beginner_source/examples_nn/polynomial_nn.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ PyTorch: nn ----------- diff --git a/beginner_source/examples_nn/polynomial_optim.py b/beginner_source/examples_nn/polynomial_optim.py index 434fb6624b..c5d070b47e 100755 --- a/beginner_source/examples_nn/polynomial_optim.py +++ b/beginner_source/examples_nn/polynomial_optim.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ PyTorch: optim -------------- diff --git a/beginner_source/examples_tensor/polynomial_numpy.py b/beginner_source/examples_tensor/polynomial_numpy.py index a1a378e50e..e1218a491e 100755 --- a/beginner_source/examples_tensor/polynomial_numpy.py +++ b/beginner_source/examples_tensor/polynomial_numpy.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Warm-up: numpy -------------- diff --git a/beginner_source/examples_tensor/polynomial_tensor.py b/beginner_source/examples_tensor/polynomial_tensor.py index 1e35b0f24b..bbda66af99 100755 --- a/beginner_source/examples_tensor/polynomial_tensor.py +++ b/beginner_source/examples_tensor/polynomial_tensor.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ PyTorch: Tensors ---------------- diff --git a/beginner_source/fgsm_tutorial.py b/beginner_source/fgsm_tutorial.py index a991fe8562..814d149843 100644 --- a/beginner_source/fgsm_tutorial.py +++ b/beginner_source/fgsm_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Adversarial Example Generation ============================== diff --git a/beginner_source/flava_finetuning_tutorial.py b/beginner_source/flava_finetuning_tutorial.py index 12e20f475f..3fe3da47ba 100644 --- a/beginner_source/flava_finetuning_tutorial.py +++ b/beginner_source/flava_finetuning_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ TorchMultimodal Tutorial: Finetuning FLAVA ============================================ diff --git a/beginner_source/hybrid_frontend/learning_hybrid_frontend_through_example_tutorial.py b/beginner_source/hybrid_frontend/learning_hybrid_frontend_through_example_tutorial.py index b767ba31d7..0762bbe2b1 100644 --- a/beginner_source/hybrid_frontend/learning_hybrid_frontend_through_example_tutorial.py +++ b/beginner_source/hybrid_frontend/learning_hybrid_frontend_through_example_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Learning Hybrid Frontend Syntax Through Example =============================================== diff --git a/beginner_source/hyperparameter_tuning_tutorial.py b/beginner_source/hyperparameter_tuning_tutorial.py index aa84069f7b..5f32878db3 100644 --- a/beginner_source/hyperparameter_tuning_tutorial.py +++ b/beginner_source/hyperparameter_tuning_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Hyperparameter tuning with Ray Tune =================================== diff --git a/beginner_source/knowledge_distillation_tutorial.py b/beginner_source/knowledge_distillation_tutorial.py index 19d1553e7a..389cffd3bd 100644 --- a/beginner_source/knowledge_distillation_tutorial.py +++ b/beginner_source/knowledge_distillation_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Knowledge Distillation Tutorial =============================== diff --git a/beginner_source/nlp/advanced_tutorial.py b/beginner_source/nlp/advanced_tutorial.py index a6c6857128..eb77a35b9f 100644 --- a/beginner_source/nlp/advanced_tutorial.py +++ b/beginner_source/nlp/advanced_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Advanced: Making Dynamic Decisions and the Bi-LSTM CRF ====================================================== diff --git a/beginner_source/nlp/deep_learning_tutorial.py b/beginner_source/nlp/deep_learning_tutorial.py index 49d14f6169..7cca482bce 100644 --- a/beginner_source/nlp/deep_learning_tutorial.py +++ b/beginner_source/nlp/deep_learning_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Deep Learning with PyTorch ************************** diff --git a/beginner_source/nlp/pytorch_tutorial.py b/beginner_source/nlp/pytorch_tutorial.py index 4dd966bc81..75da859e63 100644 --- a/beginner_source/nlp/pytorch_tutorial.py +++ b/beginner_source/nlp/pytorch_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Introduction to PyTorch *********************** diff --git a/beginner_source/nlp/sequence_models_tutorial.py b/beginner_source/nlp/sequence_models_tutorial.py index eec811d67a..fe3baea175 100644 --- a/beginner_source/nlp/sequence_models_tutorial.py +++ b/beginner_source/nlp/sequence_models_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Sequence Models and Long Short-Term Memory Networks =================================================== diff --git a/beginner_source/nlp/word_embeddings_tutorial.py b/beginner_source/nlp/word_embeddings_tutorial.py index 194b0a60f3..02ecead6f6 100644 --- a/beginner_source/nlp/word_embeddings_tutorial.py +++ b/beginner_source/nlp/word_embeddings_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Word Embeddings: Encoding Lexical Semantics =========================================== diff --git a/beginner_source/nn_tutorial.py b/beginner_source/nn_tutorial.py index e04815bd27..c37ca29d80 100644 --- a/beginner_source/nn_tutorial.py +++ b/beginner_source/nn_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ What is `torch.nn` *really*? ============================ diff --git a/beginner_source/onnx/export_control_flow_model_to_onnx_tutorial.py b/beginner_source/onnx/export_control_flow_model_to_onnx_tutorial.py index 617a1e94a3..0f5cac88d0 100644 --- a/beginner_source/onnx/export_control_flow_model_to_onnx_tutorial.py +++ b/beginner_source/onnx/export_control_flow_model_to_onnx_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ `Introduction to ONNX `_ || `Exporting a PyTorch model to ONNX `_ || diff --git a/beginner_source/onnx/export_simple_model_to_onnx_tutorial.py b/beginner_source/onnx/export_simple_model_to_onnx_tutorial.py index 1676e4adc0..086987ab85 100644 --- a/beginner_source/onnx/export_simple_model_to_onnx_tutorial.py +++ b/beginner_source/onnx/export_simple_model_to_onnx_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ `Introduction to ONNX `_ || **Exporting a PyTorch model to ONNX** || diff --git a/beginner_source/onnx/onnx_registry_tutorial.py b/beginner_source/onnx/onnx_registry_tutorial.py index e82bc6257d..f11c559372 100644 --- a/beginner_source/onnx/onnx_registry_tutorial.py +++ b/beginner_source/onnx/onnx_registry_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ `Introduction to ONNX `_ || `Exporting a PyTorch model to ONNX `_ || diff --git a/beginner_source/saving_loading_models.py b/beginner_source/saving_loading_models.py index 13bca8ca3d..8a578d956c 100644 --- a/beginner_source/saving_loading_models.py +++ b/beginner_source/saving_loading_models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Saving and Loading Models ========================= diff --git a/beginner_source/template_tutorial.py b/beginner_source/template_tutorial.py index d7fae7c4c5..023d9e6a6f 100644 --- a/beginner_source/template_tutorial.py +++ b/beginner_source/template_tutorial.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - """ Template Tutorial ================= diff --git a/beginner_source/transfer_learning_tutorial.py b/beginner_source/transfer_learning_tutorial.py index 8a344d3d88..4d0766432e 100644 --- a/beginner_source/transfer_learning_tutorial.py +++ b/beginner_source/transfer_learning_tutorial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Transfer Learning for Computer Vision Tutorial ==============================================