Cortenn
data.hpp
Go to the documentation of this file.
1 
9 #include <list>
10 
11 #include "ade/ade.hpp"
12 
13 #include "pbm/graph.pb.h"
14 
15 #ifndef PBM_COMMON_HPP
16 #define PBM_COMMON_HPP
17 
18 namespace pbm
19 {
20 
22 using TensT = std::vector<ade::TensptrT>;
23 
25 using DataSaverT = std::function<std::string(const char*,size_t,size_t)>;
26 
28 using DataLoaderT = std::function<ade::TensptrT(const char*,ade::Shape,\
29  size_t,std::string)>;
30 
32 using StringsT = std::list<std::string>;
33 
34 }
35 
36 #endif // PBM_COMMON_HPP
std::list< std::string > StringsT
String list type used for paths.
Definition: data.hpp:32
std::vector< ade::TensptrT > TensT
Tensptr vector type.
Definition: data.hpp:22
std::function< ade::TensptrT(const char *, ade::Shape, size_t, std::string)> DataLoaderT
Data deserialization functor.
Definition: data.hpp:29
std::function< std::string(const char *, size_t, size_t)> DataSaverT
Data serialization functor.
Definition: data.hpp:25
Definition: data.hpp:18