Skip to content

Create a convolutional layer from scratch in python, hack its weights with custom kernels, and verify that its results match what pytorch produces.

License

Notifications You must be signed in to change notification settings

javismiles/convolutional-layer-hacking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Convolutional layer hacking with Python and numpy

Create a convolutional layer from scratch in python, hack its weights with custom kernels, and verify that its results match what pytorch produces.

Access the code with this link
Python Jupyter Notebook

This notebook holds the Python code connected to this medium article:

Article with all the details

With this code and the associated article, you are going to:

  • Code from scratch in python a convolutional layer to understand bit by bit what is going on when we pass data through one of these layers.
  • Hack the parameters of the convnet to produce a mix of custom kernels and random ones.
  • Compare the results using Pytorch and Python-numpy to verify that we obtain exactly the same outputs. Ready? Let's do it.

Alt text

About

Create a convolutional layer from scratch in python, hack its weights with custom kernels, and verify that its results match what pytorch produces.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published