template <typename Dtype>
void hdf5_load_nd_dataset_helper(
- hid_t file_id, const char* dataset_name_, int min_dim, int max_dim,
- Blob<Dtype>* blob);
+ hid_t file_id, const char* dataset_name_, int min_dim, int max_dim,
+ Blob<Dtype>* blob);
template <typename Dtype>
void hdf5_load_nd_dataset(
- hid_t file_id, const char* dataset_name_, int min_dim, int max_dim,
- Blob<Dtype>* blob);
+ hid_t file_id, const char* dataset_name_, int min_dim, int max_dim,
+ Blob<Dtype>* blob);
template <typename Dtype>
void hdf5_save_nd_dataset(
- const hid_t file_id, const string dataset_name, const Blob<Dtype>& blob);
+ const hid_t file_id, const string& dataset_name, const Blob<Dtype>& blob);
} // namespace caffe
template <>
void hdf5_save_nd_dataset<float>(
- const hid_t file_id, const string dataset_name, const Blob<float>& blob) {
+ const hid_t file_id, const string& dataset_name, const Blob<float>& blob) {
hsize_t dims[HDF5_NUM_DIMS];
dims[0] = blob.num();
dims[1] = blob.channels();
template <>
void hdf5_save_nd_dataset<double>(
- const hid_t file_id, const string dataset_name, const Blob<double>& blob) {
+ const hid_t file_id, const string& dataset_name, const Blob<double>& blob) {
hsize_t dims[HDF5_NUM_DIMS];
dims[0] = blob.num();
dims[1] = blob.channels();