MNN/source/backend/cpu/CPUMatMul.hpp

31 lines
769 B
C++
Raw Normal View History

2019-04-17 10:49:11 +08:00
//
// CPUMatMul.hpp
// MNN
//
// Created by MNN on 2018/08/06.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef CPUMATMUL_HPP
#define CPUMATMUL_HPP
#include <functional>
2019-12-27 22:16:57 +08:00
#include "core/Execution.hpp"
2019-04-17 10:49:11 +08:00
namespace MNN {
class CPUMatMul : public Execution {
public:
CPUMatMul(Backend *backend, bool transposeA, bool transposeB);
virtual ~CPUMatMul() = default;
virtual ErrorCode onResize(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
2019-04-17 10:49:11 +08:00
virtual ErrorCode onExecute(const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs) override;
private:
bool mTransposeA;
bool mTransposeB;
std::vector<std::function<void()>> mFunction;
2019-04-17 10:49:11 +08:00
};
} // namespace MNN
#endif // CPUMATMUL_HPP