Skip to content

Instantly share code, notes, and snippets.

View sakethbachu's full-sized avatar
❄️
Learning magic

Saketh Bachu sakethbachu

❄️
Learning magic
  • VNIT, Nagpur
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) { \
@jkleint
jkleint / shuffle_weights.py
Created July 10, 2016 05:24
Quickly re-initialize weights of a Keras model
#!/usr/bin/env python
"""Demonstrate Keras model weight shuffling as fast alternative to re-creating a model."""
from __future__ import print_function
import numpy as np
from keras.layers import Dense
from keras.models import Sequential