mirror of https://github.com/alibaba/MNN.git
				
				
				
			
		
			
				
	
	
		
			33 lines
		
	
	
		
			698 B
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			698 B
		
	
	
	
		
			C++
		
	
	
	
//
 | 
						|
//  MetalInterp.hpp
 | 
						|
//  MNN
 | 
						|
//
 | 
						|
//  Created by MNN on 2019/01/30.
 | 
						|
//  Copyright © 2018, Alibaba Group Holding Limited
 | 
						|
//
 | 
						|
 | 
						|
#ifndef MetalInterp_hpp
 | 
						|
#define MetalInterp_hpp
 | 
						|
 | 
						|
#include "core/Execution.hpp"
 | 
						|
#include "MetalDefine.h"
 | 
						|
 | 
						|
#if MNN_METAL_ENABLED
 | 
						|
namespace MNN {
 | 
						|
 | 
						|
class MetalInterp : public Execution {
 | 
						|
public:
 | 
						|
    MetalInterp(Backend *backend, const Op* op);
 | 
						|
    virtual ~MetalInterp() = default;
 | 
						|
    virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
 | 
						|
 | 
						|
private:
 | 
						|
    int32_t mReiszeType;
 | 
						|
    id<MTLBuffer> mCordTransform;
 | 
						|
    id<MTLBuffer> mShape;
 | 
						|
};
 | 
						|
 | 
						|
} // namespace MNN
 | 
						|
#endif /* MNN_METAL_ENABLED */
 | 
						|
#endif /* MetalInterp_hpp */
 |