// Copyright (c) OpenMMLab. All rights reserved. #ifndef MMDEPLOY_CSRC_GRAPH_TASK_H_ #define MMDEPLOY_CSRC_GRAPH_TASK_H_ #include "core/graph.h" namespace mmdeploy::graph { class Task : public Node { friend class TaskParser; public: Sender Process(Sender input) override; private: std::optional> sched_; unique_ptr module_; bool is_batched_{false}; bool is_thread_safe_{false}; dynamic_batch_t::context_t batch_context_; }; class TaskParser { public: static Result> Parse(const Value& config); }; } // namespace mmdeploy::graph #endif // MMDEPLOY_CSRC_GRAPH_TASK_H_