Torch Notes

  1. How to use boolean variables in cmd:

cmd:option('--sample_patch', false, 'generate patch or image?')

So default is false, when one wants to turn that option on: th myfile.lua --sample_path

  1. Writing network architecture in option:

Draw histograms from list

import numpy as np
import matplotlib.pyplot as plt

count = [23, 44, 12, 11, 2, 10]
pos = np.arange(len(count))
width = 0.1     # gives histogram aspect to the bar diagram
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:


start new with session name:

View Celery
  1. Install Celery and RabbitMQ on MAC:
pip install celery
brew install rabbitmq
  1. Basic

    Create folder celery_try and create file

  1. Install CMake 3.5.2 on CentOS 7

    Download Source distributions cmake-3.5.2.tar.gz from
    sudo gmake install
  2. Install libgpuarray on Centos 7