forked from larryniven/nn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoenc-fc.h
28 lines (19 loc) · 886 Bytes
/
autoenc-fc.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
#ifndef NN_AUTOENC_H
#define NN_AUTOENC_H
#include "nn/tensor-tree.h"
namespace autoenc {
std::shared_ptr<tensor_tree::vertex> make_symmetric_ae_tensor_tree();
std::shared_ptr<autodiff::op_t> make_symmetric_ae(std::shared_ptr<autodiff::op_t> input,
std::shared_ptr<tensor_tree::vertex> var_tree,
double input_dropout, double hidden_dropout,
std::default_random_engine *gen);
std::shared_ptr<tensor_tree::vertex> make_tensor_tree(int layer);
std::shared_ptr<autodiff::op_t> make_nn(std::shared_ptr<autodiff::op_t> input,
std::shared_ptr<tensor_tree::vertex> var_tree,
double input_dropout, double hidden_dropout,
std::default_random_engine& gen);
std::shared_ptr<autodiff::op_t> make_wta_nn(std::shared_ptr<autodiff::op_t> input,
std::shared_ptr<tensor_tree::vertex> var_tree,
int k);
}
#endif