31 using namespace tiny_dnn::activation;
32 using namespace tiny_dnn::layers;
37 class alexnet :
public network<sequential> {
39 explicit alexnet(
const std::string& name =
"")
40 : network<sequential>(name) {
41 *this << conv<relu>(224, 224, 11, 11, 3, 64, padding::valid,
true, 4, 4);
42 *this << max_pool<identity>(54, 54, 64, 2);
43 *this << conv<relu>(27, 27, 5, 5, 64, 192, padding::valid,
true, 1, 1);
44 *this << max_pool<identity>(23, 23, 192, 1);
45 *this << conv<relu>(23, 23, 3, 3, 192, 384, padding::valid,
true, 1, 1);
46 *this << conv<relu>(21, 21, 3, 3, 384, 256, padding::valid,
true, 1, 1);
47 *this << conv<relu>(19, 19, 3, 3, 256, 256, padding::valid,
true, 1, 1);
48 *this << max_pool<identity>(17, 17, 256, 1);