-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflatten_filter.cpp
More file actions
36 lines (26 loc) · 782 Bytes
/
Copy pathflatten_filter.cpp
File metadata and controls
36 lines (26 loc) · 782 Bytes
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
#include "flatten_filter.hpp"
namespace fool {
template<typename Dtype>
void FlattenFilter<Dtype>::Reshape(const Block<Dtype>& inputs, Block<Dtype>& outputs){
// Same dimination
CHECK_EQ(inputs.count(), outputs.count());
// data copy
for(int i=0; i < inputs.count(); ++i){
outputs.m_data[i] = inputs.m_data[i];
}
}
template<typename Dtype>
void FlattenFilter<Dtype>::FilterInitialize(){
}
template<typename Dtype>
void FlattenFilter<Dtype>::Forward_cpu(const std::vector<Block<Dtype>*>& inputs,
const std::vector<Block<Dtype>*>& outputs)
{
}
template<typename Dtype>
void FlattenFilter<Dtype>::Backward_cpu(const std::vector<Block<Dtype>*>& inputs,
const std::vector<Block<Dtype>*>& outputs)
{
}
INSTANTIATE_CLASS(FlattenFilter);
}