-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_blob.h
56 lines (38 loc) · 946 Bytes
/
test_blob.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// Created by root on 9/5/18.
//
#ifndef MY_CAFFE_TEST_BLOB_H
#define MY_CAFFE_TEST_BLOB_H
#include <cstdint>
#include <string>
using std::string;
namespace caffe{
/*
* simple test of Blob
* set value to it and print the value
*/
void test_blob_1();
/*
* read image from opencv and set it value to Blob
* operator Blob(draw a line) and set it back to cv Mat
*/
void test_blob_2();
/*
* test shape size 2 blob
*/
void test_blob_3();
/*
* test filter blob
*/
void test_blob_filter();
void test_prototxt();
void test_net();
void test_solver();
void test_mnist();
uint32_t swap_endian(uint32_t val);
void convert_dataset(const char* image_filename, const char* label_filename,
const char* db_path, const string& db_backend = "lmdb");
void read_mnist_cv(const char* image_filename, const char* label_filename);
void test_data_layer();
}
#endif //MY_CAFFE_TEST_BLOB_H