MagmaDNN  1.0
c++NeuralNetworkFramework
flattenlayer.h
Go to the documentation of this file.
1 
9 #include <vector>
10 #include "layer/layer.h"
11 #include "tensor/tensor.h"
12 #include "compute/operation.h"
13 #include "compute/tensor_operations.h"
14 
15 namespace magmadnn {
16 namespace layer {
17 
18 template <typename T>
19 class FlattenLayer : public Layer<T> {
20 public:
22 
23  virtual std::vector<op::Operation<T> *> get_weights();
24 
25 protected:
26  void init();
27 
28 };
29 
35 template <typename T>
36 FlattenLayer<T>* flatten(op::Operation<T> *input);
37 
38 } // layer
39 } // magmadnn
Definition: addop.cpp:11
Definition: flattenlayer.h:19
Definition: layer.h:18
Definition: operation.h:18