-
Notifications
You must be signed in to change notification settings - Fork 1
/
PoolLayers.h
41 lines (38 loc) · 973 Bytes
/
PoolLayers.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// PoolLayers.h
// ConvNet
//
// Created by Márton Szemenyei on 2017. 09. 28..
// Copyright © 2017. Márton Szemenyei. All rights reserved.
//
#ifndef PoolLayers_h
#define PoolLayers_h
#include "Layer.h"
#include "Utils.h"
class MaxPoolLayer : public Layer
{
private:
Tuple size;
Tuple stride;
public:
MaxPoolLayer(int32_t _h, int32_t _w, int32_t _outCh, Tuple _size, Tuple _stride, ACTIVATION _activation);
~MaxPoolLayer();
void forward();
bool loadWeights( std::ifstream& ) {return true;}
void print();
int32_t getWorkSpaceSize() {return 0;}
};
class AvgPoolLayer : public Layer
{
private:
Tuple size;
Tuple stride;
public:
AvgPoolLayer(int32_t _h, int32_t _w, int32_t _outCh, Tuple _size, Tuple _stride, ACTIVATION _activation);
~AvgPoolLayer();
void forward();
bool loadWeights( std::ifstream& ) {return true;}
void print();
int32_t getWorkSpaceSize() {return 0;}
};
#endif /* PoolLayers_h */