| 
									
										
										
										
											2019-04-17 10:49:11 +08:00
										 |  |  | //
 | 
					
						
							|  |  |  | //  CPUQuantizedMaxPool.hpp
 | 
					
						
							|  |  |  | //  MNN
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | //  Created by MNN on 2018/08/08.
 | 
					
						
							|  |  |  | //  Copyright © 2018, Alibaba Group Holding Limited
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #ifndef CPUQUANTIZEDMAXPOOL_HPP
 | 
					
						
							|  |  |  | #define CPUQUANTIZEDMAXPOOL_HPP
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-27 22:16:57 +08:00
										 |  |  | #include "core/Execution.hpp"
 | 
					
						
							| 
									
										
										
										
											2019-04-17 10:49:11 +08:00
										 |  |  | #include "MNN_generated.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace MNN { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class CPUQuantizedMaxPool : public Execution { | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     CPUQuantizedMaxPool(Backend *backend, const Op *quantizedMaxPoolOp); | 
					
						
							|  |  |  |     virtual ~CPUQuantizedMaxPool() = default; | 
					
						
							|  |  |  |     virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | private: | 
					
						
							|  |  |  |     int32_t mKernelWidth; | 
					
						
							|  |  |  |     int32_t mKernelHeight; | 
					
						
							|  |  |  |     int32_t mPadWidth; | 
					
						
							|  |  |  |     int32_t mPadHeight; | 
					
						
							|  |  |  |     int32_t mStrideWidth; | 
					
						
							|  |  |  |     int32_t mStrideHeight; | 
					
						
							|  |  |  |     PoolPadType mPadMode; | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | } // namespace MNN
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif /* CPUQuantizedMaxPool.hpp */
 |