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
:
21
FlattenLayer
(
op::Operation<T>
*input);
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
layer.h
magmadnn
Definition:
addop.cpp:11
tensor.h
magmadnn::layer::FlattenLayer
Definition:
flattenlayer.h:19
operation.h
magmadnn::layer::Layer
Definition:
layer.h:18
magmadnn::op::Operation
Definition:
operation.h:18
include
layer
flatten
flattenlayer.h
Generated by
1.8.13