[PyTorch] Sample ⑧ ~ How to build a complex model ~

image.png

Purpose

Up to this tutorial, we built the definition of the neural network model with a simple sequence `` `torch.nn.Sequential``` like building blocks.

This method using torch.nn.Sequential makes it easy to define the model, but it can only create a simple network structure.

For example, torch.nn.Sequential does not allow you to build a ResNet network structure. image.png (Credit:Deep Residual Learning for Image Recognition. Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun. arXiv:1512.03385 [cs.CV] (or arXiv:1512.03385v1 [cs.CV] for this version) )

In this tutorial, PyTorch: Custom nn Modules I will introduce how to build a more complex neural network model </ span> with reference to.

For detailed explanation and code, see "[PyTorch] Sample ⑧ ~ How to build a complex model ~".

tutorial

-[PyTorch] Tutorial (Japanese version) ① ~ Tensor ~ -[PyTorch] Tutorial (Japanese version) ② ~ AUTOGRAD ~ -[PyTorch] Tutorial (Japanese version) ③ ~ NEURAL NETWORKS (Neural Network) ~ -[PyTorch] Tutorial (Japanese version) ④ ~ TRAINING A CLASSIFIER (image classification) ~

sample

-[PyTorch] Sample ① ~ NUMPY ~ -[PyTorch] Sample ② ~ TENSOR ~ -[PyTorch] Sample ③ ~ TENSORS AND AUTOGRAD ~ -[PyTorch] Sample ④ ~ Defining New autograd Functions ~ -[PyTorch] Sample ⑤ ~ Static Graphs ~ -[PyTorch] Sample ⑥ ~ nn Package ~ -[PyTorch] Sample ⑦ ~ optim package ~ -[PyTorch] Sample ⑧ ~ How to build a complex model ~ -[PyTorch] Sample ⑨ ~ Dynamic Graph ~

Recommended Posts

[PyTorch] Sample ⑧ ~ How to build a complex model ~
How to build a sphinx translation environment
I tried hosting a Pytorch sample model using TorchServe
How to build a development environment for TensorFlow (1.0.0) (Mac)
Basics of PyTorch (2) -How to make a neural network-
How to build a Python environment on amazon linux 2
How to call a function
How to hack a terminal
How to use fixture in Django to populate sample data associated with a user model
How to run a trained transformer model locally on CloudTPU
How to build a new python virtual environment on Ubuntu
How to make a Japanese-English translation
How to write a Python class
How to put a symbolic link
How to make a slack bot
How to create a Conda package
How to make a crawler --Advanced
How to make a recursive function
How to create a virtual bridge
How to Data Augmentation with PyTorch
How to convert Tensorflow model to Lite
How to make a deadman's switch
How to create a Dockerfile (basic)
[Blender] How to make a Blender plugin
How to delete a Docker container
How to make a crawler --Basic
How to build MongoDB C driver
How to create a config file
How to call PyTorch in Julia
How to build a LAMP environment using Vagrant and VirtulBox Note
How to build a NEM (current version) node (NIS1: NEM Infrastructure Server)
How to build my own Linux server
How to create a clone from Github
How to split and save a DataFrame
How to create a git clone folder
Qiita (1) How to write a code name
How to make a model for object detection using YOLO in 3 hours
How to add a package with PyCharm
[Python] How to make a class iterable
How to draw a graph using Matplotlib
[Python] How to convert a 2D list to a 1D list
Try to infer using a linear regression model on android [PyTorch Mobile]
How to build Hello, World on #Nix
[Colab] How to copy a huge dataset
I want to build a Python environment
[Python] How to invert a character string
How to install a package using a repository
[Ubuntu] How to execute a shell script
How to get a stacktrace in python
[NNabla] How to add a quantization layer to the middle layer of a trained model
How to get a sample report from a hash value using VirusTotal's API
How to use CUT command (with sample)
How to create a repository from media
Basics of PyTorch (1) -How to use Tensor-
How to make a Backtrader custom indicator
How to choose a Seaborn color palette
How to make a Pelican site map
Summary of how to build a LAMP + Wordpress environment with Sakura VPS
How to run a Maya Python script
I tried to create a model with the sample of Amazon SageMaker Autopilot
How to make a dialogue system dedicated to beginners