Skip to content

Instantly share code, notes, and snippets.

Ekin Akyürek ekinakyurek

Block or report user

Report or block ekinakyurek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ekinakyurek
ekinakyurek / thescienceofdeeplearningcolloquia.md
Created Mar 15, 2019
Notes from The Science of Deep Learning Colloquia
View thescienceofdeeplearningcolloquia.md

DAY 1

1. The State of Deep Learning : Overview Talk (I) Amnon Shashua

@ekinakyurek
ekinakyurek / benchmark.log
Last active Feb 15, 2019
LogKnetArraysxCuarrays
View benchmark.log
[ec2-user@ip-172-31-14-239 ~]$ sh benchmark.sh
++ mktemp -d
+ cd /tmp/tmp.WbX6402Bko
+ git clone https://github.com/ekinakyurek/Mac-Network .
Cloning into '.'...
remote: Enumerating objects: 68, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (52/52), done.
remote: Total 328 (delta 30), reused 47 (delta 15), pack-reused 260
Receiving objects: 100% (328/328), 29.89 MiB | 50.42 MiB/s, done.
@ekinakyurek
ekinakyurek / benchmark.sh
Last active Feb 15, 2019
KnetArraysxCuarrays
View benchmark.sh
#!/usr/bin/env bash
set -uxe
cd $(mktemp -d)
git clone https://github.com/ekinakyurek/Mac-Network .
sed -i '1d' benchmark.jl # remove pkg import/activate
export JULIA_DEPOT_PATH=$(mktemp -d)
julia --project -e 'using Pkg; Pkg.instantiate(); pkg"free Knet"; pkg"add Knet#cuarrays CuArrays#master CUDAnative#master CUDAdrv#master"'
View IndexedDict.jl
import Base: get, length, getindex, push!, append!
struct IndexedDict{T}
toIndex::Dict{T,Int};
toElement::Vector{T};
IndexedDict{T}(toIndex,toElement) where T = new(toIndex,toElement)
IndexedDict{T}(toIndex,toElement) where T<:Integer = error("Cannot Create IndexedDict of Integers")
IndexedDict{T}(toIndex,toElement) where T<:AbstractArray = error("Cannot Create IndexedDict of Arrays")
end
@ekinakyurek
ekinakyurek / resnet.jl
Last active Dec 19, 2018
Resnet Julia
View resnet.jl
#model url: https://github.com/FluxML/Metalhead.jl/releases/download/v0.1.1/resnet.bson
#install
using Knet, KnetLayers, BSON, Images
struct ResidualBlock
layers
shortcut
end
function ResidualBlock(filters, kernels::Array{Tuple{Int,Int}}, pads::Array{Tuple{Int,Int}}, strides::Array{Tuple{Int,Int}}, shortcut = identity)
@ekinakyurek
ekinakyurek / gan.ipynb
Last active Oct 15, 2018
GAN Notebook
View gan.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.