diff --git a/beginner_source/blitz/autograd_tutorial.py b/beginner_source/blitz/autograd_tutorial.py index b736b429eee..2a35ae7034d 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 39dee479626..1cb514831c9 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 9c04d9af0f3..7a86b73addb 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 520c934d965..d130b64969a 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 8f21bb7bff6..e1621e1fda1 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 e9ac3fdd504..43315cb850e 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 1fb0f4d24b4..7fb3c4b559e 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 b24ced1cc58..2244b6dab77 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 77b44ae1a5d..aae0b083b03 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 ad6ba22f193..1599a21e648 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 434fb6624b3..c5d070b47ed 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 a1a378e50ed..e1218a491e9 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 1e35b0f24bd..bbda66af99e 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 a991fe85627..814d149843d 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 12e20f475f8..3fe3da47ba0 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 b767ba31d71..0762bbe2b1e 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 aa84069f7be..5f32878db32 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 19d1553e7a0..389cffd3bdc 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 a6c6857128a..eb77a35b9f6 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 49d14f61691..7cca482bcee 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 4dd966bc813..75da859e63a 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 eec811d67a1..fe3baea1756 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 194b0a60f32..02ecead6f6f 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 e04815bd27e..c37ca29d80b 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 617a1e94a36..0f5cac88d03 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 1676e4adc06..086987ab85f 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 e82bc6257de..f11c5593723 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 13bca8ca3de..8a578d956c6 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 d7fae7c4c5e..023d9e6a6ff 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 8a344d3d88a..4d0766432e6 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 ==============================================