Skip to content

Instantly share code, notes, and snippets.

@botev
botev / eigen.cpp
Created January 19, 2016 13:36
Mnist Hinton network with Eigen
//
// Created by alex on 18/01/16.
//
// Compiled with
// MKL_NUM_THREADS=4 OMP_NUM_THREADS=4 g++ -O3 -std=c++11 \
// -I/opt/eigen -I/opt/intel/mkl/include -Wall -L/opt/intel/mkl/lib/intel64 \
// -Werror=return-type -Wno-unused-variable -Wno-narrowing -Wl,--no-as-needed \
// -m64 -fopenmp -lmkl_rt -lpthread -lcurl -lm eigen.cpp
#define EIGEN_USE_MKL_ALL
#include "Eigen/Core"
@botev
botev / mnist_hinton.py
Last active January 25, 2016 18:45
Hinton Autoencoder for theano and tf for benchmarking
from __future__ import print_function
import numpy as np
import os
import gzip
import sys
import time
from collections import OrderedDict
floatX = "float32"