This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is inspired by the fantastic guide https://github.com/saiprashanths/dl-setup | |
| # I have just updated the python-related commands so that everything works in Python 3. | |
| # Tested on Xubuntu 16.04. | |
| # First of all let's update the repos: | |
| sudo apt-get update | |
| # Only if you have a CUDA-compatible Nvidia card, install CUDA. | |
| # Check on the Nvidia website what is the latest driver version which supports your card. | |
| # At the time of this writing it was 367. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch | |
| import torch.nn as nn | |
| from torch.autograd import Variable | |
| import torch.optim as optim | |
| a = torch.ones(1,2) | |
| b = torch.nn.Linear(2,1) | |
| b.zero_grad() | |
| c = b(Variable(a)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "auto_complete_commit_on_tab": true, | |
| "color_scheme": "Packages/Color Scheme - Default/Tomorrow-Night-Eighties.tmTheme", | |
| "file_exclude_patterns": | |
| [ | |
| ".DS_Store" | |
| ], | |
| "folder_exclude_patterns": | |
| [ | |
| "bin", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Download Elementary OS from here: | |
| #http://sourceforge.net/projects/elementaryos/files/stable/ | |
| #First you update your system | |
| sudo apt-get update && sudo apt-get dist-upgrade | |
| #Install Google Chrome | |
| wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
| sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' |