MNN/source/backend/metal/MetalInterp.hpp

33 lines
698 B
C++
Raw Normal View History

2019-04-17 10:49:11 +08:00
//
// MetalInterp.hpp
// MNN
//
// Created by MNN on 2019/01/30.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef MetalInterp_hpp
#define MetalInterp_hpp
2019-12-27 22:16:57 +08:00
#include "core/Execution.hpp"
2019-04-17 10:49:11 +08:00
#include "MetalDefine.h"
#if MNN_METAL_ENABLED
namespace MNN {
class MetalInterp : public Execution {
public:
2020-11-05 16:41:56 +08:00
MetalInterp(Backend *backend, const Op* op);
2019-04-17 10:49:11 +08:00
virtual ~MetalInterp() = default;
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
private:
int32_t mReiszeType;
2020-11-05 16:41:56 +08:00
id<MTLBuffer> mCordTransform;
id<MTLBuffer> mShape;
2019-04-17 10:49:11 +08:00
};
} // namespace MNN
#endif /* MNN_METAL_ENABLED */
#endif /* MetalInterp_hpp */