This removes redundant steps of type and shape inference.
Note that convert() and optimize() has already performed type and shape inference.
Signed-off-by: Hyun Sik Yoon <hyunsik.yoon@samsung.com>
#include "Convert.h"
#include "TFLOptimize.h"
-#include "CircleTypeInference.h"
-#include "ShapeInference.h"
#include "CircleTensorExporter.h"
#include "CircleOperationExporter.h"
#include "CircleExporterUtils.h"
optimize(graph);
}
- // Infer the type of each node
- TypeInference::run(graph);
- // TypeInference::get(node) now works
-
- // Infer the shape of each node
- ShapeInference::run(graph);
- // ShapeInference::get(node) now works
-
_builder.Clear();
SerializedModelData gd;
#include "Convert.h"
#include "TFLOptimize.h"
-#include "TFLTypeInference.h"
-#include "ShapeInference.h"
#include "TFLTensorExporter.h"
#include "TFLOperationExporter.h"
#include "TFLExporterUtils.h"
optimize(graph);
}
- // Infer the type of each node
- TypeInference::run(graph);
- // TypeInference::get(node) now works
-
- // Infer the shape of each node
- ShapeInference::run(graph);
- // ShapeInference::get(node) now works
-
_builder.Clear();
SerializedModelData gd;