2020-11-05 16:41:56 +08:00
|
|
|
//
|
|
|
|
// TRTBinary.hpp
|
|
|
|
// MNN
|
|
|
|
//
|
|
|
|
// Created by MNN on 2019/09/11.
|
|
|
|
// Copyright © 2018, Alibaba Group Holding Limited
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef MNN_TRTBinary_HPP
|
|
|
|
#define MNN_TRTBinary_HPP
|
|
|
|
|
|
|
|
#include "TRTBackend.hpp"
|
|
|
|
#include "TRTCommonExecution.hpp"
|
|
|
|
|
|
|
|
namespace MNN {
|
|
|
|
|
|
|
|
class TRTBinary : public TRTCommonExecution {
|
|
|
|
public:
|
|
|
|
TRTBinary(Backend *b, const Op *op, const std::vector<Tensor *> &inputs, const std::vector<Tensor *> &outputs);
|
|
|
|
virtual ~TRTBinary() = default;
|
|
|
|
virtual std::vector<ITensor *> onEncode(const std::vector<ITensor *> &inputs) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
IConstantLayer *const_layer;
|
2022-09-30 10:02:52 +08:00
|
|
|
int mActivationType = 0;
|
|
|
|
IActivationLayer *mActivationLayer{nullptr};
|
2020-11-05 16:41:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace MNN
|
|
|
|
|
|
|
|
#endif // MNN_TRTBinary_HPP
|