Skip to content

Instantly share code, notes, and snippets.

View jeremiedb's full-sized avatar

Jeremie Desgagne-Bouchard jeremiedb

View GitHub Profile
@jeremiedb
jeremiedb / rnn-gpu.jl
Created October 28, 2020 02:28
Diverging RNN behavior between CPU and GPU (CUDA)
using Revise
using Flux
using Zygote
using CUDA
using Statistics: mean
################################################
# Define structs
################################################
mutable struct MyRecur{T}