Caffe
All Classes Namespaces Functions Variables Typedefs
hdf5.hpp
1 #ifdef USE_HDF5
2 #ifndef CAFFE_UTIL_HDF5_H_
3 #define CAFFE_UTIL_HDF5_H_
4 
5 #include <string>
6 
7 #include "hdf5.h"
8 #include "hdf5_hl.h"
9 
10 #include "caffe/blob.hpp"
11 
12 namespace caffe {
13 
14 template <typename Dtype>
15 void hdf5_load_nd_dataset_helper(
16  hid_t file_id, const char* dataset_name_, int min_dim, int max_dim,
17  Blob<Dtype>* blob, bool reshape);
18 
19 template <typename Dtype>
20 void hdf5_load_nd_dataset(
21  hid_t file_id, const char* dataset_name_, int min_dim, int max_dim,
22  Blob<Dtype>* blob, bool reshape = false);
23 
24 template <typename Dtype>
25 void hdf5_save_nd_dataset(
26  const hid_t file_id, const string& dataset_name, const Blob<Dtype>& blob,
27  bool write_diff = false);
28 
29 int hdf5_load_int(hid_t loc_id, const string& dataset_name);
30 void hdf5_save_int(hid_t loc_id, const string& dataset_name, int i);
31 string hdf5_load_string(hid_t loc_id, const string& dataset_name);
32 void hdf5_save_string(hid_t loc_id, const string& dataset_name,
33  const string& s);
34 
35 int hdf5_get_num_links(hid_t loc_id);
36 string hdf5_get_name_by_idx(hid_t loc_id, int idx);
37 
38 } // namespace caffe
39 
40 #endif // CAFFE_UTIL_HDF5_H_
41 #endif // USE_HDF5
caffe
A layer factory that allows one to register layers. During runtime, registered layers can be called b...
Definition: blob.hpp:14