This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from theano.compile import ViewOp | |
class GradientReversalOp(ViewOp): | |
def grad(self, inputs, output_gradients): | |
return [-output_gradients[0]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns testbug.core | |
(:require | |
[om.core :as om :include-macros true] | |
[om.dom :as dom])) | |
(enable-console-print!) | |
(def app-state (atom {})) | |
(defn foo |