Skip to content

Instantly share code, notes, and snippets.

View eduardo4jesus's full-sized avatar

Eduardo Reis eduardo4jesus

View GitHub Profile
@eduardo4jesus
eduardo4jesus / Makefile
Last active June 14, 2022 15:13 — forked from goldsborough/conv.cu
Convolution with cuDNN
CXX := nvcc
TARGET := conv
HEADERS := -I $(CUDA_HOME)/include $(shell pkg-config --cflags-only-I opencv4)
LIBS := -L $(CUDA_HOME)/lib64 -L /usr/local/lib $(shell pkg-config --libs-only-L opencv4)
CXXFLAGS := -std=c++11
all: conv
conv: $(TARGET).cu
$(CXX) $(CXXFLAGS) $(HEADERS) $(LIBS) $(TARGET).cu -o $(TARGET) \
@eduardo4jesus
eduardo4jesus / pytorch-1-7-0-why-tqdm-prints-to-a-newline.ipynb
Last active February 19, 2021 04:55
Pytorch 1.7.0 - Why tqdm prints to a newline?.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@eduardo4jesus
eduardo4jesus / conv.m
Last active May 14, 2020 19:03
Difference in Spatial Convolution: Numpy vs Matlab
a = [ 0 3 1 -4]
b = [-1 -1 -1 3]
c = cconv(a, b, 4) % [12 4 -16 0]
l = conv(a, b, 'same') % [ -4 0 12 7]
f = conv(a, b) % [0 -3 -4 0 12 7 -12]