Liking cljdoc? Tell your friends :D
Mostly clj.
Exceptions indicated.

org.apache.clojure-mxnet.monitor


monitorclj/smacro

(monitor interval stat-fun)

Monitor outputs, weights, and gradients for debugging.

  • interval Number of batches between printing.
  • stat-func A function that computes statistics of tensors. Takes a NDArray and returns a NDArray. defaults to mean absolute value |x|/size(x). Function must be in the form of clojure (fn [x])
Monitor outputs, weights, and gradients for debugging.
-  interval Number of batches between printing.
-  stat-func A function that computes statistics of tensors.
                 Takes a NDArray and returns a NDArray. defaults
                 to mean absolute value |x|/size(x). Function must be in the form of clojure (fn [x])
raw docstring

ticclj

(tic monitor)

Start collecting stats for current batch. Call before forward

Start collecting stats for current batch.
Call before forward
raw docstring

tocclj

(toc monitor)

End collecting for current batch and return results. Call after computation of current batch.

End collecting for current batch and return results.
Call after computation of current batch.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close