(monitor interval stat-fun)
Monitor outputs, weights, and gradients for debugging.
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])
(tic monitor)
Start collecting stats for current batch. Call before forward
Start collecting stats for current batch. Call before forward
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close