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
#include <cudnn.h> | |
#include <cassert> | |
#include <cstdlib> | |
#include <iostream> | |
#include <opencv2/opencv.hpp> | |
#define checkCUDNN(expression) \ | |
{ \ | |
cudnnStatus_t status = (expression); \ | |
if (status != CUDNN_STATUS_SUCCESS) { \ |
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
function [] = q10 | |
% Data Set | |
X = [0.10, 0.15, 0.20, 0.30, 0.35, 0.50, 0.75]; | |
Y = [3.00, 2.00, 1.20, 2.10, 2.00, 2.50, 2.50]; | |
% Construct Interpolatants | |
[p1] = polyfit(X,Y,6); | |
[p2] = spline(X,Y); | |
[p3] = custom(0.1); |
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
# extract ILSVRC2012 without killing your SSD | |
import tarfile | |
import os | |
import sys | |
def mkdir(x): | |
try: | |
os.makedirs(x) | |
except OSError, e: |