// // GridSampleBufExecution.hpp // MNN // // Created by MNN on 2021/08/11. // Copyright © 2018, Alibaba Group Holding Limited // #ifndef MNN_OPENCL_BUFFER_CLOSED #ifndef GridSampleBufExecution_hpp #define GridSampleBufExecution_hpp #include "backend/opencl/execution/image/CommonExecution.hpp" namespace MNN { namespace OpenCL { class GridSampleBufExecution : public CommonExecution { public: GridSampleBufExecution(const std::vector &inputs, const MNN::Op *op, Backend *backend); virtual ~GridSampleBufExecution() = default; virtual ErrorCode onEncode(const std::vector &inputs, const std::vector &outputs) override; private: SampleMode mMode; BorderMode mPaddingMode; int mAlignCorners; std::vector mGlobalWorkSize{ 0,0,0,0 }; std::vector mLocalWorkSize{ 0,0,0,0 }; std::string mKernelName; uint32_t mMaxWorkGroupSize; OpenCLBackend *mOpenCLBackend; }; } // namespace OpenCL } // namespace MNN #endif // GridSampleBufExecution_hpp #endif // MNN_OPENCL_BUFFER_CLOSED