2020-05-11 12:00:12 +08:00
|
|
|
//
|
|
|
|
// 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__)
|
2020-05-11 12:00:12 +08:00
|
|
|
|
|
|
|
#ifndef CPUInterp_hpp
|
|
|
|
#define CPUInterp_hpp
|
|
|
|
|
2021-04-08 15:34:23 +08:00
|
|
|
#include "Arm82Backend.hpp"
|
2020-05-11 12:00:12 +08:00
|
|
|
#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);
|
2020-05-11 12:00:12 +08:00
|
|
|
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;
|
2020-05-11 12:00:12 +08:00
|
|
|
int mResizeType;
|
|
|
|
int mTheadNumbers;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace MNN
|
|
|
|
|
|
|
|
#endif
|
2021-04-08 15:34:23 +08:00
|
|
|
#endif
|