MNN/source/backend/cpu/CPUScale.hpp

30 lines
670 B
C++
Raw Normal View History

2019-04-17 10:49:11 +08:00
//
// CPUScale.hpp
// MNN
//
// Created by MNN on 2018/08/07.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef CPUScale_hpp
#define CPUScale_hpp
#include <MNN/Tensor.hpp>
2019-12-27 22:16:57 +08:00
#include "core/Execution.hpp"
2019-04-17 10:49:11 +08:00
namespace MNN {
class CPUScale : public Execution {
public:
CPUScale(const Op *op, Backend *bn);
virtual ~CPUScale();
2019-04-17 10:49:11 +08:00
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
2024-04-19 11:58:21 +08:00
virtual bool onClone(Backend* bn, const Op* op, Execution** dst) override;
2019-04-17 10:49:11 +08:00
private:
2024-04-19 11:58:21 +08:00
CPUScale(Backend* bn);
std::shared_ptr<Tensor> mScaleBias;
2019-04-17 10:49:11 +08:00
};
} // namespace MNN
#endif /* CPUScale_hpp */