Files
2026-07-13 13:33:03 +08:00

29 lines
731 B
C++

//
// QNNFlatten.hpp
// MNN
//
// Created by MNN on b'2025/04/10'.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef MNN_QNNFLATTEN_HPP
#define MNN_QNNFLATTEN_HPP
#include "QNNCommonExecution.hpp"
namespace MNN {
namespace QNN {
#ifdef ENABLE_QNN_ONLINE_FINALIZE
class QNNFlatten : public QNNCommonExecution {
public:
QNNFlatten(Backend *backend, const Op *op) : QNNCommonExecution(backend, op) {}
virtual ErrorCode onEncode(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
void ReshapeTranspose(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs);
};
#endif
} // end namespace QNN
} // end namespace MNN
#endif // end MNN_QNNFLATTEN_HPP