MNN/source/backend/arm82/Arm82Interp.hpp

43 lines
1.1 KiB
C++
Raw Normal View History

//
// Arm82Interp.hpp
// MNN
//
// Created by MNN on 2020/04/28.
// Copyright © 2018, Alibaba Group Holding Limited
//
2021-04-08 15:34:23 +08:00
#if defined(__ANDROID__) || defined(__aarch64__)
#ifndef CPUInterp_hpp
#define CPUInterp_hpp
2021-04-08 15:34:23 +08:00
#include "Arm82Backend.hpp"
#include "core/AutoStorage.h"
#include "core/Execution.hpp"
namespace MNN {
class Arm82Interp : public Execution {
public:
2020-11-05 16:41:56 +08:00
Arm82Interp(Backend *backend, float widthScale, float heightScale, int resizeType, float widthOffset, float heightOffset);
virtual ~Arm82Interp();
virtual ErrorCode onResize(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
private:
Tensor mWidthPosition;
Tensor mWidthFactor;
Tensor mHeightPosition;
Tensor mHeightFactor;
Tensor mLineBuffer;
float mWidthScale;
float mHeightScale;
2020-11-05 16:41:56 +08:00
float mWidthOffset;
float mHeightOffset;
int mResizeType;
int mTheadNumbers;
};
} // namespace MNN
#endif
2021-04-08 15:34:23 +08:00
#endif