31constexpr int kMaxDim = std::numeric_limits<int>::max();
36template <
typename Dtype>
38template <
typename Dtype>
41template <
typename Dtype>
42std::map<std::string, std::shared_ptr<base::Blob<Dtype>>>
BinaryReadFile(
43 const char *file_path);
44template <
typename Btype>
46 const std::map<std::string, Btype> &data_dict);
A wrapper around SyncedMemory holders serving as the basic computational unit for images,...
size_t BinaryWriteString(FILE *fp, const std::string &str)
size_t BinaryReadString(FILE *fp, char *name)
void BinaryWriteBlob(FILE *fp, const base::Blob< Dtype > &blob)
std::shared_ptr< base::Blob< Dtype > > BinaryReadBlob(FILE *fp)
bool BinaryWriteFile(const char *file_path, const std::map< std::string, Btype > &data_dict)
constexpr size_t kMaxStrLen
std::map< std::string, std::shared_ptr< base::Blob< Dtype > > > BinaryReadFile(const char *file_path)