| 
									
										
										
										
											2019-04-17 10:49:11 +08:00
										 |  |  | //
 | 
					
						
							|  |  |  | //  ConvolutionIntFactory.hpp
 | 
					
						
							|  |  |  | //  MNN
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | //  Created by MNN on 2018/08/06.
 | 
					
						
							|  |  |  | //  Copyright © 2018, Alibaba Group Holding Limited
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef ConvolutionIntFactory_hpp
 | 
					
						
							|  |  |  | #define ConvolutionIntFactory_hpp
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <stdint.h>
 | 
					
						
							|  |  |  | #include <memory>
 | 
					
						
							| 
									
										
										
										
											2019-12-27 22:16:57 +08:00
										 |  |  | #include "backend/cpu/CPUBackend.hpp"
 | 
					
						
							| 
									
										
										
										
											2020-03-02 22:13:38 +08:00
										 |  |  | #include "core/ConvolutionCommon.hpp"
 | 
					
						
							| 
									
										
										
										
											2019-04-17 10:49:11 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | namespace MNN { | 
					
						
							|  |  |  | class ConvolutionIntFactory { | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     static Execution* create(const Tensor* input, const Tensor* output, const MNN::Op* op, Backend* backend, | 
					
						
							| 
									
										
										
										
											2020-03-02 22:13:38 +08:00
										 |  |  |                              const ConvolutionCommon::Int8Common* common); | 
					
						
							| 
									
										
										
										
											2019-04-17 10:49:11 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     static Execution* createUnit(const Tensor* input, const Tensor* output, const MNN::Op* op, Backend* bn, | 
					
						
							| 
									
										
										
										
											2020-03-02 22:13:38 +08:00
										 |  |  |                                  const ConvolutionCommon::Int8Common* common, const float* bias, size_t biasSize); | 
					
						
							| 
									
										
										
										
											2019-04-17 10:49:11 +08:00
										 |  |  | }; | 
					
						
							|  |  |  | } // namespace MNN
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif /* ConvolutionIntFactory_hpp */
 |