29 lines
705 B
C++
29 lines
705 B
C++
#ifndef _MUSA_RANGE_EXECUTION_HPP_
|
|
#define _MUSA_RANGE_EXECUTION_HPP_
|
|
|
|
#include "core/MusaBackend.hpp"
|
|
|
|
namespace MNN {
|
|
namespace MUSA {
|
|
|
|
class RangeExecution : public Execution {
|
|
public:
|
|
RangeExecution(const std::vector<Tensor*>& inputs, const MNN::Op* op, Backend* backend);
|
|
virtual ~RangeExecution() = default;
|
|
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:
|
|
MusaBackend* mBackend;
|
|
|
|
int mSize;
|
|
|
|
dim3 mDim3Grid;
|
|
dim3 mDim3Block;
|
|
};
|
|
|
|
} // namespace MUSA
|
|
} // namespace MNN
|
|
|
|
#endif
|