28 #include "tiny_dnn/util/util.h"
29 #include "tiny_dnn/layers/fully_connected_layer.h"
36 template<
typename activation,
typename Iter>
37 network<sequential> make_mlp(Iter first, Iter last) {
38 typedef network<sequential> net_t;
41 Iter next = first + 1;
42 for (; next != last; ++first, ++next)
43 n << fully_connected_layer<activation>(*first, *next);
50 template<
typename activation>
51 network<sequential> make_mlp(
const std::vector<serial_size_t>& units) {
52 return make_mlp<activation>(units.begin(), units.end());