Skip to content

Instantly share code, notes, and snippets.

View diogo149's full-sized avatar

diogo149

View GitHub Profile
@diogo149
diogo149 / gradient_reversal.py
Created November 7, 2015 00:10
Gradient Reversal in Theano
from theano.compile import ViewOp
class GradientReversalOp(ViewOp):
def grad(self, inputs, output_gradients):
return [-output_gradients[0]]
(ns testbug.core
(:require
[om.core :as om :include-macros true]
[om.dom :as dom]))
(enable-console-print!)
(def app-state (atom {}))
(defn foo