Skip to content

Instantly share code, notes, and snippets.

View anax32's full-sized avatar

ed grundy anax32

  • cardiff, wales, uk
View GitHub Profile
@hans
hans / cudnn_softmax.cu
Last active August 2, 2021 00:23
Example of CuDNN softmax usage
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <cudnn.h>
/**
* Verified correctness with cuDNN 6.5-R1.
*
* Author: Jon Gauthier <jon@gauthiers.net>
@karpathy
karpathy / min-char-rnn.py
Last active July 29, 2024 00:13
Minimal character-level language model with a Vanilla Recurrent Neural Network, in Python/numpy
"""
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy)
BSD License
"""
import numpy as np
# data I/O
data = open('input.txt', 'r').read() # should be simple plain text file
chars = list(set(data))
data_size, vocab_size = len(data), len(chars)
@sheredom
sheredom / VkComputeSample
Created May 29, 2016 19:14
A simple Vulkan compute sample
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
//
// In jurisdictions that recognize copyright laws, the author or authors
// of this software dedicate any and all copyright interest in the
// software to the public domain. We make this dedication for the benefit