| 
									
										
										
										
											2019-08-22 20:13:46 +08:00
										 |  |  | //
 | 
					
						
							|  |  |  | //  CPUEltwiseInt8.hpp
 | 
					
						
							|  |  |  | //  MNN
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | //  Created by MNN on 2019/08/08.
 | 
					
						
							|  |  |  | //  Copyright © 2018, Alibaba Group Holding Limited
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef CPUEltwiseInt8_hpp
 | 
					
						
							|  |  |  | #define CPUEltwiseInt8_hpp
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-27 22:16:57 +08:00
										 |  |  | #include "core/Execution.hpp"
 | 
					
						
							| 
									
										
										
										
											2019-08-22 20:13:46 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | namespace MNN { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class CPUEltwiseInt8 : public Execution { | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     CPUEltwiseInt8(Backend *backend, const Op *op); | 
					
						
							|  |  |  |     virtual ~CPUEltwiseInt8(); | 
					
						
							|  |  |  |     virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  |     std::shared_ptr<Tensor> mInput0Scales; | 
					
						
							|  |  |  |     std::shared_ptr<Tensor> mInput1Scales; | 
					
						
							|  |  |  |     std::shared_ptr<Tensor> mOutputScales; | 
					
						
							| 
									
										
										
										
											2021-04-08 15:34:23 +08:00
										 |  |  |     bool isEltwiseInt8 = true; | 
					
						
							| 
									
										
										
										
											2019-08-22 20:13:46 +08:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } // namespace MNN
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif /* CPUEltwiseInt8_hpp */
 |