* [exo-tflite] Moving Knob check of each converter into convert.cpp
Knob check of each converter was moved into `convert.cpp`.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
* remove unused header
#include "ReluConverter.h"
#include "GraphBlock.h"
-#include "Knob.h"
#include "Check.h"
-#include "Log.h"
#include "Dialect/IR/TFLNodes.h"
bool ReluConverter::convert(loco::ReLU *origin)
{
- LOGGER(l);
-
- if (!get_knob<Knob::ConvertRelu>()) // for backward compatibility
- {
- INFO(l) << "Knob::ConvertRelu is NOT set.";
- return false;
- }
-
- INFO(l) << "Knob::ConvertRelu is set.";
-
if (!loco::shape_known(origin))
{
return false;
#include "Conversion/TypeInferencePass.h"
#include "Conversion/ShapeInferencePass.h"
#include "ProgressReporter.h"
+#include "Knob.h"
#include <loco.h>
#include <loco/Service/ShapeInference.h>
// TODO loco::FeatureBiasAdd
// TODO loco::FixedReshape
// TODO loco::MaxPool2D
- phase.emplace_back(stdex::make_unique<ReluConverter>());
+
+ if (get_knob<Knob::ConvertRelu>())
+ phase.emplace_back(stdex::make_unique<ReluConverter>());
+
// TODO loco::ReLU6
// TODO loco::Tanh
// TODO loco::TensorConcat