Skip to content

Instantly share code, notes, and snippets.

View theGreenJedi's full-sized avatar
💭
Click, click,........click

Pete theGreenJedi

💭
Click, click,........click
  • Los Angeles
View GitHub Profile
# 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.
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))
{
"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",
@theGreenJedi
theGreenJedi / perfectelementary.bash
Created November 7, 2016 03:49
HowTo Install the perfect Elementary-OS
#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'