mirror of https://github.com/alibaba/MNN.git
33 lines
777 B
C++
33 lines
777 B
C++
//
|
|
// CPUConcat.hpp
|
|
// MNN
|
|
//
|
|
// Created by MNN on 2018/07/06.
|
|
// Copyright © 2018, Alibaba Group Holding Limited
|
|
//
|
|
|
|
#ifndef CPUConcat_hpp
|
|
#define CPUConcat_hpp
|
|
|
|
#include "core/Execution.hpp"
|
|
|
|
namespace MNN {
|
|
class CPUConcat : public Execution {
|
|
public:
|
|
CPUConcat(Backend *b, int axis) : Execution(b), mAxis(axis) {
|
|
// Do nothing
|
|
}
|
|
virtual ~CPUConcat() = default;
|
|
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
|
|
virtual ErrorCode onResize(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
|
|
|
|
private:
|
|
int mAxis = 1;
|
|
std::shared_ptr<Tensor> mTempOutput;
|
|
bool mUseSlowMethod = false;
|
|
};
|
|
|
|
} // namespace MNN
|
|
|
|
#endif /* CPUConcat_hpp */
|