22 #ifndef UNI_INCLUDE_TASK_H_ 23 #define UNI_INCLUDE_TASK_H_ 32 #include "profiling.h" 101 std::map<std::string, std::shared_ptr<Tensor>>
data,
110 friend std::ostream &operator<<(std::ostream &os,
const Task &task)
112 os <<
"Task " << task.
id <<
"(timestamp " << task.
id <<
", status " << task.
status 113 <<
", graph " << task.
graphPath <<
", data " << std::endl;
114 for (
auto iter : task.
data) {
115 os <<
"tensor name " << iter.first <<
" " << iter.second->string(1) << std::endl;
128 std::map<std::string, std::shared_ptr<Tensor>>
data;
130 #endif // UNI_INCLUDE_TASK_H_
Task(std::string graphPath, std::map< std::string, std::shared_ptr< Tensor >> data)
Task constructor.
Task(int id, std::string graphPath, std::map< std::string, std::shared_ptr< Tensor >> data)
Task constructor.
std::map< std::string, std::shared_ptr< Tensor > > data
Task(Task *task)
Task copy constructor.