├── .gitignore ├── Chapter01 ├── mnist_pytorch.ipynb └── mnist_tensorflow.ipynb ├── Chapter02 ├── DenseNetBlock.ipynb ├── GoogLeNet.ipynb ├── ResNetBlock.ipynb ├── imagenet1000_clsidx_to_labels.txt ├── lenet.ipynb ├── transfer_learning_alexnet.ipynb └── vgg13_pretrained_run_inference.ipynb ├── Chapter03 ├── image_captioning_pytorch.ipynb └── sample.jpg ├── Chapter04 ├── lstm.ipynb └── rnn.ipynb ├── Chapter05 ├── out_of_the_box_transformers.ipynb ├── rand_wire_nn.ipynb ├── randwirenn.pdf ├── randwirenn.svg └── transformer.ipynb ├── Chapter06 └── GNN.ipynb ├── Chapter07 ├── music_generation.ipynb ├── text_generation.ipynb ├── text_generation_out_of_the_box.ipynb └── text_generation_out_of_the_box_gpt3.ipynb ├── Chapter08 ├── images │ ├── content.jpg │ └── style.jpg └── neural_style_transfer.ipynb ├── Chapter09 ├── dcgan.ipynb └── pix2pix_architecture.ipynb ├── Chapter10 ├── image_generation_using_diffusion.ipynb ├── taj.png ├── taj_mahal_image.ipynb └── text_to_image_generation_using_stable_diffusion_v1_5.ipynb ├── Chapter11 └── pong.ipynb ├── Chapter12 ├── convnet_distributed.py ├── convnet_distributed_cuda.py ├── convnet_undistributed.py ├── convnet_undistributed_cuda.py └── convnet_undistributed_cuda_amp.py ├── Chapter13 ├── Dockerfile ├── convnet.onnx ├── convnet.pb ├── convnet.pth ├── convnet.py ├── convnet_handler.py ├── convnet_tf │ ├── convnet_float16.tflite │ ├── convnet_float32.tflite │ ├── fingerprint.pb │ ├── saved_model.pb │ └── variables │ │ ├── variables.data-00000-of-00001 │ │ └── variables.index ├── cpp_convnet │ ├── CMakeLists.txt │ └── cpp_convnet.cpp ├── digit_image.jpg ├── example.py ├── make_request.py ├── mnist_pytorch.ipynb ├── model_scripting.ipynb ├── model_store │ └── convnet.mar ├── model_tracing.ipynb ├── onnx.ipynb ├── requirements.txt ├── run_inference.ipynb ├── scripted_convnet.pt ├── server.py └── traced_convnet.pt ├── Chapter14 ├── Android │ ├── app │ │ ├── .gitignore │ │ ├── build.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── assets │ │ │ └── optimized_for_mobile_traced_model.pt │ │ │ ├── java │ │ │ └── org │ │ │ │ └── pytorch │ │ │ │ └── mastering_pytorch_v2_mnist │ │ │ │ └── MainActivity.java │ │ │ └── res │ │ │ ├── drawable-v24 │ │ │ └── ic_launcher_foreground.xml │ │ │ ├── drawable │ │ │ └── ic_launcher_background.xml │ │ │ ├── layout │ │ │ └── activity_main.xml │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── mobile_optimized_model.py │ └── settings.gradle └── iOS │ └── HelloWorld │ ├── HelloWorld.xcodeproj │ └── project.pbxproj │ ├── HelloWorld │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-60@2x.png │ │ │ ├── Icon-60@3x.png │ │ │ ├── Icon-Small-40@2x.png │ │ │ ├── Icon-Small-60@2x.png │ │ │ ├── Icon-Small@2x-1.png │ │ │ └── Icon-Small@3x.png │ │ └── Contents.json │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── CaptureViewController.swift │ ├── Info.plist │ ├── PreviewViewController.swift │ ├── SceneDelegate.swift │ ├── TorchBridge │ │ ├── HelloWorld-Bridging-Header.h │ │ ├── TorchModule.h │ │ └── TorchModule.mm │ ├── UIImage+Helper.swift │ └── model │ │ ├── digits.txt │ │ └── model.pt │ └── Podfile ├── Chapter15 ├── fastai.ipynb ├── poutyne.ipynb ├── pytorch_lightning.ipynb └── pytorch_profiler.ipynb ├── Chapter16 ├── automl-pytorch.ipynb └── optuna_pytorch.ipynb ├── Chapter17 ├── captum_interpretability.ipynb └── pytorch_interpretability.ipynb ├── Chapter18 └── torch-recsys.ipynb ├── Chapter19 ├── HuggingFaceAccelerate.ipynb ├── HuggingFaceDatasets.ipynb ├── HuggingFaceHub.ipynb ├── HuggingFaceOptimum.ipynb └── HuggingFacePyTorch.ipynb ├── MasteringPyTorch2E.jpg └── README.md /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/.gitignore -------------------------------------------------------------------------------- /Chapter01/mnist_pytorch.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter01/mnist_pytorch.ipynb -------------------------------------------------------------------------------- /Chapter01/mnist_tensorflow.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter01/mnist_tensorflow.ipynb -------------------------------------------------------------------------------- /Chapter02/DenseNetBlock.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter02/DenseNetBlock.ipynb -------------------------------------------------------------------------------- /Chapter02/GoogLeNet.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter02/GoogLeNet.ipynb -------------------------------------------------------------------------------- /Chapter02/ResNetBlock.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter02/ResNetBlock.ipynb -------------------------------------------------------------------------------- /Chapter02/imagenet1000_clsidx_to_labels.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter02/imagenet1000_clsidx_to_labels.txt -------------------------------------------------------------------------------- /Chapter02/lenet.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter02/lenet.ipynb -------------------------------------------------------------------------------- /Chapter02/transfer_learning_alexnet.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter02/transfer_learning_alexnet.ipynb -------------------------------------------------------------------------------- /Chapter02/vgg13_pretrained_run_inference.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter02/vgg13_pretrained_run_inference.ipynb -------------------------------------------------------------------------------- /Chapter03/image_captioning_pytorch.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter03/image_captioning_pytorch.ipynb -------------------------------------------------------------------------------- /Chapter03/sample.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter03/sample.jpg -------------------------------------------------------------------------------- /Chapter04/lstm.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter04/lstm.ipynb -------------------------------------------------------------------------------- /Chapter04/rnn.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter04/rnn.ipynb -------------------------------------------------------------------------------- /Chapter05/out_of_the_box_transformers.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter05/out_of_the_box_transformers.ipynb -------------------------------------------------------------------------------- /Chapter05/rand_wire_nn.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter05/rand_wire_nn.ipynb -------------------------------------------------------------------------------- /Chapter05/randwirenn.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter05/randwirenn.pdf -------------------------------------------------------------------------------- /Chapter05/randwirenn.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter05/randwirenn.svg -------------------------------------------------------------------------------- /Chapter05/transformer.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter05/transformer.ipynb -------------------------------------------------------------------------------- /Chapter06/GNN.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter06/GNN.ipynb -------------------------------------------------------------------------------- /Chapter07/music_generation.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter07/music_generation.ipynb -------------------------------------------------------------------------------- /Chapter07/text_generation.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter07/text_generation.ipynb -------------------------------------------------------------------------------- /Chapter07/text_generation_out_of_the_box.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter07/text_generation_out_of_the_box.ipynb -------------------------------------------------------------------------------- /Chapter07/text_generation_out_of_the_box_gpt3.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter07/text_generation_out_of_the_box_gpt3.ipynb -------------------------------------------------------------------------------- /Chapter08/images/content.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter08/images/content.jpg -------------------------------------------------------------------------------- /Chapter08/images/style.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter08/images/style.jpg -------------------------------------------------------------------------------- /Chapter08/neural_style_transfer.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter08/neural_style_transfer.ipynb -------------------------------------------------------------------------------- /Chapter09/dcgan.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter09/dcgan.ipynb -------------------------------------------------------------------------------- /Chapter09/pix2pix_architecture.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter09/pix2pix_architecture.ipynb -------------------------------------------------------------------------------- /Chapter10/image_generation_using_diffusion.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter10/image_generation_using_diffusion.ipynb -------------------------------------------------------------------------------- /Chapter10/taj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter10/taj.png -------------------------------------------------------------------------------- /Chapter10/taj_mahal_image.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter10/taj_mahal_image.ipynb -------------------------------------------------------------------------------- /Chapter10/text_to_image_generation_using_stable_diffusion_v1_5.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter10/text_to_image_generation_using_stable_diffusion_v1_5.ipynb -------------------------------------------------------------------------------- /Chapter11/pong.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter11/pong.ipynb -------------------------------------------------------------------------------- /Chapter12/convnet_distributed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter12/convnet_distributed.py -------------------------------------------------------------------------------- /Chapter12/convnet_distributed_cuda.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter12/convnet_distributed_cuda.py -------------------------------------------------------------------------------- /Chapter12/convnet_undistributed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter12/convnet_undistributed.py -------------------------------------------------------------------------------- /Chapter12/convnet_undistributed_cuda.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter12/convnet_undistributed_cuda.py -------------------------------------------------------------------------------- /Chapter12/convnet_undistributed_cuda_amp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter12/convnet_undistributed_cuda_amp.py -------------------------------------------------------------------------------- /Chapter13/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/Dockerfile -------------------------------------------------------------------------------- /Chapter13/convnet.onnx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/convnet.onnx -------------------------------------------------------------------------------- /Chapter13/convnet.pb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/convnet.pb -------------------------------------------------------------------------------- /Chapter13/convnet.pth: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/convnet.pth -------------------------------------------------------------------------------- /Chapter13/convnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/convnet.py -------------------------------------------------------------------------------- /Chapter13/convnet_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/convnet_handler.py -------------------------------------------------------------------------------- /Chapter13/convnet_tf/convnet_float16.tflite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/convnet_tf/convnet_float16.tflite -------------------------------------------------------------------------------- /Chapter13/convnet_tf/convnet_float32.tflite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/convnet_tf/convnet_float32.tflite -------------------------------------------------------------------------------- /Chapter13/convnet_tf/fingerprint.pb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/convnet_tf/fingerprint.pb -------------------------------------------------------------------------------- /Chapter13/convnet_tf/saved_model.pb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/convnet_tf/saved_model.pb -------------------------------------------------------------------------------- /Chapter13/convnet_tf/variables/variables.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/convnet_tf/variables/variables.data-00000-of-00001 -------------------------------------------------------------------------------- /Chapter13/convnet_tf/variables/variables.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/convnet_tf/variables/variables.index -------------------------------------------------------------------------------- /Chapter13/cpp_convnet/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/cpp_convnet/CMakeLists.txt -------------------------------------------------------------------------------- /Chapter13/cpp_convnet/cpp_convnet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/cpp_convnet/cpp_convnet.cpp -------------------------------------------------------------------------------- /Chapter13/digit_image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/digit_image.jpg -------------------------------------------------------------------------------- /Chapter13/example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/example.py -------------------------------------------------------------------------------- /Chapter13/make_request.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/make_request.py -------------------------------------------------------------------------------- /Chapter13/mnist_pytorch.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/mnist_pytorch.ipynb -------------------------------------------------------------------------------- /Chapter13/model_scripting.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/model_scripting.ipynb -------------------------------------------------------------------------------- /Chapter13/model_store/convnet.mar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/model_store/convnet.mar -------------------------------------------------------------------------------- /Chapter13/model_tracing.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/model_tracing.ipynb -------------------------------------------------------------------------------- /Chapter13/onnx.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/onnx.ipynb -------------------------------------------------------------------------------- /Chapter13/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/requirements.txt -------------------------------------------------------------------------------- /Chapter13/run_inference.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/run_inference.ipynb -------------------------------------------------------------------------------- /Chapter13/scripted_convnet.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/scripted_convnet.pt -------------------------------------------------------------------------------- /Chapter13/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/server.py -------------------------------------------------------------------------------- /Chapter13/traced_convnet.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter13/traced_convnet.pt -------------------------------------------------------------------------------- /Chapter14/Android/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /Chapter14/Android/app/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/build.gradle -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/AndroidManifest.xml -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/assets/optimized_for_mobile_traced_model.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/assets/optimized_for_mobile_traced_model.pt -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/java/org/pytorch/mastering_pytorch_v2_mnist/MainActivity.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/java/org/pytorch/mastering_pytorch_v2_mnist/MainActivity.java -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/drawable/ic_launcher_background.xml -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/layout/activity_main.xml -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/values/colors.xml -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/values/strings.xml -------------------------------------------------------------------------------- /Chapter14/Android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/app/src/main/res/values/styles.xml -------------------------------------------------------------------------------- /Chapter14/Android/build.gradle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/build.gradle -------------------------------------------------------------------------------- /Chapter14/Android/gradle.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/gradle.properties -------------------------------------------------------------------------------- /Chapter14/Android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Chapter14/Android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/gradle/wrapper/gradle-wrapper.properties -------------------------------------------------------------------------------- /Chapter14/Android/gradlew: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/gradlew -------------------------------------------------------------------------------- /Chapter14/Android/gradlew.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/gradlew.bat -------------------------------------------------------------------------------- /Chapter14/Android/mobile_optimized_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/Android/mobile_optimized_model.py -------------------------------------------------------------------------------- /Chapter14/Android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name='MasteringPyTorchV2MNISTApp' 3 | -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/AppDelegate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/AppDelegate.swift -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Icon-Small-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Icon-Small-60@2x.png -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x-1.png -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/Assets.xcassets/Contents.json -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/Base.lproj/LaunchScreen.storyboard -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/Base.lproj/Main.storyboard -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/CaptureViewController.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/CaptureViewController.swift -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/Info.plist -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/PreviewViewController.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/PreviewViewController.swift -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/SceneDelegate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/SceneDelegate.swift -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/TorchBridge/HelloWorld-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "TorchModule.h" 2 | -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/TorchBridge/TorchModule.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/TorchBridge/TorchModule.h -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/TorchBridge/TorchModule.mm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/TorchBridge/TorchModule.mm -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/UIImage+Helper.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/UIImage+Helper.swift -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/model/digits.txt: -------------------------------------------------------------------------------- 1 | 0 2 | 1 3 | 2 4 | 3 5 | 4 6 | 5 7 | 6 8 | 7 9 | 8 10 | 9 11 | -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/HelloWorld/model/model.pt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/HelloWorld/model/model.pt -------------------------------------------------------------------------------- /Chapter14/iOS/HelloWorld/Podfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter14/iOS/HelloWorld/Podfile -------------------------------------------------------------------------------- /Chapter15/fastai.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter15/fastai.ipynb -------------------------------------------------------------------------------- /Chapter15/poutyne.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter15/poutyne.ipynb -------------------------------------------------------------------------------- /Chapter15/pytorch_lightning.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter15/pytorch_lightning.ipynb -------------------------------------------------------------------------------- /Chapter15/pytorch_profiler.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter15/pytorch_profiler.ipynb -------------------------------------------------------------------------------- /Chapter16/automl-pytorch.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter16/automl-pytorch.ipynb -------------------------------------------------------------------------------- /Chapter16/optuna_pytorch.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter16/optuna_pytorch.ipynb -------------------------------------------------------------------------------- /Chapter17/captum_interpretability.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter17/captum_interpretability.ipynb -------------------------------------------------------------------------------- /Chapter17/pytorch_interpretability.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter17/pytorch_interpretability.ipynb -------------------------------------------------------------------------------- /Chapter18/torch-recsys.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter18/torch-recsys.ipynb -------------------------------------------------------------------------------- /Chapter19/HuggingFaceAccelerate.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter19/HuggingFaceAccelerate.ipynb -------------------------------------------------------------------------------- /Chapter19/HuggingFaceDatasets.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter19/HuggingFaceDatasets.ipynb -------------------------------------------------------------------------------- /Chapter19/HuggingFaceHub.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter19/HuggingFaceHub.ipynb -------------------------------------------------------------------------------- /Chapter19/HuggingFaceOptimum.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter19/HuggingFaceOptimum.ipynb -------------------------------------------------------------------------------- /Chapter19/HuggingFacePyTorch.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/Chapter19/HuggingFacePyTorch.ipynb -------------------------------------------------------------------------------- /MasteringPyTorch2E.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/MasteringPyTorch2E.jpg -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arj7192/MasteringPyTorchV2/HEAD/README.md --------------------------------------------------------------------------------