#include "../common.hpp"
#include "../seed.hpp"
#include "ring_buffer.hpp"
#include "stochastic_minimizer.hpp"
#include <Eigen/Eigen>
#include <autodiff/reverse/var.hpp>
#include <autodiff/reverse/var/eigen.hpp>
#include <chrono>
#include <cmath>
#include <numeric>
#include <random>
Go to the source code of this file.
|
| template<typename V , typename BatchFn > |
| V | cpu_mlp::finite_difference_hvp_batch (BatchFn &g, const V &weights, const std::vector< size_t > &indices, const V &v, double epsilon=1e-4) |
| |
| template<typename V > |
| V | cpu_mlp::lbfgs_two_loop (const RingBuffer< V > &s_list, const RingBuffer< V > &y_list, const RingBuffer< double > &rho_list, const V &v) |
| |