// // Command.hpp // MNN // // Created by MNN on b'2020/07/28'. // Copyright © 2018, Alibaba Group Holding Limited // #ifndef Command_hpp #define Command_hpp #include #include "AutoStorage.h" #include #include namespace MNN { struct Op; class Execution; class OperatorInfo; struct Command { const Op* op; std::vector workInputs; std::vector workOutputs; std::vector inputs; std::vector outputs; std::shared_ptr buffer; std::shared_ptr execution; std::shared_ptr info; #ifdef MNN_BUILD_CODEGEN bool canVectorize = false; #endif int group = 0; }; struct CommandBuffer { std::vector> command; std::vector> extras; bool hasWrap = false; }; }; // namespace MNN #endif