21 #include "boost/shared_ptr.hpp" 26 namespace perception {
29 static const int kMaxStrLen = 64;
30 static const int kMinDim = 1;
31 static const int kMaxDim = INT_MAX;
36 template <
typename Dtype>
38 template <
typename Dtype>
41 template <
typename Dtype>
42 std::map<std::string, boost::shared_ptr<base::Blob<Dtype>>>
BinaryReadFile(
43 const char *file_path);
44 template <
typename Btype>
46 const std::map<std::string, Btype> &data_dict);
bool BinaryWriteFile(const char *file_path, const std::map< std::string, Btype > &data_dict)
size_t BinaryWriteString(FILE *fp, const std::string &str)
void BinaryWriteBlob(FILE *fp, const base::Blob< Dtype > &blob)
std::map< std::string, boost::shared_ptr< base::Blob< Dtype > > > BinaryReadFile(const char *file_path)
size_t BinaryReadString(FILE *fp, char *name)
boost::shared_ptr< base::Blob< Dtype > > BinaryReadBlob(FILE *fp)