An Introduction to PyTorch & Autograd

_images/europython_venue.jpg

Paul O'Grady

#EuroPython, Rimini - 13th July 2017

ME:


Currently a Data Scientist at ...

_images/zalando-2.svg

Twitter: @paul_ogrady

Overview

Background


_images/gpu_tensor.png

Matrix computations before Deep Learning/GPUs

Deep Learning

PyTorch is the new kid on the block...

PyTorch



_images/pytorch-logo-dark.svg

PyTorch

Following examples are for PyTorch Ver 0.1.12 running on Python 3.5.3

PyTorch Status

Deep Learning landscape:

_images/pytorch_agg_activity.png

François Chollet (@fchollet)

Tensors

Tensors & Numpy

Tensors

Variables

Variables

Variable History

AutoGrad


_images/AutomaticDifferentiationNutshell.png

Autograd

Calculus


_images/400px-Tangent_to_a_curve.svg.png

Differential Calculus

Backpropagation

Trig. Differentiation

Implementation

Quadratic Gradients

Quadratic Gradients

Tangent

_images/tangent.png

Linear Regression


_images/gm_regression.jpg

Linear Regression

Linear Regression

_images/point_cloud.png

Machine Learning with Torch

Linear Regression

Linear Regression

Linear Regression

Define-By-Run

Linear Regression

Linear Regression

_images/line_fit.png

Theano - Define-And-Run

Theano - Define-And-Run

No opportunity to change things within Loop

Summary

Questions?

_images/OPS_2015_Box_04.jpg

References

_images/pytorch_docs.png