DaNNet
dnn.h
Go to the documentation of this file.
1 // Copyright 2019 Claes Rolen (www.rolensystems.com)
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 // Version
16 // 1.0.2 Claes Rolén 2019-02-13 Typecasts to get rid of windows warnings
17 // 1.0.1 Claes Rolén 2019-02-06 First version
18 
19 #pragma once
20 #include <armadillo>
21 
22 namespace dnn
23 {
24 #define DNN_VERSION_MAJOR 1
25 #define DNN_VERSION_MINOR 0
26 #define DNN_VERSION_PATCH 2
27 
28 typedef float DNN_Dtype;
29 //typedef double DNN_Dtype;
30 
31 enum class PARAM_FORMAT { AUTO, ASCII, BIN, HDF5 };
32 enum class INIT_W_ALG { LECUN, XAVIER, HE, SIN };
33 enum class INIT_W_DIST { NORMAL, UNIFORM, NONE };
34 enum class PHASE { TRAIN, TEST, PRED };
36 }
37 
38 #include "dnn_misc.h"
39 #include "dnn_opt.h"
40 #include "dnn_layer.h"
41 #include "dnn_net.h"
42 
PHASE
Definition: dnn.h:34
PARAM_FORMAT
Definition: dnn.h:31
INIT_W_DIST
Definition: dnn.h:33
float DNN_Dtype
Data type used in the network (float or double)
Definition: dnn.h:28
LR_ALG
Definition: dnn.h:35
Definition: dnn.h:22
INIT_W_ALG
Definition: dnn.h:32