29 lines
513 B
C++
29 lines
513 B
C++
//
|
|
// TanhTf.cpp
|
|
// MNNConverter
|
|
//
|
|
// Created by MNN on 2019/01/31.
|
|
// Copyright © 2018, Alibaba Group Holding Limited
|
|
//
|
|
|
|
#include <string.h>
|
|
#include "TfUtils.hpp"
|
|
#include "tfOpConverter.hpp"
|
|
|
|
#include "graph.pb.h"
|
|
|
|
DECLARE_OP_CONVERTER(TanhTf);
|
|
|
|
MNN::OpType TanhTf::opType() {
|
|
return MNN::OpType_TanH;
|
|
}
|
|
MNN::OpParameter TanhTf::type() {
|
|
return MNN::OpParameter_NONE;
|
|
}
|
|
|
|
void TanhTf::run(MNN::OpT *dstOp, TmpNode *srcNode) {
|
|
dstOp->main.value = nullptr;
|
|
}
|
|
|
|
REGISTER_CONVERTER(TanhTf, Tanh);
|