 
 
 (defn linear-backward!
-  "linear backward pass.  Returns a new input gradient."
+  "Linear backward pass.  Returns module updated with a new input gradient."
   [this input output-gradient]
   (let [weights (:weights this)
         bias (:bias this)

(defn blas-gemv-cutoff ^long [] 500000)

(defn linear-forward!
  [this input]
  (let [weights (:weights this)
        bias (:bias this)

#?(:cljs (register-module cortex.impl.layers.Linear))
(defrecord Linear [weights bias]
  cp/PModule
    (calc [this input]
      (linear-forward! this input))

    (output [this]
      (:output this))
