-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunittests.hpp
executable file
·39 lines (33 loc) · 1.08 KB
/
unittests.hpp
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
37
38
39
//------------------------------------------------------------------------------
// SqueezeNetOnFPGA
//------------------------------------------------------------------------------
//
// File: unittests.hpp
//
// Unit Tests for FPGA Modules
//
// (c) David Gschwend, 2016
//
//------------------------------------------------------------------------------
#ifndef UNITTESTS_HPP_A9B1CEAB
#define UNITTESTS_HPP_A9B1CEAB
// ========================
// = Standard C Libraries =
// ========================
#include <cstdio> // printf
#include <ctime> // time() for random seed
#include <cmath> // fabs, fmax, ...
// ===========================
// = CNN Network Definitions =
// ===========================
#include "network.hpp" // load before netconfig.hpp for bit-width calculation
#include "netconfig.hpp" // network config (layer_t, network_t)
// ==================
// = FPGA Algorithm =
// ==================
#include "fpga_top.hpp" // top-level FPGA module
// ==============
// = Unit Tests =
// ==============
bool do_unittests();
#endif /* end of include guard: UNITTESTS_HPP_A9B1CEAB */