mirror of https://github.com/alibaba/MNN.git
				
				
				
			
		
			
	
	
		
			28 lines
		
	
	
		
			528 B
		
	
	
	
		
			C++
		
	
	
	
		
		
			
		
	
	
			28 lines
		
	
	
		
			528 B
		
	
	
	
		
			C++
		
	
	
	
|  | //
 | ||
|  | //  Command.hpp
 | ||
|  | //  MNN
 | ||
|  | //
 | ||
|  | //  Created by MNN on b'2020/07/28'.
 | ||
|  | //  Copyright © 2018, Alibaba Group Holding Limited
 | ||
|  | //
 | ||
|  | 
 | ||
|  | #ifndef Command_hpp
 | ||
|  | #define Command_hpp
 | ||
|  | #include <MNN/Tensor.hpp>
 | ||
|  | #include <memory>
 | ||
|  | namespace MNN { | ||
|  | struct Op; | ||
|  | 
 | ||
|  | struct Command { | ||
|  |     const Op* op; | ||
|  |     std::vector<Tensor*> inputs; | ||
|  |     std::vector<Tensor*> outputs; | ||
|  |     std::vector<uint8_t> buffer; // storage for op
 | ||
|  | }; | ||
|  | struct CommandBuffer { | ||
|  |     std::vector<Command> command; | ||
|  |     std::vector<std::shared_ptr<Tensor>> extras; | ||
|  | }; | ||
|  | }; // namespace MNN
 | ||
|  | #endif
 |