Skip to content

Instantly share code, notes, and snippets.

View FilippoC's full-sized avatar

Caio Filippo Corro FilippoC

View GitHub Profile
@FilippoC
FilippoC / sparsemax.cpp
Created October 28, 2018 12:29
Dynet autobatching issue
#include <vector>
#include <iostream>
#include <stdlib.h>
#include "dynet/dynet.h"
#include "dynet/grad-check.h"
#include "dynet/param-init.h"
std::default_random_engine generator;
std::uniform_real_distribution<float> distribution(-100.f, 100.f);
@FilippoC
FilippoC / cnn_test.cpp
Last active September 6, 2018 11:48
Dynet: Static vs Dynamic CG
#include <tuple>
#include <vector>
#include <random>
#include <chrono>
#include "dynet/dynet.h"
#include "dynet/expr.h"
struct Conv