Skip to content

Instantly share code, notes, and snippets.

View vinutah's full-sized avatar

Vinu vinutah

View GitHub Profile
@goldsborough
goldsborough / conv.cu
Last active February 2, 2025 09:14
Convolution with cuDNN
#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) { \
@vinutah
vinutah / q10.m
Last active November 27, 2016 18:06
Piecewise Interpolation
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);
@geohot
geohot / extract.py
Last active July 18, 2022 05:13
extract imagenet ILSVRC2012 recursive tar
# extract ILSVRC2012 without killing your SSD
import tarfile
import os
import sys
def mkdir(x):
try:
os.makedirs(x)
except OSError, e: