#include "GraphBuilder.h"
#include "GraphBuilderContext.h"
#include "GraphBuilderRegistry.h"
-
-#include "Transforms/Transform.h"
+#include "Transforms.h"
#include <loco/IR/Verifier.h>
#include <cwrap/Fildes.h>
// Transforms that run only once for preparation and finalization
{
- // TODO add one time preparation when needed
+ // TODO add one time preparation when needed
- // TODO add one time finalization when needed
+ // To remove frontend temporary annotations
+ finalize.emplace_back(stdex::make_unique<moco::tf::ClearAnnotTransform>());
+ // TODO add one time finalization when needed
}
// Transforms that run multiple times until there is no transform occured
{
+ transforms.emplace_back(stdex::make_unique<moco::tf::FixShapeTransform>());
// TODO add more TensorFlow related transformations
}
--- /dev/null
+/*
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __MOCO_TF_TRANSFORMS_H__
+#define __MOCO_TF_TRANSFORMS_H__
+
+#include "Transforms/ClearAnnotTransform.h"
+#include "Transforms/FixShapeTransform.h"
+
+#endif // __MOCO_TF_TRANSFORMS_H__